memory - how to know process working set size in linux /proc -


process working set info in linux

i finding working set size of process in proc folder link can find working set size in /proc don't know how know. knew rss working set size rss different working set size can know working set size using /proc/[pid]/statm?

i don't believe /proc/[pid]/statm gives wss, or /proc/[pid]/status matter.

wss number of pages process needs in memory keep "working".

rss number of pages of process reside in main memory.

so rss >= wss. meaning rss may include pages process doesn't need right now. maybe used stale pages in past.

from understanding of linux internals, kernel doesn't keep track of wss on per-process basis. wss involved track continuously , doesn't have exact formula. rss simpler calculate, kernel reports that.

note if sum of wss of processes greater or equal main memory size (i.e. system thrashing or close thrashing) rss equals wss because pages absolutely needed process kept in main memory. got it?


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -