linux top buff cache,linux – 顶部的“buff / cache”和“avail mem”字段是什么意思?...

在top的输出中,有两个字段,在内存和交换使用行中标记为“buff / cache”和“avail Mem”:

8f2a845c1ea0fcb7a1f066e46e6d7415.png

这两个字段意味着什么?

我已经尝试使用谷歌搜索它们,但结果只会在顶部提出通用文章,而且它们没有解释这些字段的含义.

解决方法:

top的联机帮助页没有描述字段,但free’s确实:

buffers

Memory used by kernel buffers (Buffers in /proc/meminfo)

cache

Memory used by the page cache and slabs (Cached and

SReclaimable in /proc/meminfo)

buff/cache

Sum of buffers and cache

available

Estimation of how much memory is available for starting new

applications, without swapping. Unlike the data provided by

the cache or free fields, this field takes into account page

cache and also that not all reclaimable memory slabs will be

reclaimed due to items being in use (MemAvailable in

/proc/meminfo, available on kernels 3.14, emulated on kernels

2.6.27+, otherwise the same as free)

基本上,“buff / cache”计算用于磁盘上数据的内存,或者应该很快就会在那里结束,因此可能会有用(相应的内存可以在缓存的情况下立即可用,或者给予足够的时间,在缓冲区的情况下 – 后者应该保持较小的水平; “available”可以测量可以分配和使用的内存量,而不会导致更多的交换(有关详细信息,请参阅How can I get the amount of available memory portably across distributions?).

标签:linux,memory,top

来源: https://codeday.me/bug/20190809/1628095.html

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值