Bill Moseley wrote: > Top shows shared memory, but I'm not clear how to read shared memory > with ps. I'm curious how much total memory these Apache process are > using -- and how much is shared between the processes. > > Does RSS include memory that might be shared with other processes? > > $ ps --ppid 29903 -F > UID PID PPID C SZ RSS PSR STIME TTY TIME CMD > 112 29908 29903 1 16016 46480 0 18:52 ? 00:00:04 > /usr/sbin/apache2 -k start -DSSL > 112 29909 29903 1 15908 46160 0 18:52 ? 00:00:03 > /usr/sbin/apache2 -k start -DSSL > 112 29910 29903 1 16002 46556 0 18:52 ? 00:00:04 > /usr/sbin/apache2 -k start -DSSL > 112 29911 29903 0 15528 44568 0 18:52 ? 00:00:01 > /usr/sbin/apache2 -k start -DSSL > 112 29912 29903 0 15759 45504 0 18:52 ? 00:00:01 > /usr/sbin/apache2 -k start -DSSL > 112 29918 29903 0 16007 46452 0 18:52 ? 00:00:02 > /usr/sbin/apache2 -k start -DSSL > 112 29920 29903 0 16067 46748 0 18:52 ? 00:00:02 > /usr/sbin/apache2 -k start -DSSL > > > $ ps --ppid 29903 v > PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND > 29908 ? S 0:04 2 364 63699 46480 5.1 /usr/sbin/apache2 -k > start -DSSL > 29909 ? S 0:03 0 364 63267 46160 5.0 /usr/sbin/apache2 -k > start -DSSL > 29910 ? S 0:04 0 364 63643 46556 5.1 /usr/sbin/apache2 -k > start -DSSL > 29911 ? S 0:01 1 364 61747 44568 4.9 /usr/sbin/apache2 -k > start -DSSL > 29912 ? S 0:01 4 364 62671 45504 5.0 /usr/sbin/apache2 -k > start -DSSL > 29918 ? S 0:02 1 364 63663 46452 5.1 /usr/sbin/apache2 -k > start -DSSL > 29920 ? S 0:02 4 364 63903 46748 5.1 /usr/sbin/apache2 -k > start -DSSL > > Also, ps is always showing the UID # instead of the name. Shouldn't > that come from /etc/passwd? > > $ fgrep 112 /etc/passwd > subversion:x:112:112:subversion:/var/lib/projects:/bin/sh > > > > http://it.slashdot.org/article.pl?sid=06/02/06/120210&from=rss
-Roberto -- Roberto C. Sanchez http://familiasanchez.net/~roberto
signature.asc
Description: OpenPGP digital signature