linux top buff cache,linux – 顶部的“buff / cache”和“avail mem”字段是什么意思?...
在top的输出中,有两个字段,在内存和交换使用行中标记为“buff / cache”和“avail Mem”:这两个字段意味着什么?我已经尝试使用谷歌搜索它们,但结果只会在顶部提出通用文章,而且它们没有解释这些字段的含义.解决方法:top的联机帮助页没有描述字段,但free’s确实:buffersMemory used by kernel buffers (Buffers in /proc/mem
在top的输出中,有两个字段,在内存和交换使用行中标记为“buff / cache”和“avail Mem”:
这两个字段意味着什么?
我已经尝试使用谷歌搜索它们,但结果只会在顶部提出通用文章,而且它们没有解释这些字段的含义.
解决方法:
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
更多推荐
所有评论(0)