[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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.