Linux%20vmstat%20命令参数详解
vmstat%20n%20m%20:每隔n秒钟刷新,抓取m次数后退出。
[Oracle@linuxidc%20properties]$%20vmstat%202%203
procs%20-----------memory----------%20---swap--%20-----io----%20--system--%20-----cpu------
r%20b%20%20swpd%20%20free%20%20buff%20cache%20%20si%20%20so%20%20bi%20%20bo%20%20in%20%20cs%20us%20sy%20id%20wa%20st
0%200%20%20%2096%20655968%20278912%202117884%20%200%20%200%20%20%200%20%2010%20%201%20%201%2018%202%2080%200%200
1%200%20%20%2096%20655968%20278912%202117884%20%200%20%200%20%20%200%20%20%200%201011%20694%200%200%20100%200%200
0%200%20%20%2096%20655968%20278912%202117884%20%200%20%200%20%20%200%20%2034%201013%20338%200%200%20100%200%200
FIELD%20DESCRIPTION%20FOR%20VM%20MODE
Procs
r:%20The%20number%20of%20processes%20waiting%20for%20run%20time.%20%20%20%20%20处于运行队列中的内核线程数目(进程数)。
b: The number of processes in uninterruptible sleep. 置于等待队列(等待资源、等待输入/输出)的内核线程数目。 处于block队列中不可中断的进程数
Memory
swpd: the amount of virtual memory used. 可用的虚拟交换内存
free: the amount of idle memory. 空闲内存
buff: the amount of memory used as buffers. 已用缓冲数目
cache: the amount of memory used as cache. 已用缓存数目
inact: the amount of inactive memory. (-a option) 不活动的内存数
active: the amount of active memory. (-a option) 活动内存数
Swap
si: Amount of memory swapped in from disk (/s). 从磁盘到内存的交换页数目 (单位/S)
so: Amount of memory swapped to disk (/s). 从交换内存到磁盘的交换页数目(单位/S)
IO
bi: Blocks received from a block device (blocks/s). 接收到块设备的块数(块/秒)
bo: Blocks sent to a block device (blocks/s). 发送到块设备的块数(块/秒)
System
in: The number of interrupts per second, including the clock. 每秒中断数,包括时钟中断
cs: The number of context switches per second. 每秒上下文切换数
CPU
These are percentages of total CPU time.
us: Time spent running non-kernel code. (user time, including nice time) 用户时间 处于用户模式的时间百分比