When using 'top' (RH 5.2, 6.0) in default configuration, one sees
"RSS" column which, according to the man-page, gives:
RSS The total amount of physical memory used by the task
This looks like (IMHO) resident memory usage of the task.
But, RSS reported is almost always equal to SIZE, which for sure is not
always true (should RSS be indeed resident size). On the other hand,
one can display /proc/PID/status, showing "VmRSS" size, another thing
referred to as "resident memory usage". These two numbers differ
greatly, e.g:
PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMANDQuote:>top
921 msz 16 0 39132 38M 676 R 0 49.5 62.9 27:06 huge
...
...Quote:>cat /proc/921/status
VmRSS: 9104 kB
Question: which is the true "resident" memory size? If it is the latter
(which is my guess), would it be possible to display that number in "top"?
regards, Michal.
--
Warsaw University Observatory, Warszawa, POLAND