Linux命令

linux free命令解释

2015-04-03  本文已影响106人  myang199088

近期定位一个内存耗尽的问题,重拾了一下free命令的一些输出,觉得有必要解释一下free命令的一些输出。

total used free shared buffers cached
Mem: 132130232 127626920 4503312 0 2083688 70900528
-/+ buffers/cache: 54642704 77487528
Swap: 33558524 2699944 30858580

下面我们把这张表称为free表,通过下标来指代具体的行列,如free[1][1],就是表的第二行第二列,即132130232。

A buffer is something that has yet to be "written" to disk.
A cache is something that has been "read" from the disk and stored for later use.

上一篇 下一篇

猜你喜欢

热点阅读