procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 0 7485972 151576 447708 0 0 0 0 5 2 0 0 100 0 0 0 0 7485972 151576 447708 0 0 0 0 1005 7 0 0 100 0 0 0 0 7485972 151584 447700 0 0 0 27 1009 14 0 0 100 0 0 0 0 7485244 151584 447700 0 0 0 0 1011 22 0 0 100 0 0 0 0 7484340 151596 447688 0 0 0 85 1018 99 0 0 100 0 0 0 0 7484356 151596 447688 0 0 0 68 1029 15 0 0 100 0 0 0 0 7484364 151604 447680 0 0 0 47 1025 61 0 0 100 0 0 0 0 7484308 151644 447708 0 0 12 13 1017 44 0 0 99 0 r 在运行队列中等待的进程数 b 在等待IO的进程数 swpd 现时可用的交换内存 free 空闲的内存(机身物理内存) buff 缓存的数量,老外说的意思是:没写到disk里的叫buff, cache 缓存的数量,老外说的意思是:从disk读出来,没使用的叫cache。所以 cache是cpu和和主内存之间的高速缓存。 si swap in Amount of memory swapped in from disk (/s). so swap out Amount of memory swapped to disk (/s). 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, cs The number of context switches per second us 每秒钟的上下文切换 sy 系统中断 id cpu空闲的时间 wa IO等待 vmstat -b >tmp.txt [reports disk statistics] man command |col -b >tmp.command vmstat 3 100 >vmstat_3_100.txt vmstat -d >tmp.txt [查看磁盘status] vmstat -S m 2 100 如果 r经常大于 4 ,且id经常少于40,表示cpu的负荷很重。 如果pi,po 长期不等于0,表示内存不足。 如果disk 经常不等于0, 且在 b中的队列 大于3, 表示 io性能不好。 |