Linux%20vmstat%20命令參數(shù)詳解
vmstat%20n%20m%20:每隔n秒鐘刷新,抓取m次數(shù)后退出。
[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處于運行隊列中的內(nèi)核線程數(shù)目(進程數(shù))。
b: The number of processes in uninterruptible sleep. 置于等待隊列(等待資源、等待輸入/輸出)的內(nèi)核線程數(shù)目。 處于block隊列中不可中斷的進程數(shù)
Memory
swpd: the amount of virtual memory used. 可用的虛擬交換內(nèi)存
free: the amount of idle memory. 空閑內(nèi)存
buff: the amount of memory used as buffers. 已用緩沖數(shù)目
cache: the amount of memory used as cache. 已用緩存數(shù)目
inact: the amount of inactive memory. (-a option) 不活動的內(nèi)存數(shù)
active: the amount of active memory. (-a option) 活動內(nèi)存數(shù)
Swap
si: Amount of memory swapped in from disk (/s). 從磁盤到內(nèi)存的交換頁數(shù)目 (單位/S)
so: Amount of memory swapped to disk (/s). 從交換內(nèi)存到磁盤的交換頁數(shù)目(單位/S)
IO
bi: Blocks received from a block device (blocks/s). 接收到塊設備的塊數(shù)(塊/秒)
bo: Blocks sent to a block device (blocks/s). 發(fā)送到塊設備的塊數(shù)(塊/秒)
System
in: The number of interrupts per second, including the clock. 每秒中斷數(shù),包括時鐘中斷
cs: The number of context switches per second. 每秒上下文切換數(shù)
CPU
These are percentages of total CPU time.
us: Time spent running non-kernel code. (user time, including nice time) 用戶時間 處于用戶模式的時間百分比