fre
有关页面交换空间的信息有:(page)
re
po
pi
fr
sr
cy
有关故障的信息有:(faults)
in
sy
cs
有关CPU的信息有:(cpu)
us
sy
id
wa
vmstat运用举例:
vmstat –f
vmstat –s
vmstat –i
vmstat hdisk0 hdisk1: 显示hdisk0 、hdisk1的使用情况。
vmstat 1 10
系统信息查看:
radiusb#/>vmstat hdisk1
System configuration: lcpu=8 mem=7936MB drives=5
kthr memory page faults cpu disk xfer
----- ----------- ------------------------ ------------ ----------- -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa 1 2 3 4
2 1 1032312 208828 0 0 0 0 2 0 67 1772 857 2 0 98 0 8 - - -
radiusb#/>vmstat -f
1496959 forks
radiusb#/>vmstat -s
848583199 total address trans. faults
28160183 page ins
356205583 page outs
1 paging space page ins
1 paging space page outs
0 total reclaims
250065416 zero filled pages faults
7900426 executable filled pages faults
108137072 pages examined by clock
68 revolutions of the clock hand
45071465 pages freed by the clock
5043650 backtracks
44 free frame waits
0 extend XPT waits
644852 pending I/O waits
383440465 start I/Os
166095595 iodones
40918816870 cpu context switches
3237770347 device interrupts
13180727851 software interrupts
22115342573 decrementer interrupts
2799148 mpc-sent interrupts
2799144 mpc-receive interrupts
8193445 phantom interrupts
0 traps
84585191689 syscalls
radiusb#/>vmstat -i
priority level type count module(handler)
0 2 hardware 2565347 i_mpc_int_handler(1492420)
0 589825 hardware 0 /usr/lib/drivers/planar_pal_chrp(3e35e40)
0 589825 hardware 0 /usr/lib/drivers/pci/sisraid_dd(3ee6bb0)
1 655360 hardware 1 /usr/lib/drivers/vconsdd(405e8f8)
1 655361 hardware 1 /usr/lib/drivers/vconsdd(405e8f8)
3 277 hardware 1349717017 /usr/lib/drivers/pci/goentdd(3ea1980)
3 305 hardware 928110782 /usr/lib/drivers/pci/goentdd(3ea1980)
3 325 hardware 955567977 /usr/lib/drivers/pci/sisraid_dd(3ee6be0)
4 276 hardware 1457482 /usr/lib/drivers/pci/hcd33103500(40a9c88)
4 276 hardware 1459031 /usr/lib/drivers/pci/hcd33103500(40a9c88)
radiusb#/>vmstat hdisk0 hdisk1 hdisk2 hdisk3
System configuration: lcpu=8 mem=7936MB drives=5
kthr memory page faults cpu disk xfer
----- ----------- ------------------------ ------------ ----------- -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa 1 2 3 4
2 1 1032298 208839 0 0 0 0 2 0 67 1772 857 2 0 98 0 2 8 4 4
vmstat是Virtual Meomory Statistics(虚拟内存统计)的缩写,可对操作系统的虚拟内存、进程、CPU活动进行监视。它是对系统的整体情况进行统计,不足之处是无法对某个进程进行深入分析。
二:iostat
用iostat监视I/O子系统情况
iostat是I/O statistics(输入/输出统计)的缩写,iostat工具将对系统的磁盘操作活动进行监视。它的特点是汇报磁盘活动统计情况,同时也会汇报出CPU使用情况。同vmstat一样,iostat也有一个弱点,就是它不能对某个进程进行深入分析,仅对系统的整体情况进行分析。