ORION工具(一)[转帖]_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3448 | 回复: 0   主题: ORION工具(一)[转帖]        下一篇 
wayne
注册用户
等级:中校
经验:1690
发帖:221
精华:0
注册:2011-7-21
状态:离线
发送短消息息给wayne 加好友    发送短消息息给wayne 发消息
发表于: IP:您无权察看 2011-8-25 18:31:47 | [全部帖] [楼主帖] 楼主

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

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

这个工具可以从Oracle的otn网站上免费下载。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


里面包含了IOPS和MBPS等信息。

除了最简单的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的文档信息。




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论