vmstat n(n代表多少秒统计一次):
==========================
kthr memory page faults cpu
---- ----------- ------------------------ ------------ ------
r b avm fre re pi po fr sr cy in sy cs us sy id wa
2 1 738251 125681 0 0 0 25 25 0 372 3197 1546 7 2 89 2
0 0 738255 125676 0 0 0 0 0 0 271 4005 466 2 0 97 1
0 0 738255 125676 0 0 0 0 0 0 276 3541 470 1 1 98 0
0 0 738255 125676 0 0 0 0 0 0 263 4762 438 2 1 98 0
0 0 738330 125601 0 0 0 0 0 0 268 5935 477 2 4 92 2
2 0 738368 125568 0 2 0 9 19 0 309 5989 1207 6 4 88 1
0 0 739710 124222 0 0 0 89 158 0 1346 16153 2979 45 14 41 0
26 0 739216 124706 0 0 0 9 25 0 361 24382 5478 88 12 0 0
23 0 740015 123916 0 0 0 263 996 0 1471 28024 5766 84 16 0 0
===========================
下面就各项内容做一个简单描述:
1、内核线程
r Number of kernel threads placed in run queue. 运行队列中的内核线程数
b Number of kernel threads placed in wait queue (awaiting resource, awaiting
input/output). 等待队列中的内核进程数
2、内存
Avm Active virtual pages.活动的虚拟页数
Fre Size of the free list.空闲大小(k表示)
3、页信息
re Pager input/output list.
pi Pages paged in from paging space.换入页数
po Pages paged out to paging space.换出页数
fr Pages freed (page replacement).空闲页数
sr Pages scanned by page-replacement algorithm.
cy Clock cycles by page-replacement algorithm.
4、故障(每秒中断数)
In Device interrupts.设备中断
sy System calls.系统调用
cs Kernel thread context switches.内核进程切换
5、Cpu
Us User time.用户时间
sy System time.系统时间
id CPU idle time.CPU空闲时间
wa CPU idle time during which the system had outstanding disk/NFS I/O request(s). CPU响应I/O请求的空闲时间。
如果 r经常大于 CPU个数 ,且id经常少于40,表示cpu的负荷很重。 如果pi,po 长期不等于0,表示内存不足。