Memory Gobbler
I have 128MB RAM and 256KB cache. My machine has been up 32 days. For
the first 3 weeks it went really nicely, didn't get anywhere near using
any swap. However this week it's usage has got over 100MB (now up to
120MB, after deducting buffers and cached, i.e. the second row of "free"
output) and there's plenty of swap being used! I just can't figure out
what's eating it. I wrote a script to total the figures produced by "ps
aux" in the VSZ and RSS columns. At present these come to:
192452 20612
respectively. To me this means there is only 20MB of RAM actually used by
processes, and the 192MB of virtual memory is probably not correct because
some is shared.
So: what's eating it? If it's any help, here's the output of some
commands:
% free
total used free shared buffers cached
Mem: 127756 126048 1708 17040 304 3528
-/+ buffers: 122216 5540
Swap: 128484 27208 101276
% ps aux
USER PID %CPU %MEM VSZ RSS TT STAT START TIME COMMAND
daemon 210 0.0 0.0 832 0 ? SW Mar 17 0:08 rpc.portmap
dennis 844 0.0 0.0 1452 0 pf SW Apr 16 0:00 bash
dennis 880 0.0 0.8 3492 1032 pf S Apr 16 0:16 ical
dmneal 17887 0.0 0.0 1072 0 q4 SW Mar 27 0:00 csh
nobody 1586 0.0 0.0 1004 60 ? S Apr 15 0:00 httpd
nobody 1587 0.0 0.0 1004 56 ? S Apr 15 0:00 httpd
nobody 1588 0.0 0.0 1004 60 ? S Apr 15 0:00 httpd
nobody 21109 0.0 0.3 3328 440 q4 S N Apr 15 0:23 cached
nobody 21110 0.0 0.0 816 0 q4 SWN Apr 15 0:00 dnsserver
nobody 21111 0.0 0.0 816 0 q4 SWN Apr 15 0:00 dnsserver
nobody 21112 0.0 0.0 816 0 q4 SWN Apr 15 0:00 dnsserver
operator 2132 0.0 0.0 1484 0 q6 SW Apr 16 0:00 bash
operator 2245 0.1 0.7 4364 920 q6 S Apr 16 4:09 wish -f /usr/bin/ex
richards 1053 0.0 0.2 1484 300 2 S 09:07 0:00 bash
richards 5020 0.0 0.3 1484 504 4 S Mar 20 0:00 -bash
richards 8248 0.0 0.7 2420 980 2 S 10:18 0:00 pine
richards 9166 0.0 0.3 928 440 4 R 10:27 0:00 ps aux
richards 31895 0.0 0.0 1488 0 pb SW 16:41 0:00 bash
root 1 0.0 0.0 812 16 ? S Mar 17 41:31 init
root 2 0.0 0.0 0 0 ? SW Mar 17 0:03 kflushd
root 3 0.0 0.0 0 0 ? SW< Mar 17 4:42 kswapd
root 4 0.0 0.0 0 0 ? SW Mar 17 0:00 nfsiod
root 5 0.0 0.0 0 0 ? SW Mar 17 0:00 nfsiod
root 6 0.0 0.0 0 0 ? SW Mar 17 0:00 nfsiod
root 7 0.0 0.0 0 0 ? SW Mar 17 0:00 nfsiod
root 13 0.0 0.0 788 48 ? S Mar 17 17:58 update
root 196 0.0 0.2 1084 336 ? S Mar 17 1:50 /sbin/syslogd
root 198 0.0 0.0 964 0 ? SW Mar 17 0:01 klogd
root 206 0.0 0.0 800 48 ? S Mar 17 0:00 /sbin/kerneld
root 212 0.0 0.0 812 24 ? S Mar 17 0:13 inetd
root 281 0.0 0.0 936 0 ? SW Mar 17 0:02 au
root 291 0.0 0.0 1068 124 ? S Mar 17 4:11 /usr/sbin/snmpd -f
root 303 0.0 0.0 924 76 ? S Mar 17 1:52 /usr/sbin/rpc.nfsd
root 305 0.0 0.0 888 72 ? S Mar 17 0:10 /usr/sbin/rpc.mount
root 309 0.0 0.0 844 88 ? S Mar 17 13:49 /usr/sbin/atalkd
root 319 0.0 0.0 892 52 ? S Mar 17 0:10 /usr/sbin/afpd
root 322 0.0 0.0 828 112 ? S Mar 17 1:22 /usr/sbin/cron
root 329 0.0 0.0 2004 80 ? S Mar 17 0:08 xdm
root 331 0.0 0.0 804 0 1 SW Mar 17 0:00 getty
root 335 0.0 0.0 804 0 5 SW Mar 17 0:00 getty
root 336 0.0 0.0 804 0 6 SW Mar 17 0:00 getty
root 843 0.0 0.0 1076 0 ? SW Apr 16 0:00 in.telnetd
root 1428 0.0 0.0 2740 80 ? S 17:03 0:01 xterm
root 1487 0.0 0.3 2740 420 ? S 17:04 0:01 xterm -bg LavenderB
root 2131 0.0 0.0 1076 0 ? SW Apr 16 0:00 in.telnetd
root 2443 0.0 0.0 2836 20 ? S Apr 16 0:01 xterm
root 2780 0.0 0.0 2740 64 ? S Apr 14 0:01 xterm
root 3537 0.0 0.1 1232 232 ? S Mar 18 0:36 sendmail: accepting
root 3766 0.0 0.0 848 0 ? SW Mar 20 0:00 papd
root 4518 0.0 0.1 2044 208 ? S Apr 11 0:01 -massiveduck.cc.
root 7126 0.0 0.0 1048 0 q4 SWN Apr 9 0:01 RunCache
root 9156 0.0 0.0 2948 32 ? S Apr 14 0:15 xterm
root 9161 0.0 0.3 1456 416 ? S 10:27 0:00 bash ./monitor.sh m
root 9162 0.0 0.2 864 360 ? S 10:27 0:00 /bin/ping -q -i 1 -
root 9163 0.0 0.2 896 272 ? S 10:27 0:00 fgrep %
root 9164 0.0 0.2 808 268 ? S 10:27 0:00 cut -f3 -d,
root 9165 0.0 0.2 808 268 ? S 10:27 0:00 cut -f1 -d%
root 11591 0.0 0.1 2740 132 ? S Apr 15 0:28 xterm -bg MistRose3
root 11784 0.0 0.1 2760 244 ? S Apr 14 0:18 xterm -bg beige -ls
root 11797 0.0 0.0 2744 100 ? S 13:27 0:01 xterm
root 12020 0.0 0.0 2740 44 ? S 13:29 0:01 xterm
root 13892 0.0 0.0 2740 52 ? S 13:47 0:01 xterm
root 14439 0.0 0.0 2740 76 ? S Apr 14 0:02 xterm
root 17023 0.0 0.0 2740 104 ? S Apr 15 0:08 xterm
root 17886 0.0 0.0 1076 0 ? SW Mar 27 1:00 in.telnetd
root 19426 0.0 0.1 964 240 ? S Apr 8 1:55 nmbd
root 20213 0.0 0.1 1248 188 ? S Apr 11 0:03 smbd
root 20758 0.0 0.1 1228 252 ? S Apr 16 0:01 smbd
root 22074 0.0 0.1 1016 204 ? S < Apr 13 0:09 /usr/sbin/xntpd
root 22153 0.0 0.0 2820 96 ? S 15:08 0:05 xterm
root 22632 0.0 0.0 2744 64 ? S Apr 11 0:03 xterm
root 23212 0.0 0.1 1092 228 ? S Apr 15 0:11 /usr/sbin/apache
root 24944 0.0 0.0 2744 40 ? S Apr 12 0:08 xterm
root 25670 0.0 0.1 1004 132 ? S Apr 15 0:02 /usr/local/bin/http
root 25744 0.0 0.1 1232 184 ? S Apr 14 0:02 smbd
root 26666 0.1 0.2 1460 336 ? S Apr 13 14:09 bash ./monitor.sh m
root 28415 0.0 0.3 3588 440 ? S 16:06 0:47 named
root 30170 0.0 0.0 828 0 ? SW Mar 20 0:01 lpd
root 30567 0.0 0.1 2740 220 ? S 08:37 0:05 xterm -bg LavenderB
root 30672 0.0 0.1 2740 220 ? S 08:38 0:05 xterm -bg LavenderB
root 30762 0.0 0.0 1508 0 q4 SW Mar 27 0:22 bash
root 31309 0.0 0.0 2740 56 ? S Apr 16 0:06 xterm
root 32070 0.0 0.1 1476 168 3 S 08:51 0:00 bash
sandy 1429 0.0 0.0 1116 0 q3 SW 17:03 0:00 telnet
sandy 1488 0.0 0.0 1116 60 q7 S 17:04 0:00 telnet nzgate2
sandy 2231 0.0 0.0 1112 56 p2 S 09:18 0:02 telnet 130.217.118.
sandy 2451 0.0 0.0 1116 0 pc SW Apr 16 0:00 telnet
sandy 2781 0.0 0.0 1116 0 q9 SW Apr 14 0:00 telnet
sandy 4551 0.0 0.0 1400 0 ? SW Apr 11 0:00 .xsession
sandy 4560 0.0 0.2 2136 296 ? S Apr 11 2:35 fvwm95-2 -s
sandy 5308 0.0 0.4 8888 592 ? S Apr 11 9:03 /usr/lib/netscape/n
sandy 5381 0.0 0.0 1116 56 p1 S 09:50 0:00 telnet
sandy 9157 0.0 0.0 1468 0 qb SW Apr 14 0:00 bash
sandy 11017 0.0 0.0 1556 40 ? S Apr 14 0:01 FvwmButtons
sandy 11019 0.0 0.1 1540 236 ? S Apr 14 0:12 /usr/lib/X11/fvwm95
sandy 11027 0.0 0.2 2332 352 ? S N Apr 14 0:05 xload -nolabel -bg
sandy 11028 0.0 0.0 1524 64 ? S Apr 14 0:05 FvwmPager
sandy 11397 0.0 0.1 1976 172 ? S Apr 14 0:01 oclock
sandy 11593 0.0 0.0 1116 4 q1 S Apr 15 0:09 telnet
sandy 11786 0.0 0.0 1472 0 p2 SW Apr 14 0:01 bash
sandy 11806 0.0 0.0 1456 108 p1 S 13:27 0:00 bash
sandy 12021 0.0 0.0 1116 0 p4 SW 13:29 0:00 telnet
sandy 13893 0.0 0.0 1116 0 p5 SW 13:47 0:00 telnet
sandy 14440 0.0 0.0 1116 0 p0 SW Apr 14 0:00 telnet
sandy 17024 0.0 0.0 1464 0 qf SW Apr 15 0:00 bash
sandy 17049 0.0 0.0 1116 4 qf S Apr 15 0:01 telnet
sandy 22162 0.0 0.0 1476 0 pb SW 15:08 0:01 bash
sandy 22633 0.0 0.0 1460 0 pa SW Apr 11 0:00 bash
sandy 22648 0.0 0.0 1116 0 pa SW Apr 11 0:00 telnet
sandy 24945 0.0 0.0 1472 0 q5 SW Apr 12 0:00 bash
sandy 25165 0.0 0.0 1556 0 qb SW Apr 14 0:06 vi
sandy 30568 0.0 0.0 1112 56 q8 S 08:37 0:02 telnet 130.217.144.
sandy 30681 0.0 0.0 1112 56 qa S 08:38 0:02 telnet 130.217.144.
sandy 30766 0.0 0.0 908 88 ? S 08:39 0:02 /usr/sbin/afpd
sandy 31310 0.0 0.0 1116 0 p3 SW Apr 16 0:00 telnet
www-data 18869 0.0 0.1 1092 152 ? S 06:42 0:00 apache
www-data 18870 0.0 0.1 1092 160 ? S 06:42 0:00 apache
www-data 18871 0.0 0.1 1092 156 ? S 06:42 0:00 apache
www-data 18872 0.0 0.1 1092 152 ? S 06:42 0:00 apache
www-data 18873 0.0 0.1 1092 152 ? S 06:42 0:00 apache
I just don't get it....any help? (I am running Debian rex, 2.0.27 kernel).
Is it a cache RAM problem (i.e. on 256KB)?
8<--------------------------------------->8
Richard Shepherd (r.shepherd@waikato.ac.nz)
8<--------------------------------------->8
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: