Try the manual first.
$ man vmstat
...
Memory
swpd: the amount of virtual memory used (kB).
free: the amount of idle memory (kB).
buff: the amount of memory used as buffers (kB).
[红帽子8.0的Man中没有这一行]
cache: the amount of memory used as cache.
...
See what's on my Red Hat Linux server.
$ vmstat
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
0 0 0 0 316488 159612 493916 0 0 0 6 22 23 13 2 14
Answers Googled:
To answer your question, buffers are only used for file metadata (inodes, etc) and data from raw block devices. It's accessed via block device and block number.
Cache has file data blocks, and memory mapped information (i.e. files mapped with mmap() calls). It's accessed primarily via inode number.
So, the main difference would be scope, I guess. One's more concerened with blocks on a device, the other with information in a file.
Either buffer can flush to disk, however. The buffer to the device file and the cache through the file system layer to the block device.
参考资料:
分享到:
相关推荐
linux vmstat命令详解和使用实例.docx
VMSTAT 用法 。
vmstat详解.
Linux在具有高稳定性、可靠性的同时,具有很好的可伸缩性和扩展性,能够针对不同的应用和硬件环境调整,优化出满足当前应用需要的最佳性能。...下文将介绍几个较为重要的性能分析工具vmstat、iostat和sar及其使用。
AIX上的vmstat的报告输出解释和命令基本用法
vmstat核心源代码注释,对理解Linux下的工具原理挺有帮助。
vmstat结果内容的解释,和大家共享一下
sar与vmstat命令简介 vmstat命令报告内核线程,虚拟内存、磁盘、陷阱、和CPU活动情况。 Kthr 线程活动情况 r 运行队列 b 等待队列
vmstat命令是最常见的Linux/Unix监控工具,可以展现给定时间间隔的服务器的状态值,包括服务器的CPU使用率,内存使用,虚拟内存交换情况,IO读写情况。这个命令是我查看Linux/Unix最喜爱的命令,一个是Linux/Unix都...
vmstat命令详解
vmstat 命令详解
vmstat命令的含义为显示虚拟内存状态(“Virtual Memory Statistics”),但是它可以报告关于进程、内存、I/O等系统整体运行状态。 语法格式:vmstat [参数] 常用参数: -a 显示活动内页 -f 显示启动后创建的...
AIX的vmstat命令详解,有图有真相。
vmstat命令详细说明,用于系统监控和性能测试使用
其实现原理是在一定时间内(可通过-d命令设置,默认是1秒),读取并分析系统/proc文件系统下的 meminfo、stat和vmstat信息并做归总整理、统计,以直观明了的信息以供用户或开发人员检测系统状态。
通过该命令可以查看系统负载,指导用户做好系统维护
vmstat命令详解
如果你想动态的了解一下系统资源的使用状况,以及查看当前系统中到底是哪个环节最占用系统资源,就可以使用 vmstat 命令。 vmstat命令,是 Virtual Meomory Statistics(虚拟内存统计)的缩写,可用来监控 CPU 使用...