“top”和“free”之间的内存使用不一致
有什么我不明白的方式top和free报告内存使用情况。 如果我运行top,并从%MEM列中总结内存使用情况,那么我得到的内存使用量要比free报告低得多,我不明白为什么! 下面是free和top的输出。 root@zamerli:~# free total used free shared buffers cached Mem: 329036 314412 14624 0 7820 97708 -/+ buffers/cache: 208884 120152 Swap: 524280 2660 521620 root@zamerli:~# top -b -n 1 top – 20:12:45 up 2:19, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 103 total, 1 running, 102 sleeping, 0 stopped, 0 zombie Cpu(s): […]