top - 16:04:22 up 33 days, 1:11, 8 users, load average: 0.00, 0.00, 0.00
Tasks: 166 total, 1 running, 165 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.1%sy, 0.0%ni, 99.8%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8096276k total, 7997776k used, 98500k free, 247632k buffers
Swap: 8393920k total, 48124k used, 8345796k free, 7085532k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19264 prestat 19 0 9944 2136 1260 S 0 0.0 1:48.08 psmonitor.sh
1 root 16 0 780 312 256 S 0 0.0 0:06.04 init
2 root RT 0 0 0 0 S 0 0.0 0:00.28 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.16 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
6 root RT 0 0 0 0 S 0 0.0 0:00.19 migration/2
7 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/2
8 root RT 0 0 0 0 S 0 0.0 0:00.16 migration/3
9 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/3
10 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/0
11 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/1
12 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/2
13 root 10 -5 0 0 0 S 0 0.0 0:00.01 events/3
14 root 10 -5 0 0 0 S 0 0.0 0:01.49 khelper
15 root 10 -5 0 0 0 S 0 0.0 0:00.00 kthread
21 root 10 -5 0 0 0 S 0 0.0 0:00.01 kblockd/0
22 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1
23 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/2
24 root 10 -5 0 0 0 S 0 0.0 0:00.01 kblockd/3
25 root 10 -5 0 0 0 S 0 0.0 0:00.00 kacpid
205 root 15 0 0 0 0 S 0 0.0 0:06.14 kswapd0
206 root 10 -5 0 0 0 S 0 0.0 0:00.00 aio/0
207 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/1
208 root 10 -5 0 0 0 S 0 0.0 0:00.00 aio/2
209 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/3
428 root 10 -5 0 0 0 S 0 0.0 0:00.00 cqueue/0
429 root 10 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1
430 root 10 -5 0 0 0 S 0 0.0 0:00.00 cqueue/2
Tasks: 166 total, 1 running, 165 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.1%sy, 0.0%ni, 99.8%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8096276k total, 7997776k used, 98500k free, 247632k buffers
Swap: 8393920k total, 48124k used, 8345796k free, 7085532k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19264 prestat 19 0 9944 2136 1260 S 0 0.0 1:48.08 psmonitor.sh
1 root 16 0 780 312 256 S 0 0.0 0:06.04 init
2 root RT 0 0 0 0 S 0 0.0 0:00.28 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.16 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
6 root RT 0 0 0 0 S 0 0.0 0:00.19 migration/2
7 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/2
8 root RT 0 0 0 0 S 0 0.0 0:00.16 migration/3
9 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/3
10 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/0
11 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/1
12 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/2
13 root 10 -5 0 0 0 S 0 0.0 0:00.01 events/3
14 root 10 -5 0 0 0 S 0 0.0 0:01.49 khelper
15 root 10 -5 0 0 0 S 0 0.0 0:00.00 kthread
21 root 10 -5 0 0 0 S 0 0.0 0:00.01 kblockd/0
22 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1
23 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/2
24 root 10 -5 0 0 0 S 0 0.0 0:00.01 kblockd/3
25 root 10 -5 0 0 0 S 0 0.0 0:00.00 kacpid
205 root 15 0 0 0 0 S 0 0.0 0:06.14 kswapd0
206 root 10 -5 0 0 0 S 0 0.0 0:00.00 aio/0
207 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/1
208 root 10 -5 0 0 0 S 0 0.0 0:00.00 aio/2
209 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/3
428 root 10 -5 0 0 0 S 0 0.0 0:00.00 cqueue/0
429 root 10 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1
430 root 10 -5 0 0 0 S 0 0.0 0:00.00 cqueue/2
Linux 的内存管理方式是把大部分内存先划分出来(就是先占用),然后再分配给进程
所以一般 top 看到的内存占用都非常高,这个其实没有影响的
http://blog.csdn.net/tianlesoftware/article/details/5463790