How can RSS be > VSZ in ps ??
From everything I understand, a process's VSZ (virtual memory size) should be greater than its RSS (resident set size). Yet I see cases on a regular basis where this is not true. I am running Redhat Linux Server release 6.3.
Here is an example, looking at the process "Xorg":
$ ps -p 17316 -o pid,comm,rss,vsz,sz
PID COMMAND RSS VSZ SZ
17316 Xorg 314076 166932 41733
(I verified the RSS and VSZ numbers match what is in the /proc/PID/status file, to make sure truncation of the ps output could not be blamed.)
This shows that the RSS is almost twice as big as the VSZ. This runs counter to my understanding of RSS & VSZ.
Is there some sort of shared data that is calcuated in the RSS that is not also included in the VSZ calculation?
thx in advance...
|