[root@king01 ~]# vmstat --help usage: vmstat [-V] [-n] [delay [count]] -V prints version. -n causes the headers not to be reprinted regularly. -a print inactive/active page stats. -d prints disk statistics -D prints disk table -p prints disk partition statistics -s prints vm table -m prints slabinfo -t add timestamp to output -S unit size delay is the delay between updates in seconds. unit size k:1000 K:1024 m:1000000 M:1048576 (default is K) count is the number of updates. [root@king01 ~]# vmstat -S M 1 10 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 8 0 499 265 142 2982 0 0 56 181 14 5 7 3 83 7 0 10 0 499 261 142 2982 0 0 33 1 3644 5863 94 6 0 0 0 11 0 499 260 142 2982 0 0 33 48 3171 4941 97 3 0 0 0 10 0 499 249 142 2982 0 0 33 113 3338 5090 97 3 0 0 0 12 0 499 237 142 2982 0 0 33 0 3380 5197 97 3 0 0 0 12 0 499 232 142 2982 0 0 17 13 3443 5162 99 1 0 0 0 9 0 499 269 142 2982 0 0 33 364 3490 5601 95 5 0 0 0 11 0 499 269 142 2982 0 0 33 1 3507 5183 98 2 0 0 0 9 0 499 268 142 2982 0 0 33 12 3483 5177 99 1 0 0 0 9 0 499 268 142 2982 0 0 97 49 3461 5122 99 1 0 0 0 r: The number of processes waiting for run time. 等待運行的進程數 b: The number of processes in uninterruptible sleep. 處在非中斷睡眠狀態的進程數(等待IO的進程) swpd: the amount of virtual memory used. 已使用的虛擬內存大小 free: the amount of idle memory. 空閒的物理內存的大小 buff: the amount of memory used as buffers. 作爲buffer(主要用於塊設備緩存)的內存大小,單位:KB cache: the amount of memory used as cache. 作爲cache(主要用於緩存文件)的內存大小,單位:KB si: Amount of memory swapped in from disk (/s). 從磁盤交換到內存的頁數量,單位:KB/秒。 so: Amount of memory swapped to disk (/s). 從內存交換到磁盤的頁數量,單位:KB/秒 bi: Blocks received from a block device (blocks/s). 每秒從塊設備接收到的塊數,單位:塊/秒 也就是讀塊設備。 bo: Blocks sent to a block device (blocks/s). 每秒發送到塊設備的塊數,單位:塊/秒 也就是寫塊設備。 in: The number of interrupts per second, including the clock. 每秒的中斷次數,包括時鐘中斷 cs: The number of context switches per second. 每秒上下文切換次數 us: Time spent running non-kernel code. (user time, including nice time) 用戶進程執行時間百分比(user time) sy: Time spent running kernel code. (system time) 內核系統進程執行時間百分比(system time) id: Time spent idle. 空閒時間百分比 wa: Time spent waiting for IO IO等待時間百分比
Linux 性能監控:vmstat
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.