Memory Usage

Dirk Kleinschmidt dirk.kleinschmidt at web.de
Sat Jan 21 04:26:16 PST 2006


Hi everyone again,

I tried to analyze the memory usage of my CLFS a little bit and found a 
surprise (for me). Can anyone explain to me, why almost no memory is 
left (out of 512 mb) even though I'm just running apache, ssh and fcron?


/proc/meminfo

MemTotal:       514264 kB
MemFree:          3960 kB
Buffers:          6216 kB
Cached:         483836 kB
SwapCached:          0 kB
Active:         105192 kB
Inactive:       389500 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       514264 kB
LowFree:          3960 kB
SwapTotal:      524280 kB
SwapFree:       524272 kB
Dirty:           54640 kB
Writeback:           0 kB
Mapped:           9256 kB
Slab:            12372 kB
CommitLimit:    781412 kB
Committed_AS:    19360 kB
PageTables:        480 kB
VmallocTotal:   449468 kB
VmallocUsed:     19824 kB
VmallocChunk:   429620 kB

'top' command gives me the following output

top - 12:18:41 up 14:42,  1 user,  load average: 0.04, 0.01, 0.00
Tasks:  37 total,   2 running,  35 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0% us,  0.7% sy,  0.0% ni, 98.7% id,  0.3% wa,  0.3% hi,  0.0% si
Mem:    514264k total,   510284k used,     3980k free,     7996k buffers
Swap:   524280k total,        8k used,   524272k free,   477964k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  214 root      15   0     0    0    0 S  0.3  0.0   0:18.30 khpsbpkt
 3193 root      25  10  3804 1672 1384 S  0.3  0.3   0:01.15 wget
    1 root      16   0  1672  600  532 S  0.0  0.1   0:00.78 init
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    3 root      10  -5     0    0    0 S  0.0  0.0   0:00.46 events/0
    4 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
   25 root      10  -5     0    0    0 S  0.0  0.0   0:00.03 kblockd/0
   29 root      10  -5     0    0    0 S  0.0  0.0   0:00.03 khubd
   84 root      15   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
   85 root      15   0     0    0    0 S  0.0  0.0   0:00.16 pdflush
   87 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
   86 root      15   0     0    0    0 S  0.0  0.0   0:06.46 kswapd0
  168 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/0
  218 root      15   0     0    0    0 S  0.0  0.0   0:00.00 knodemgrd_0
  296 root      15   0     0    0    0 S  0.0  0.0   0:00.91 kjournald
 2455 root      12  -4  1676  548  476 S  0.0  0.1   0:00.01 udevd
 2488 root      26  10  1784  620  520 S  0.0  0.1   0:00.04 syslogd
 2496 root      25  10  2164  992  400 S  0.0  0.2   0:00.08 klogd
 2585 root      26  10  3452  868  684 S  0.0  0.2   0:00.32 sshd
 2765 root      16   0  8860 2748 1880 S  0.0  0.5   0:00.03 httpd
 2787 root      26  10  2068  500  404 S  0.0  0.1   0:00.00 fcron
 2789 root      16   0  1664  508  444 S  0.0  0.1   0:00.00 agetty
 2790 root      16   0  1664  508  444 S  0.0  0.1   0:00.00 agetty
 2791 root      16   0  1664  508  444 S  0.0  0.1   0:00.00 agetty
 2792 root      16   0  1664  508  444 S  0.0  0.1   0:00.00 agetty
 2793 root      16   0  1664  508  444 S  0.0  0.1   0:00.00 agetty
 2794 root      16   0  1664  508  444 S  0.0  0.1   0:00.00 agetty
 3115 apache    16   0  8992 2200 1212 S  0.0  0.4   0:05.91 httpd
 3116 apache    16   0  8992 2132 1192 S  0.0  0.4   0:10.37 httpd
 3117 apache    16   0  8992 2168 1212 S  0.0  0.4   0:05.78 httpd
 3118 apache    16   0  8992 2200 1240 S  0.0  0.4   0:05.69 httpd
 3119 apache    16   0  8992 2168 1212 S  0.0  0.4   0:05.77 httpd
 3120 apache    16   0  8992 2152 1216 S  0.0  0.4   0:05.83 httpd
 3200 root      26  10  6160 1564 1312 R  0.0  0.3   0:00.07 sshd
 3202 root      25  10  2948 1628 1336 S  0.0  0.3   0:00.02 bash
 3213 root      26  10  2392 1104  900 R  0.0  0.2   0:00.00 top





More information about the cross-lfs mailing list