Use bonnie to Test system IO speed

Use bonnie to Test system IO speed

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

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

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

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

 

# makeOptions are "make bsd" and "make SysV" - the default is "bsd".If you get messages about missing functions, try "make SysV."make Bonnie make[1]: Entering directory `/export/home/gqgai/bonnie'cc -O Bonnie.c -o Bonniemake[1]: Leaving directory `/export/home/gqgai/bonnie'

其使用手册在:

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

测试IO速度:

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

 

# df -kFilesystem kbytes used avail capacity Mounted on/dev/dsk/c0t0d0s0 1018382 117711 839569 13% //dev/dsk/c0t0d0s6 2055705 1177602 816432 60% /usr/proc 0 0 0 0% /procfd 0 0 0 0% /dev/fdmnttab 0 0 0 0% /etc/mnttab/dev/dsk/c0t0d0s1 1448911 772148 618807 56% /varswap 4770120 8 4770112 1% /var/runswap 4958928 188816 4770112 4% /tmp/dev/dsk/c5t1d0s0 51634648 35154404 15963898 69% /data1/dev/dsk/c5t1d1s1 25816144 21498881 4059102 85% /data3/dev/dsk/c5t1d1s0 25816144 14650723 10907260 58% /data2/dev/dsk/c0t2d0s1 15483618 1074317 14254465 8% /temp/dev/dsk/c0t2d0s0 7136886 2824586 4240932 40% /varlink/dev/dsk/c0t2d0s5 8258597 5868224 2307788 72% /opt/dev/dsk/c0t2d0s7 2053605 1281342 710655 65% /export/home/dev/dsk/c0t2d0s6 2053605 178151 1813846 9% /usr/local# formatSearching for disks...doneAVAILABLE DISK SELECTIONS: 0. c0t0d0 /pci@1f,4000/scsi@3/sd@0,0 1. c0t1d0 /pci@1f,4000/scsi@3/sd@1,0 2. c0t2d0 /pci@1f,4000/scsi@3/sd@2,0 3. c3t0d0 /pci@4,4000/scsi@4/sd@0,0 4. c3t1d0 /pci@4,4000/scsi@4/sd@1,0 5. c3t2d0 /pci@4,4000/scsi@4/sd@2,0 6. c3t3d0 /pci@4,4000/scsi@4/sd@3,0 7. c5t1d0 /pci@1f,2000/SUNW,qlc@1/fp@0,0/ssd@w50020f23000083a2,0 8. c5t1d1 /pci@1f,2000/SUNW,qlc@1/fp@0,0/ssd@w50020f23000083a2,1Specify disk (enter its number): ^D# ./Bonnie -d /data1 -s 2046 -m billing-center File '/data1/Bonnie.8273', size: 2145386496Writing with putc()...doneRewriting...doneWriting intelligently...doneReading with getc()...doneReading intelligently...adoneSeeker 2...Seeker 1...Seeker 3...start 'em...done...done...done... -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPUbilling- 2046 10251 87.5 32430 55.7 14048 39.5 12625 99.5 48763 67.3 61.5 8.3

简要介绍一下输出:

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

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

此处T3 Raid5的写入达到 10251 K/sec

2.本地磁盘速度

# ./Bonnie -d /opt/oracle -s 1024 -m billing-centerFile '/opt/oracle/Bonnie.8545', size: 1073741824Writing with putc()...doneRewriting...doneWriting intelligently...doneReading with getc()...doneReading intelligently...doneSeeker Seeker 2...1...Seeker 3...start 'em...done...done...done... -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPUbilling- 1024 9582 85.0 15928 29.8 6900 20.3 11735 96.5 46098 67.2 256.6 8.8

后面会逐渐添加一些其他硬件的测试数据.

3. EMC CLARiiON CX500 测试数据

