ORION工具(一)

Oracle提供了一个免费的测试系统存储系统性能的工具:orion

这里简单描述一下orion工具的使用。

 

 

这个工具可以从Oracleotn网站上免费下载。Oracle同时还提供了说明文档。

这个工具的使用很简单,但是如果看Oracle给的文档,可能在测试的时候碰到一堆的问题。

从网站orion工具后,在本地解压,然后设置文件的可执行属性:

root@ser1 # chmod 755 orion_solaris_sparc64

建立一个lun的配置文件,比如:

root@ser1 # more mytest.lun
/dev/rdsk/emcpower5g

对于裸设备而言,确保裸设备中存放了文件。如果是磁盘,则需要对应到文件。

下面就可以执行测试了,一个简单的测试例子:

root@ser1 # ./orion_solaris_sparc64 -run simple -testname mytest
ORION: ORacle IO Numbers -- Version 11.1.0.7.0
mytest_20090812_1535
Test will take approximately 9 minutes
Larger caches may take longer

会得到一些对应的输出文件:

root@ser1 # ls -l mytest_20090812_1535_*
-rw-r--r--   1 root     root         128 Aug 12 15:42 mytest_20090812_1535_iops.csv
-rw-r--r--   1 root     root         128 Aug 12 15:42 mytest_20090812_1535_lat.csv
-rw-r--r--   1 root     root         100 Aug 12 15:42 mytest_20090812_1535_mbps.csv
-rw-r--r--   1 root     root         587 Aug 12 15:42 mytest_20090812_1535_summary.txt
-rw-r--r--   1 root     root        2938 Aug 12 15:42 mytest_20090812_1535_trace.txt

检查汇总文件:

root@ser1 # more mytest_20090812_1535_summary.txt
ORION VERSION 11.1.0.7.0

Commandline:
-run simple -testname mytest

This maps to this test:
Test: mytest
Small IO size: 8 KB
Large IO size: 1024 KB
IO Types: Small Random IOs, Large Random IOs
Simulated Array Type: CONCAT
Write: 0%
Cache Size: Not Entered
Duration for each Data Point: 60 seconds
Small Columns:,      0
Large Columns:,      0,      1,      2
Total Data Points: 8

Name: /dev/rdsk/emcpower5g      Size: 1099497961984
1 FILEs found.

Maximum Large MBPS=66.42 @ Small=0 and Large=2
Maximum Small IOPS=744 @ Small=5 and Large=0
Minimum Small Latency=6.29 @ Small=1 and Large=0

里面包含了IOPSMBPS等信息。

除了最简单的simple方式,还可以针对oltp方式进行测试:

root@ser1 # ./orion_solaris_sparc64 -run oltp -testname mytest -size_small 16 -size_large 16 -num_disks 16
ORION: ORacle IO Numbers -- Version 11.1.0.7.0
mytest_20090812_1543
Test will take approximately 37 minutes
Larger caches may take longer

对应的汇总信息为:

root@ser1 # more mytest_20090812_1543_summary.txt
ORION VERSION 11.1.0.7.0

Commandline:
-run oltp -testname mytest -size_small 16 -size_large 16 -num_disks 16

This maps to this test:
Test: mytest
Small IO size: 16 KB
Large IO size: 16 KB
IO Types: Small Random IOs, Large Random IOs
Simulated Array Type: CONCAT
Write: 0%
Cache Size: Not Entered
Duration for each Data Point: 60 seconds
Small Columns:,     16,     32,     48,     64,     80,     96,    112,    128,    144,    160,    176,    192,    208,    224,    2
40,    256,    272,    288,    304,    320
Large Columns:,      0
Total Data Points: 36

Name: /dev/rdsk/emcpower5g      Size: 1099497961984
1 FILEs found.

Maximum Small IOPS=2981 @ Small=240 and Large=0
Minimum Small Latency=9.71 @ Small=16 and Large=0

下面是一个操作系统文件的例子:

root@ser1 # vi mytest.lun         
"mytest.lun" 1 line, 6 characters
/data/10gr2_db_sol.cpio

执行测试:

root@ser1 # ./orion_solaris_sparc64 -run simple -testname mytest
ORION: ORacle IO Numbers -- Version 11.1.0.7.0
mytest_20090812_1102
Test will take approximately 9 minutes
Larger caches may take longer

得到的汇总信息:

root@ser1 # more mytest_20090812_1102_summary.txt
ORION VERSION 11.1.0.7.0

Commandline:
-run simple -testname mytest

This maps to this test:
Test: mytest
Small IO size: 8 KB
Large IO size: 1024 KB
IO Types: Small Random IOs, Large Random IOs
Simulated Array Type: CONCAT
Write: 0%
Cache Size: Not Entered
Duration for each Data Point: 60 seconds
Small Columns:,      0
Large Columns:,      0,      1,      2
Total Data Points: 8

Name: /data/10gr2_db_sol.cpio   Size: 917512192
1 FILEs found.

Maximum Large MBPS=1221.51 @ Small=0 and Large=2
Maximum Small IOPS=75224 @ Small=5 and Large=0
Minimum Small Latency=0.05 @ Small=1 and Large=0

由于操作系统存在缓存的原因,使得文件系统测试得到的结果很高。

关于orion的一些高级用法和更多的输出文件描述,可以参考Oracle的文档信息。

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/4227/viewspace-612051/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/4227/viewspace-612051/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值