[英]Kubernetes pods in Grafana dashboard show memory usage with Current, Requested, Limit and Cache. What does Cache indicate?
它的页面缓存。在 Linux 下,页面缓存加速了对非易失性存储上文件的许多访问。 这是因为,当它第一次从硬盘驱动器等数据介质读取或写入数据时,Linux 还将数据存储在 memory 的未使用区域中,该区域充当缓存。 如果以后再读取这个数据,可以快速从memory中的这个缓存中读取
如果您运行free -m
命令,buff/cache 列就是指示页面缓存的内容。
root@kind-control-plane:/# free -m
total used free shared buff/cache available
Mem: 1989 918 73 5 997 995
Swap: 1023 134
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.