from man proc:
vsize %lu
Virtual memory size in bytes.
rss %ld
Resident Set Size: number of pages the process has in
real memory, minus 3 for administrative purposes. This is
just the pages which count towards text, data, or stack
space. This does not include pages which have not been
demand-loaded in, or which are swapped out.
I am trying to gather per process physical memory used and virtual memory used by parsing /proc/(PID)/stat.
I assumed that VM was amount in virtual memory, and RSS was size in real memory. The problem came when I realized I dont' know what RSS is in, bytes, K, G?
is VM really RSS - VM from the stat file?
vsize %lu
Virtual memory size in bytes.
rss %ld
Resident Set Size: number of pages the process has in
real memory, minus 3 for administrative purposes. This is
just the pages which count towards text, data, or stack
space. This does not include pages which have not been
demand-loaded in, or which are swapped out.
I am trying to gather per process physical memory used and virtual memory used by parsing /proc/(PID)/stat.
I assumed that VM was amount in virtual memory, and RSS was size in real memory. The problem came when I realized I dont' know what RSS is in, bytes, K, G?
is VM really RSS - VM from the stat file?