ITPub博客

首页 > IT职业 > IT生活 > 看懂free的输出

看懂free的输出

原创 IT生活 作者:free1879 时间:2011-05-24 11:07:43 0 删除 编辑
[oracle@ora /]$ free -m
total used free shared buffers cached
Mem: 4542 1695 2846 0 37 1500
-/+ buffers/cache: 158 4384
Swap: 6527 0 6527
[@more@]

以上表明

物理内存有4542M,已经使用了1695m,还剩下2846m的空间未分配,共享内存用了0m,buffers有37m,cached有1500m。

系统真正用了多少内存呢?

1695 - 37-1500 = 158m

就是-/+/buffers/cache哪一行的158m

系统总共空闲多少呢?

4542 - 158 = 4384m

交换空间是多少呢?

6527m

用了多少交换空间呢?

0m 表明系统够用,如果交换空间占用了大量的比例,那么就要考虑加内存了。

什么是buffers呢?

A buffer is something that has yet to be “written” to disk.

什么是cache呢?

A cache is something that has been “read” from the disk and stored for later use。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7370972/viewspace-1050289/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: linux开启telnet
下一篇: linux vmstat 的使用
请登录后发表评论 登录
全部评论

注册时间:2011-10-25

  • 博文量
    17
  • 访问量
    20769