"free" on my box is showing lots of memory being used. I shut down nearly all the applications I use (lighttpd, postfix, named, stunnel mainly). But even then it still claimed 230Mb of memory being used:
Code:
% free
total used free shared buffers cached
Mem: 356008 257692 98316 0 5316 21356
-/+ buffers/cache: 231020 124988
Swap: 263160 576 262584
But a complete "ps" listing is showing much less than that
Code:
% ps auxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 1696 608 ? Ss Jan31 0:01 init [3]
root 2 0.0 0.0 0 0 ? S< Jan31 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< Jan31 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< Jan31 0:00 [events/0]
root 5 0.0 0.0 0 0 ? S< Jan31 0:00 [khelper]
root 43 0.0 0.0 0 0 ? S< Jan31 0:02 [kblockd/0]
root 62 0.0 0.0 0 0 ? S< Jan31 0:24 [kswapd0]
root 63 0.0 0.0 0 0 ? S< Jan31 0:00 [aio/0]
root 71 0.0 0.0 0 0 ? S< Jan31 0:00 [jfsIO]
root 72 0.0 0.0 0 0 ? S< Jan31 0:00 [jfsCommit]
root 73 0.0 0.0 0 0 ? S< Jan31 0:00 [jfsSync]
root 74 0.0 0.0 0 0 ? S< Jan31 0:00 [xfslogd/0]
root 75 0.0 0.0 0 0 ? S< Jan31 0:00 [xfsdatad/0]
root 76 0.0 0.0 0 0 ? S< Jan31 0:00 [xfs_mru_cache]
root 635 0.0 0.0 0 0 ? S< Jan31 0:00 [kcryptd/0]
root 636 0.0 0.0 0 0 ? S< Jan31 0:00 [ksnapd]
root 656 0.0 0.0 0 0 ? S< Jan31 0:00 [rpciod/0]
root 752 0.0 0.0 0 0 ? S< Jan31 0:00 [kjournald]
root 2479 0.0 0.1 1604 536 ? Ss Jan31 0:04 syslogd -m 0
root 2483 0.0 0.1 1552 372 ? Ss Jan31 0:00 klogd -x
root 2510 0.0 0.3 4096 1144 ? Ss Jan31 0:02 /usr/sbin/sshd
root 2540 0.0 0.1 1588 468 ? Ss Jan31 0:00 udevd
root 2610 0.0 0.2 4540 920 ? Ss Jan31 0:00 crond
root 2625 0.0 0.1 1780 424 ? Ss Jan31 0:00 /usr/sbin/atd
dbus 2639 0.0 0.2 2476 932 ? Ss Jan31 0:00 dbus-daemon-1 --system
root 2649 0.0 0.6 4084 2312 ? Ss Jan31 0:00 hald
root 2688 0.0 0.1 1540 460 tty0 Ss+ Jan31 0:00 /sbin/mingetty tty0
root 9361 0.0 0.0 0 0 ? S Feb09 0:00 [pdflush]
root 13551 0.0 0.0 0 0 ? S Feb09 0:00 [pdflush]
root 15613 0.0 0.6 6940 2224 ? Ss 09:15 0:00 sshd: sweh [priv]
sweh 15615 0.0 0.4 6940 1488 ? S 09:15 0:00 sshd: sweh@pts/0
sweh 15616 0.0 0.3 4680 1388 pts/0 Ss 09:15 0:00 -ksh
root 15636 0.0 0.4 4664 1456 pts/0 S 09:15 0:00 ksh
root 15926 0.0 0.2 2380 772 pts/0 R+ 09:51 0:00 ps auxww
There's no shared memory (ipcs -a) in use. So where has all the free memory gone?
Unfortunately I'll have to reboot because I can't leave my linode non-working, but any ideas welcome to assist in diagnosis next time around.
ETA:
For what it's worth, after a reboot...
Code:
% ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.9 0.1 1696 608 ? Ss 10:02 0:00 init [3]
root 2 0.0 0.0 0 0 ? S< 10:02 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 10:02 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< 10:02 0:00 [events/0]
root 5 0.0 0.0 0 0 ? S< 10:02 0:00 [khelper]
root 48 0.0 0.0 0 0 ? S< 10:02 0:00 [kblockd/0]
root 66 0.0 0.0 0 0 ? S 10:02 0:00 [pdflush]
root 67 0.0 0.0 0 0 ? S 10:02 0:00 [pdflush]
root 68 0.0 0.0 0 0 ? S< 10:02 0:00 [kswapd0]
root 69 0.0 0.0 0 0 ? S< 10:02 0:00 [aio/0]
root 74 0.0 0.0 0 0 ? S< 10:02 0:00 [cifsoplockd]
root 75 0.0 0.0 0 0 ? S< 10:02 0:00 [cifsdnotifyd]
root 79 0.0 0.0 0 0 ? S< 10:02 0:00 [jfsIO]
root 80 0.0 0.0 0 0 ? S< 10:02 0:00 [jfsCommit]
root 81 0.0 0.0 0 0 ? S< 10:02 0:00 [jfsSync]
root 82 0.0 0.0 0 0 ? S< 10:02 0:00 [xfslogd/0]
root 83 0.0 0.0 0 0 ? S< 10:02 0:00 [xfsdatad/0]
root 84 0.0 0.0 0 0 ? S< 10:02 0:00 [xfs_mru_cache]
root 642 0.0 0.0 0 0 ? S< 10:02 0:00 [ksnapd]
root 662 0.0 0.0 0 0 ? S< 10:02 0:00 [rpciod/0]
root 758 0.0 0.0 0 0 ? S< 10:02 0:00 [kjournald]
root 2462 0.0 0.1 1604 536 ? Ss 10:03 0:00 syslogd -m 0
root 2467 0.0 0.1 1552 372 ? Ss 10:03 0:00 klogd -x
named 2481 0.0 0.7 30240 2744 ? Ssl 10:03 0:00 /usr/sbin/named -
root 2487 0.0 0.1 1588 460 ? Ss 10:03 0:00 udevd
root 2504 0.1 0.3 4096 1140 ? Ss 10:03 0:00 /usr/sbin/sshd
root 2573 0.0 0.4 5184 1640 ? Ss 10:03 0:00 /usr/libexec/post
postfix 2580 0.0 0.4 5232 1664 ? S 10:03 0:00 pickup -l -t fifo
postfix 2582 0.0 0.4 5280 1728 ? S 10:03 0:00 qmgr -l -t fifo -
postfix 2593 0.0 0.5 6060 2084 ? S 10:03 0:00 trivial-rewrite -
postfix 2594 0.0 0.5 5356 1800 ? S 10:03 0:00 smtp -t unix -u
lighttpd 2598 0.0 0.1 1916 624 ? S 10:03 0:00 /usr/sbin/lighttp
root 2613 0.0 0.2 4540 916 ? Ss 10:03 0:00 crond
root 2622 0.0 0.1 1780 424 ? Ss 10:03 0:00 /usr/sbin/atd
dbus 2631 0.0 0.2 2476 932 ? Ss 10:03 0:00 dbus-daemon-1 --s
postfix 2642 0.0 0.6 6408 2332 ? S 10:03 0:00 smtpd -n smtp -t
postfix 2646 0.0 0.4 5220 1636 ? S 10:03 0:00 proxymap -t unix
postfix 2650 0.0 0.4 5228 1648 ? S 10:03 0:00 anvil -l -t unix
root 2651 0.1 0.6 4084 2320 ? Ss 10:03 0:00 hald
root 2658 0.0 0.1 3744 656 ? Ss 10:03 0:00 /usr/sbin/stunnel
teamspk 2679 1.2 0.4 20688 1580 ? SN 10:03 0:00 ./server_linux
teamspk 2680 0.0 0.4 20688 1580 ? S 10:03 0:00 ./server_linux
teamspk 2681 0.0 0.4 20688 1580 ? S 10:03 0:00 ./server_linux
teamspk 2682 0.0 0.4 20688 1580 ? S 10:03 0:00 ./server_linux
teamspk 2683 0.0 0.4 20688 1580 ? S 10:03 0:00 ./server_linux
postfix 2684 0.0 0.6 6408 2336 ? S 10:03 0:00 smtpd -n smtp -t
teamspk 2685 0.0 0.4 20688 1580 ? S 10:03 0:00 ./server_linux
teamspk 2686 0.0 0.4 20688 1580 ? S 10:03 0:00 ./server_linux
teamspk 2687 0.0 0.4 20688 1580 ? S 10:03 0:00 ./server_linux
teamspk 2688 0.0 0.4 20688 1580 ? S 10:03 0:00 ./server_linux
root 2696 0.0 0.1 1540 456 tty0 Ss+ 10:03 0:00 /sbin/mingetty tt
postfix 2697 0.0 0.5 5636 2052 ? S 10:03 0:00 cleanup -z -t uni
postfix 2698 0.0 0.5 5356 1824 ? S 10:03 0:00 smtp -t unix -u
postfix 2721 0.0 0.6 6408 2328 ? S 10:03 0:00 smtpd -n smtp -t
postfix 2722 0.0 0.6 6408 2328 ? S 10:03 0:00 smtpd -n smtp -t
postfix 2723 0.0 0.5 5400 1984 ? Ss 10:03 0:00 verify -l -t unix
postfix 2724 0.0 0.5 5356 1824 ? S 10:03 0:00 smtp -t unix -u
postfix 2725 0.0 0.6 6408 2320 ? S 10:03 0:00 smtpd -n smtp -t
postfix 2726 0.0 0.6 6408 2332 ? S 10:03 0:00 smtpd -n smtp -t
postfix 2727 0.0 0.6 6408 2324 ? S 10:03 0:00 smtpd -n smtp -t
root 2736 0.0 0.6 6940 2228 ? Ss 10:03 0:00 sshd: sweh [priv]
sweh 2747 0.0 0.4 7084 1512 ? R 10:03 0:00 sshd: sweh@pts/0
sweh 2766 0.0 0.3 4680 1380 pts/0 Rs+ 10:03 0:00 -ksh
sweh 2786 0.0 0.2 2380 772 pts/0 R 10:04 0:00 ps -aux
Code:
% free
total used free shared buffers cached
Mem: 355800 57940 297860 0 4896 28812
-/+ buffers/cache: 24232 331568
Swap: 263160 0 263160