系统环境:

 # /usr/platform/sun4u/sbin/prtdiag -vSystem Configuration: Sun Microsystems sun4u Sun Fire 480RSystem clock frequency: 150 MHzMemory size: 4096 Megabytes========================= CPUs =============================================== Run E$ CPU CPU Brd CPU MHz MB Impl. Mask --- --- --- ---- ------- ---- A 0 1050 8.0 US-III+ 11.0 A 2 1050 8.0 US-III+ 11.0========================= Memory Configuration =============================== Logical Logical Logical MC Bank Bank Bank DIMM Interleave InterleavedBrd ID num size Status Size Factor with--- --- ---- ------ ----------- ------ ---------- ----------- A 0 0 512MB no_status 256MB 8-way 0 A 0 1 512MB no_status 256MB 8-way 0 A 0 2 512MB no_status 256MB 8-way 0 A 0 3 512MB no_status 256MB 8-way 0 A 2 0 512MB no_status 256MB 8-way 0 A 2 1 512MB no_status 256MB 8-way 0 A 2 2 512MB no_status 256MB 8-way 0 A 2 3 512MB no_status 256MB 8-way 0========================= IO Cards ========================= Bus Max IO Port Bus Freq Bus Dev,Type ID Side Slot MHz Freq Func State Name Model---- ---- ---- ---- ---- ---- ---- ----- -------------------------------- ----------------------PCI 8 B 2 33 33 2,0 ok SUNW,XVR-100 SUNW,375-3126 PCI 8 B 4 33 33 4,0 ok fibre-channel-pci10df,f900.10df.+ PCI 8 B 5 33 33 5,0 ok fibre-channel-pci10df,f900.10df.+ PCI 8 A 0 66 66 1,0 ok pci-pci8086,b154.0/pci108e,1000 PCI-BRIDGE PCI 8 A 0 66 66 0,0 ok pci108e,1000-pci108e,1000.1 device on pci-bridge PCI 8 A 0 66 66 0,1 ok SUNW,qfe-pci108e,1001 SUNW,pci-qfe/pci-bridg+PCI 8 A 0 66 66 1,0 ok pci108e,1000-pci108e,1000.1 device on pci-bridge PCI 8 A 0 66 66 1,1 ok SUNW,qfe-pci108e,1001 SUNW,pci-qfe/pci-bridg+PCI 8 A 0 66 66 2,0 ok pci108e,1000-pci108e,1000.1 device on pci-bridge PCI 8 A 0 66 66 2,1 ok SUNW,qfe-pci108e,1001 SUNW,pci-qfe/pci-bridg+PCI 8 A 0 66 66 3,0 ok pci108e,1000-pci108e,1000.1 device on pci-bridge PCI 8 A 0 66 66 3,1 ok SUNW,qfe-pci108e,1001 SUNW,pci-qfe/pci-bridg+========================= Environmental Status =========================System Temperatures (Celsius):-------------------------------Device Temperature Status---------------------------------------CPU0 50 OKCPU2 52 OKDBP0 28 OK=================================Front Status Panel:-------------------Keyswitch position: NORMALSystem LED Status: LOCATOR FAULT POWER ------- ------- ------- [OFF] [OFF] [ ON]=================================Disk Status:------------DISK 0: [NO_FAULT]DISK 1: [NO_FAULT]=================================Fan Status:-----------Bank RPM Status---- ----- ------CPU0 5660 [NO_FAULT]CPU1 3896 [NO_FAULT]CPU2 3797 [NO_FAULT]IO0 3947 [NO_FAULT]IO1 4166 [NO_FAULT]=================================Power Supplies:---------------Supply Status------ ------PS0 [NO_FAULT]PS1 [NO_FAULT]========================================================== HW Revisions =======================================System PROM revisions:----------------------OBP 4.10.8 2003/07/25 08:44IO ASIC revisions:------------------ PortModel ID Status Version-------- ---- ------ -------Schizo 8 ok 7 Schizo 9 ok 7

阵列为CLARiiON CX500,以下分别是4块盘的Raid1+0及Raid5的测试数据:

Raid1+0测试

 # ./Bonnie -d /eygle -s 2046 -m jumpFile '/eygle/Bonnie.460', size: 2145386496Writing with putc()...doneRewriting...doneWriting intelligently...doneReading with getc()...doneReading intelligently...doneSeeker Seeker 2...1...Seeker 3...start 'em...done...done...done... -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPUjump 2046 37438 88.8 111172 63.8 75940 90.0 43495 99.7 322153 99.9 17747.8 177.5

这里EMC CX500的速度达到了,37438K/sec,比T3的性能强了很多

下面是Raid5的测试数据:

 # ./Bonnie -d /eygle -s 2046 -m jumpFile '/eygle/Bonnie.473', size: 2145386496Writing with putc()...doneRewriting...doneWriting intelligently...doneReading with getc()...doneReading intelligently...doneSeeker Seeker 2...1...Seeker 3...start 'em...done...done...done... -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPUjump 2046 40652 95.5 106768 56.1 75673 90.9 43356 99.4 314381 99.8 17347.3 160.5

 

Raid5这里的字符写速度达到了40652K/sec,较Raid1+0稍快,而Block方式写Raid1+0较Raid5稍快.

