To prevent the OOM killer running, I have set vm.overcommit_memory = 2 and vm.overcommit_ratio = 100 . I would like to know how much memory is committed by a given process, which is contributed to the commit count.
It is not the resident working set, since the resident working set does not include the amount swapped out. It is not the virtual size either, since the virtual size includes mmap()ed files, which do not contribute to the commit limit.