UsebonnietoTestsystemIOspeed

来源:互联网 发布:网络棋牌害死人 编辑:程序博客网 时间:2024/06/06 02:43
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

UsebonnietoTestsystemIOspeed

Friday,2004-09-1711:33Eygle
   
 
原文链接:

http://www.eygle.com/unix/Use.Bonnie.To.Test.IO.speed.htm 

Bonnie是一款极小的测试系统IO性能的工具,源代码公开.作者主页:
http://www.textuality.com/bonnie/
你也可以点击这里下载

编译Bonnie极其简单,但是需要你安装了make及gcc(或cc)

 

#makeOptionsare"makebsd"and"makeSysV"-thedefaultis"bsd".Ifyougetmessagesaboutmissingfunctions,try"makeSysV."makeBonniemake[1]:Enteringdirectory`/export/home/gqgai/bonnie'cc-OBonnie.c-oBonniemake[1]:Leavingdirectory`/export/home/gqgai/bonnie'

其使用手册在:

http://www.textuality.com/bonnie/advice.html

测试IO速度:

1.T3阵列速度测试(raid5)

 

#df-kFilesystemkbytesusedavailcapacityMountedon/dev/dsk/c0t0d0s0101838211771183956913%//dev/dsk/c0t0d0s62055705117760281643260%/usr/proc0000%/procfd0000%/dev/fdmnttab0000%/etc/mnttab/dev/dsk/c0t0d0s1144891177214861880756%/varswap4770120847701121%/var/runswap495892818881647701124%/tmp/dev/dsk/c5t1d0s051634648351544041596389869%/data1/dev/dsk/c5t1d1s12581614421498881405910285%/data3/dev/dsk/c5t1d1s025816144146507231090726058%/data2/dev/dsk/c0t2d0s1154836181074317142544658%/temp/dev/dsk/c0t2d0s071368862824586424093240%/varlink/dev/dsk/c0t2d0s582585975868224230778872%/opt/dev/dsk/c0t2d0s72053605128134271065565%/export/home/dev/dsk/c0t2d0s6205360517815118138469%/usr/local#formatSearchingfordisks...doneAVAILABLEDISKSELECTIONS:0.c0t0d0/pci@1f,4000/scsi@3/sd@0,01.c0t1d0/pci@1f,4000/scsi@3/sd@1,02.c0t2d0/pci@1f,4000/scsi@3/sd@2,03.c3t0d0/pci@4,4000/scsi@4/sd@0,04.c3t1d0/pci@4,4000/scsi@4/sd@1,05.c3t2d0/pci@4,4000/scsi@4/sd@2,06.c3t3d0/pci@4,4000/scsi@4/sd@3,07.c5t1d0/pci@1f,2000/SUNW,qlc@1/fp@0,0/ssd@w50020f23000083a2,08.c5t1d1/pci@1f,2000/SUNW,qlc@1/fp@0,0/ssd@w50020f23000083a2,1Specifydisk(enteritsnumber):^D#./Bonnie-d/data1-s2046-mbilling-centerFile'/data1/Bonnie.8273',size:2145386496Writingwithputc()...doneRewriting...doneWritingintelligently...doneReadingwithgetc()...doneReadingintelligently...adoneSeeker2...Seeker1...Seeker3...start'em...done...done...done...-------SequentialOutput-----------SequentialInput----Random---PerChar---Block----Rewrite---PerChar---Block-----Seeks---hineMBK/sec%CPUK/sec%CPUK/sec%CPUK/sec%CPUK/sec%CPU/sec%CPUbilling-20461025187.53243055.71404839.51262599.54876367.361.58.3

简要介绍一下输出:

这里SequentialOutput指写入速度,Char指按字符方式写入,Block指按块方式写入,Rewrite指顺序改写速度(也就是数据修改)
SequentialInput指读取速度

CPU,指该操作占用的CPU资源.

此处T3Raid5的写入达到10251K/sec

2.本地磁盘速度

#./Bonnie-d/opt/oracle-s1024-mbilling-centerFile'/opt/oracle/Bonnie.8545',size:1073741824Writingwithputc()...doneRewriting...doneWritingintelligently...doneReadingwithgetc()...doneReadingintelligently...doneSeekerSeeker2...1...Seeker3...start'em...done...done...done...-------SequentialOutput-----------SequentialInput----Random---PerChar---Block----Rewrite---PerChar---Block-----Seeks---MachineMBK/sec%CPUK/sec%CPUK/sec%CPUK/sec%CPUK/sec%CPU/sec%CPUbilling-1024958285.01592829.8690020.31173596.54609867.2256.68.81<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
原创粉丝点击