实际上EMC一直强调其Raid5读写性能较Raid1+0相差无几.

 

时间: 2024-08-03 21:10:18

Use bonnie to Test system IO speed的相关文章

Use bonnie++ to Test system IO speed[修正稿]

link: http://www.eygle.com/unix/Use.Bonnie++.To.Test.IO.speed.htm   由于Bonnie存在一些众所周知的问题,比如>2G的文件支持.Russell Coker (russell@coker.com.au) 开发了一套新的代码,用以支持>2G的文件等.得到Tim Bray (tbray@textuality.com)的许可之后,Russell把他的软件命名为bonnie++,在网上发布,并开始流行起来. 目前的版本已经更新到了1.

vs2012解析不出using,只解析出System.IO.File这种形式,有什么解决方法没?

问题描述 vs2012解析不出using,只解析出System.IO.File这种形式,有什么解决方法没? vs2012解析不出using,只解析出System.IO.File这种形式,有什么解决方法没? 解决方案 检查下程序集有没有引用,程序集有没有冲突. 什么类型解析不了. 忽略IDE的提示,编译本身有没有问题? 解决方案二: 可以在代码段最前面加using System; 解决方案三: 例如这个,我添加引用之后就变成了 而不是using的形式

使用 System.IO 和 Visual C# .NET 读取文本文件

visual 使用 System.IO 和 Visual C# .NET 读取文本文件 在 Visual C# .NET 中读取文本文件 打开和读取文件进行读取访问是输入/输出 (IO) 功能的一个非常重要的部分,即使您不需要写入到相关文件,也是如此. 本示例打开一个文件进行读取,这适用于读取文本文件,但不适用于读取二进制文件. 本示例使用多个可用于打开文件的方法之一. 虽然很多数据结构都可以用于存储从文件中检索到的信息,但是,arraylist 类是使用最简便的结构. 为了打开文件和从文件中读

在vb.net使用System.IO读取文本文件

Imports SystemImports System.IOImports System.Collections Module Module1     Sub Main()        Dim objReader As New StreamReader("c:\test.txt")        Dim sLine As String = ""        Dim arrText As New ArrayList()         Do           

Exploring the System.IO namespace

I/O ClassesTo understand how to carry out the reading and writing of data using the I/O classes, we will create a new ASP.NET web application in Visual C# using the File -> New Project dialog box. We will name the project IOExamples as shown in the f

c# ystem irectory-c# System.IO.Directory 问题

问题描述 c# System.IO.Directory 问题 远程共享文件有三千个文件夹中(每个文件夹中含近万条子文件夹),检索文件夹的子文件夹中含有ABS字符串的信息.使用的是:Directory.GetDirectories(SRC, "*ABS*", SearchOption.TopDirectoryOnly);方法,但奇怪的问题如图所示: 第二条明显不是,却查询了出来.然后更奇怪的是我把这五个文件夹复制到本地,再次同样使用这个方法,没问题,检索出四条.而且将其复制到远程共享文件

WPF工程运行出现Exception Info: System.IO.FileLoadException.

问题描述 加载界面时候出现如下的异常,是通过系统日志查看到的,请问如何解决,是权限不够读取失败还是怎么了?我使用了OxyPlot绘图,加载这个绘图工具是不是要什么环境?在自己的win7系统的电脑运行没问题,但是在有的电脑上运行不起来,有的可以Application:TanksDataBase.exeFrameworkVersion:v4.0.30319Description:Theprocesswasterminatedduetoanunhandledexception.ExceptionInf

疯了,明明在还说System.IO.Ports不存在,网上搜遍了没找到答案,请帮忙看一下,感谢!

问题描述 用MonoDevelop(版本4.0.1)做一个项目,要读写串口,但是第一步就卡住了,打死找不到System.IO.Ports,提示:Thetypeornamespacename`Ports'doesnotexistinthenamespace`System.IO'.Areyoumissinganassemblyreference?但是usingSystem.IO;usingSystem.IO.Compression;这些都可以,为什么就是Ports找不到呢(Pipes也找不到),检查

串口通信-wpf System.IO.IOException

问题描述 wpf System.IO.IOException 最近在尝试用C# wpf做串口通信,在电脑睡眠唤醒后出现如下异常,在电脑没有进入睡眠前运行都正常,代码中Rec函数是单独的接收线程,有没有高手帮忙看一下是什么原因引起的异常 解决方案 睡眠了,串口不工作了.发送方的不到回复,出错了. 不要让机器休眠.