Hallo,
although I've been using Linux for a while now, I still have some questions and I hope that anyone here can help me.
At the moment I'm trying to figure out how to read the output of the
"top" command correctly.
The CPU has
address sizes : 32 bits physical, 32 bits virtual
cpu MHz : 1729.130
cache size : 1024 KB
Sometimes the system got rather slow, so I wanted to know which processes eat up the memory.
When the system got slow, the output of "top" looked something like this:
Code:
Tasks: 185 total, 1 running, 184 sleeping, 0 stopped, 0 zombie
Cpu(s): 93.4%us, 5.0%sy, 1.7%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1025128k total, 1011160k used, 13968k free, 97164k buffers
Swap: 0k total, 0k used, 0k free, 501976k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12942 user1 20 0 42760 33m 6308 S 82.6 3.3 0:18.15 virtuoso-t
12937 user1 20 0 106m 15m 12m S 6.3 1.5 0:01.90 nepomukservices
12948 user1 39 19 80400 21m 17m S 3.6 2.2 0:01.07 nepomukservices
2051 user1 20 0 2908 1072 496 S 1.7 0.1 0:00.96 dbus-daemon
12951 user1 20 0 44956 11m 9996 S 1.3 1.1 0:00.24 nepomukservices
12953 user1 20 0 37420 12m 10m S 1.3 1.2 0:00.32 nepomukservices
12949 user1 20 0 43200 13m 10m S 1.0 1.4 0:00.68 nepomukservices
1377 root 20 0 81500 22m 4616 S 0.3 2.2 3:54.28 Xorg
2137 root 20 0 83792 9116 5580 S 0.3 0.9 0:17.38 x-terminal-emul
6676 user1 20 0 84800 12m 8988 S 0.3 1.2 1:17.18 lxpanel
12960 root 20 0 2464 1216 896 R 0.3 0.1 0:00.08 top
1 root 20 0 2032 160 68 S 0.0 0.0 0:01.06 init
Now I'd like some help in reading this.
My first assumption was that k meant Kilobytes, but if this refers to the cpu memory, there's a difference of the factor 1000.
Section 2 of "man top" tells me only that k is something with kernel, but I assume that this in another context. m is explained as something with time, but this also does not fit in here.
So my questions in short:
1. What's the meaning of letters m and k?
2. Why is the mem value 1025128k and not something like
1048576 Bytes or 1024000 Bytes?
3. Why are sleeping processes using so much of resident memory?