September 20, 2005
Linux vmstat new options-vmstat的新选项
作者:eygle
出处:http://blog.eygle.com
看到Kamus写的Red Hat Magazine, Issue #11 发布,从其中的一篇文章:Performance tuning tools: ps, top, sar, iostat, and vmstat发现Redhat中,vmstat增加了几个选项。1.vmstat -d选项
此选项的注释是:需要2.5.70及以上内核
The -d reports disk statistics (2.5.70 or above required)
我们看下该命令输出:
[root@danaly ~]# vmstat -d 2|grep -v ram
disk- ------------reads------------ ------------writes----------- -----IO------
total merged sectors ms total merged sectors ms cur sec
hda 0 0 0 0 0 0 0 0 0 0
cciss/c0d0 28568 86702 1207480 454583 292728 652992 7565732 6802794 0 2038
cciss/c0d1 120535 10905 3990350 127147 492529 57565 20825715 8258249 0 5151
fd0 0 0 0 0 0 0 0 0 0 0
md0 0 0 0 0 0 0 0 0 0 0
disk- ------------reads------------ ------------writes----------- -----IO------
total merged sectors ms total merged sectors ms cur sec
hda 0 0 0 0 0 0 0 0 0 0
cciss/c0d0 28568 86702 1207480 454583 292753 653042 7566332 6803437 0 2038
cciss/c0d1 120535 10905 3990350 127147 492532 57565 20825727 8258300 0 5152
fd0 0 0 0 0 0 0 0 0 0 0
md0 0 0 0 0 0 0 0 0 0 0
disk- ------------reads------------ ------------writes----------- -----IO------
total merged sectors ms total merged sectors ms cur sec
hda 0 0 0 0 0 0 0 0 0 0
cciss/c0d0 28568 86702 1207480 454583 292753 653042 7566332 6803437 0 2038
cciss/c0d1 120535 10905 3990350 127147 492535 57565 20825799 8258333 0 5152
fd0 0 0 0 0 0 0 0 0 0 0
md0 0 0 0 0 0 0 0 0 0 0
|
通过此命令可以查看磁盘的统计数据。
2.vmstat -s选项
此选项一次性显示内存使用的状态信息:
The -s switch displays a table of various event counters and memory statistics. This display does not repeat.
[root@danaly ~]# vmstat -s
2075016 total memory
1817776 used memory
1270452 active memory
469040 inactive memory
257240 free memory
140640 buffer memory
1290140 swap cache
4192956 total swap
0 used swap
4192956 free swap
108739 non-nice user cpu ticks
10913 nice user cpu ticks
40472 system cpu ticks
155852897 idle cpu ticks
658151 IO-wait cpu ticks
5063 IRQ cpu ticks
4948 softirq cpu ticks
2601019 pages paged in
14215470 pages paged out
0 pages swapped in
0 pages swapped out
407171759 interrupts
34676601 CPU context switches
1126835178 boot time
162802 forks
|
3.vmstat -D选项
一次性显示磁盘统计数据.
[root@danaly ~]# vmstat -D
21 disks
15 partitions
149249 total reads
97607 merged reads
5202390 read sectors
581748 milli reading
787084 writes
713833 merged writes
28436523 written sectors
15105557 milli writing
0 inprogress IO
7204 milli spent IO
|
当然还有很多,不列举了。
这世界变化快啊,一天不学习就不行了:(
Posted by eygle at 11:25 PM | Comments (0)
NetApp FAS200系列 Fas250到货
作者:eygle
出处:http://blog.eygle.com
今天公司订购的NetApp FAS200系列,Fas250到货。NetApp为FAS200 系列的定位为:
价格合理、具有较高可扩展性的可升级企业级存储系统
NetApp对这个系列的介绍如下:
NetApp FAS200 系列系统是经济合算的企业级存储解决方案。该系列以创新性的硬件设计为基础,将传统的"filer 机头"压缩成可置入单个存储架内的机型,它们还提供了 Data ONTAP 所支持的所有软件功能,与所有 NetApp 系统完全兼容,而且还可以升级到所有 NetApp 系统。
该系列非常适合于远程办事处和分支办事处有存储要求的分布式企业。FAS250 还为那些需要 NAS、IP SAN (iSCSI) 或 统一存储网络的中小型企业提供了价格合理的入门级解决方案。FAS270 是一套中型系统,它提供了入门级的 光纤通道SAN 解决方案,同时大幅度提高了 NAS 和 iSCSI 基础设施的性价比。更多信息请访问 FAS200 系列数据表 (PDF).
setup> df
Filesystem kbytes used avail capacity Mounted on
/vol/vol0/ 50119928 583700 49536228 1% /vol/vol0/
/vol/vol0/.snapshot 12529980 972 12529008 0% /vol/vol0/.snapshot
/vol/vol1/ 150359780 1500 150358280 0% /vol/vol1/
/vol/vol1/.snapshot 37589944 192 37589752 0% /vol/vol1/.snapshot
/vol/vol2/ 50119928 1448 50118480 0% /vol/vol2/
/vol/vol2/.snapshot 12529980 44 12529936 0% /vol/vol2/.snapshot
setup> vol status
Volume State Status Options
vol0 online raid4 root
vol1 online raid4 raidsize=4
vol2 online raid4 raidsize=2
|
看来接下来一段时间,又有东西玩了:)
Posted by eygle at 10:01 PM | Comments (5)
