Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Jul 1995 17:59:37 +0000
From:      Matt Thomas <matt@lkg.dec.com>
To:        hackers@freebsd.org
Subject:   How can VSZ < RSS?  Huh!?
Message-ID:  <199507061759.RAA01215@whydos.lkg.dec.com>

next in thread | raw e-mail | index | archive | help

I'm running FreeBSD 2.0.5 and I'm seeing something that is slightly
confusing.  When doing a "ps axu", many processes have a RSS greater
than their VSZ.  

USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
thomas    1146 14.3  5.5  1348 1712 ??  S     5:53PM    0:00.48 
/usr/local/bin/wish -f /usr/local/bin/exmh-b
root       442 13.2 31.2  6736 9688 ??  S     4:33PM    5:10.76 
/usr/X11R6/bin/X -bpp 16 -auth /usr/X11R6/li
root        62  0.0  1.0   184  296 ??  Ss    3:59PM    0:00.43 syslogd
daemon      68  0.0  0.8   176  232 ??  Is    3:59PM    0:00.02 portmap
root        77  0.0  1.0   224  292 ??  Is    3:59PM    0:00.45 inetd
root        84  0.0  1.1   272  324 ??  Is    3:59PM    0:00.25 cron
root        86  0.0  0.9   188  280 ??  Is    3:59PM    0:00.06 lpd
root        89  0.0  1.0   416  288 ??  Is    3:59PM    0:00.20 sendmail: 
accepting connections (sendmail)
root       129  0.0  1.0   484  296 v0  Is+   3:59PM    0:00.56 -csh (csh)
root       130  0.0  1.4   156  420 v1  Is+   3:59PM    0:00.04 
/usr/libexec/getty Pc ttyv1
root       131  0.0  1.4   156  420 v2  Is+   3:59PM    0:00.04 
/usr/libexec/getty Pc ttyv2
root       439  0.0  1.4   304  432 ??  I     4:33PM    0:00.05 xdm
root       443  0.0  3.3   408 1004 ??  I     4:33PM    0:00.21 -:0 (xdm)
root       449  0.0  3.1   260  952 ??  I     4:33PM    0:00.09 xconsole 
-geometry 480x130-0-0 -daemon -noti
thomas     452  0.0  0.6   480  180 ??  I     4:33PM    0:00.13 /bin/sh 
/other/users/thomas/.xsession
thomas     462  0.7  3.7   428 1144 ??  S     4:33PM    0:14.25 fvwm
thomas     463  0.0  5.0   312 1556 ??  S     4:33PM    0:05.38 xload -geom 
140x72+88-0 -fg SkyBlue -bg Dark
thomas     464  0.0  4.9   292 1516 ??  S     4:33PM    0:03.39 xclock -fg 
green -hl yellow -bg black -geom 
thomas     467  0.0  3.0   244  932 ??  S     4:33PM    0:01.46 
/usr/X11R6/lib/X11/fvwm/FvwmPager 11 7 /othe
root       470  0.3  6.9  1052 2144 ??  S     4:33PM    0:00.92 xterm
thomas     473  0.0  0.9   480  284 p1  Ss    4:33PM    0:00.13 -sh (csh)
thomas    1061  0.0  0.2   188   52 ??  I     5:33PM    0:00.01 sleep 3600
thomas    1148  0.0  0.2   188   56 ??  S     5:53PM    0:00.01 sleep 4
root         0  0.0  0.0     0    0 ??  DLs  -          0:00.00  (swapper)
thomas    1149  0.0  0.7   472  200 p1  R+    5:53PM    0:00.02 ps axu
root         1  0.0  0.6   368  188 ??  Is    3:59PM    0:00.18 /sbin/init --
root         2  0.0  0.1     0   12 ??  DL    3:59PM    0:00.03  (pagedaemon)

My guess is this is related to the use mmap by process (to load the sharable
libraries or other things).

Still looks weird.


Matt Thomas                          Internet:   matt@lkg.dec.com
U*X Networking                       WWW URL:    http://ftp.dec.com/%7Ethomas/
Digital Equipment Corporation        Disclaimer: This message reflects my
Littleton, MA                                    own warped views, etc.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507061759.RAA01215>