<!--DWLayoutEmptyCell--> |
原文链接:
http://www.eygle.com/unix/Use.Bonnie.To.Test.IO.speed.htm
Bonnie是一款极小的测试系统IO性能的工具,源代码公开.作者主页: http://www.textuality.com/bonnie/ 你也可以点击这里下载
编译Bonnie极其简单,但是需要你安装了make及gcc (或cc)
# make
Options 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 Bonnie
make[1]: Leaving directory `/export/home/gqgai/bonnie'
|
其使用手册在:
http://www.textuality.com/bonnie/advice.html
测试IO速度:
1.T3阵列速度测试(raid5)
# df -k
Filesystem 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% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/dsk/c0t0d0s1 1448911 772148 618807 56% /var
swap 4770120 8 4770112 1% /var/run
swap 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
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <sun9.0g cyl alt hd sec>
/pci@1f,4000/scsi@3/sd@0,0
1. c0t1d0 <sun9.0g cyl alt hd sec>
/pci@1f,4000/scsi@3/sd@1,0
2. c0t2d0 <sun36g cyl alt hd sec>
/pci@1f,4000/scsi@3/sd@2,0
3. c3t0d0 <sun9.0g cyl alt hd sec>
/pci@4,4000/scsi@4/sd@0,0
4. c3t1d0 <sun9.0g cyl alt hd sec>
/pci@4,4000/scsi@4/sd@1,0
5. c3t2d0 <sun9.0g cyl alt hd sec>
/pci@4,4000/scsi@4/sd@2,0
6. c3t3d0 <sun36g cyl alt hd sec>
/pci@4,4000/scsi@4/sd@3,0
7. c5t1d0 <sun-t300-0116 cyl alt hd sec>
/pci@1f,2000/SUNW,qlc@1/fp@0,0/ssd@w50020f23000083a2,0
8. c5t1d1 <sun-t300-0116 cyl alt hd sec>
/pci@1f,2000/SUNW,qlc@1/fp@0,0/ssd@w50020f23000083a2,1
Specify disk (enter its number): ^D
# ./Bonnie -d /data1 -s 2046 -m billing-center
File '/data1/Bonnie.8273', size: 2145386496
Writing with putc()...done
Rewriting...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...adone
<strong>Seeker 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 %CPU
billing- 2046 10251 87.5 32430 55.7 14048 39.5 12625 99.5 48763 67.3 61.5 8.3 </strong>
</sun-t300-0116></sun-t300-0116></sun36g></sun9.0g></sun9.0g></sun9.0g></sun36g></sun9.0g></sun9.0g>
|
简要介绍一下输出:
这里Sequential Output指写入速度,Char指按字符方式写入,Block指按块方式写入,Rewrite指顺序改写速度(也就是数据修改) Sequential Input指读取速度
CPU,指该操作占用的CPU资源.
此处T3 Raid5的写入达到 10251 K/sec
2.本地磁盘速度
# ./Bonnie -d /opt/oracle -s 1024 -m billing-center
File '/opt/oracle/Bonnie.8545', size: 1073741824
Writing with putc()...done
Rewriting...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...done
Seeker 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 %CPU
billing- 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 -v
System Configuration: Sun Microsystems sun4u Sun Fire 480R
System clock frequency: 150 MHz
Memory 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 Interleaved
Brd 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 OK
CPU2 52 OK
DBP0 28 OK
=================================
Front Status Panel:
-------------------
Keyswitch position: NORMAL
System 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:44
IO ASIC revisions:
------------------
Port
Model 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 jump
File '/eygle/Bonnie.460', size: 2145386496
Writing with putc()...done
Rewriting...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...done
Seeker 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 %CPU
jump 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 jump
File '/eygle/Bonnie.473', size: 2145386496
Writing with putc()...done
Rewriting...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...done
Seeker 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 %CPU
jump 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相差无几.
|
相关推荐
例如,`bonnie++ -d /mnt/test -s 1024M` 将在/mnt/test目录下进行1GB大小的测试。 bonnie++的输出报告包含多个部分,每部分都有其独特的意义。"Sequential Read/Write"展示了硬盘连续读写的速度,这是衡量硬盘基础...
【标题】:“BONNIE”字体介绍及应用 【正文】: “BONNIE”是一款极具特色的字体,以其独特的设计风格和可读性在众多字体中脱颖而出。这款字体通常用于各种创意设计、品牌标识、广告宣传以及网页设计等领域,以...
bonnie ARM版本 方便進行IO相關測試
《bonnie++-1.04源码包:探索嵌入式Linux设备的磁盘性能优化》 在IT行业中,特别是在嵌入式系统领域,理解并优化设备的硬件性能至关重要,尤其是在存储系统的层面。Bonnie++,作为一个开源的磁盘性能测试工具,为...
Android版的Bonnie(即android-bonnie)将这一经典工具移植到了Android系统上,使得开发者可以对Android设备的文件系统进行详尽的性能测试,从而找出潜在的瓶颈并进行优化。 该项目的主要功能包括: 1. **文件操作...
bonnie++-1.03 的RPM安装包,bonnie++-1.03a-3.i386.rpm
我们通过bonnie++来测试各种磁盘配置,或者测试各种RAID设置下的磁盘效率,可以有助于我们对于各个产品或者各个方案的磁盘吞吐效率有个大体认识。 tar zxvf bonnie++-1.03a.tgz ./configure make make install
Bonnie++是一个流行的开源工具,专门用于衡量存储系统的读写速度、I/O吞吐量以及其他关键性能指标。这款工具广泛应用于系统管理员和开发者,帮助他们了解硬件的潜力,优化系统配置,或者在不同硬件之间进行比较。 ...
Stroop color-word test: A screening measure of selective attention to differentiate LD from non LD children P.r?rholugI, in ihe Srhoob Volunie 21, January. I084 STROOP COLOR-WORD TEST: A ...
"Bonnie"是一款在Linux和Unix系统中广泛使用的性能测试工具,主要用来评估文件系统的读写速度、I/O性能以及磁盘子系统的整体性能。它通过执行一系列的基准测试,如创建、读取、更新和删除大量文件,来衡量系统的性能...
Linux测试硬盘性能的工具Bonnie的说明文件(含源代码)
故事 故事是为讲故事的人设计的最小的杰基尔主题。 在签出演示。...theme插件安装(适用于GitHub Pages托管站点) 直接分叉项目Ruby Gem方法将此行添加到您的Gemfile : gem "tale" 安装主题的宝石和依赖项: $ bundle ...
邦妮(Bonnie)有一个月的假期,她和她的男朋友想度过这段时间到世界各地旅行。 她也想要 邦妮(Bonnie)有一个月的假期,她和她的男朋友想度过这段时间到世界各地旅行。 她还想拍摄一些艺术照片,将其发布到社交...
Bonnie 360在2012年发布的调查报告,该报告深入探讨了大数据技术在医疗行业中的应用现状、潜力以及所面临的挑战。报告作者Bonnie Feldman博士和Ellen M. Martin,以及Tobi Skotnes共同探讨了大数据在医疗领域中的...
通过特定的参数,如`dd if=/dev/zero of=test bs=1M count=1024 conv=fdatasync`,可以用来测试磁盘的连续读写速度。 4. **fio (Flexible I/O Tester)**:这是一款强大的I/O性能测试工具,支持多种工作负载模型,...
With code examples and step-by-step instructions, author Bonnie Eisenman shows web developers and frontend engineers how to build and style interfaces, use mobile components, and debug and deploy apps...
使Bonnie输出漂亮。 Bonnie在Georgia Tech OMSCS程序中用于作业的自动化测试。 此扩展名使https://bonnie.udacity.com上的输出更漂亮。 它在测试的顶部附加了通过/部分/失败(绿色/黄色/红色)颜色的测试列表,可以...