procps free: remove -/+ buffers/cache 增加 available

技术百科 码拜 8年前 (2017-04-05) 2010次浏览 0个评论

使用 free -m 命令查看内存使用情况时,发现2个不同版本的CentOS系统显示的结果不同,

系统一:

free -m
total used free shared buffers cached
Mem: 992 926 66 83 118 148
-/+ buffers/cache: 659 333
Swap: 0 0 0 codebye.com

系统二:

free
total used free shared buff/cache available
Mem: 1012720 121728 735008 37724 155984 814736
Swap: 524284 33284 491000

搜索后发现:

free: remove -/+ buffers/cache

With introduction of the 'available' column
and with the latest changes in the 'used' evaluation
the -/+ buffers/cache line became redundant.
The first value duplicates the 'used'
column and the second value has a more accurate
brother called 'available'.
www.codebye.com copyright

新版本中 free 命令已经不显示 -/+ buffers/cache


CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明procps free: remove -/+ buffers/cache 增加 available
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!