三、使用orion测试
1.定义lun文件
[root@node2 ~]# echo "/dev/sdb1" > test.lun
[root@node2 ~]# echo "/dev/sdc1" > test.lun
windows定义方式:\\.\D:
2.第一次测试,建议使用simple,simple测试衡量在不同的负载下的小随机读和大的随
机读
[root@node2 ~]# more test.lun
/dev/sdb1
/dev/sdc1
[root@node2 ~]# ./orion_linux_x86-64 -run simple -testname test -num_disks 2
ORION: Oracle IO Numbers -- Version 11.1.0.7.0
test_20130712_1421
Test will take approximately 16 minutes
Larger caches may take longer
3.运行结果分析
命令运行完成,查看结果
[root@node2 ~]# ls
orion_linux_x86-64 test_20130712_1421_lat.csv test_20130712_1421_summary.txt test.lun
test_20130712_1421_iops.csv test_20130712_1421_mbps.csv test_20130712_1421_trace.txt
首先分析summary.txt
[root@node2 ~]# more test_20130712_1421_summary.txt
ORION VERSION 11.1.0.7.0
Commandline:
-run simple -testname test -num_disks 2
This maps to this test:
Test: test
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, 3, 4
Total Data Points: 15
Name: /dev/sdb1 Size: 8587160064
Name: /dev/sdc1 Size: 8587160064
2 FILEs found.
Maximum Large MBPS=203.73 @ Small=0 and Large=4
Maximum Small IOPS=17866 @ Small=10 and Large=0
Minimum Small Latency=0.39 @ Small=4 and Large=0
这文件包括一下内容
a. 输入参数
b. 针对大的随机和连续的工作量下观察到的最大的吞吐量MBPS
c. 针对小的随机的工作量的IO速率IOPS
d. 针对小的随机的工作量的最小的延迟时间lat
分析mbps

这是个csv文件。包含大的随机或者连续的IO工作量。所有的csv输出文件有个2维表。
行代表大的IO负载层次。列代表小的IO负载层次
simple测试不包含大的和小的IO结合。所以MBPS文件只有一个列,0代表没有小的IO。
从上图可以看出,当IO负载层次为1,得出的mbps(吞吐量)为202.73、为2,mbps为228.62...从列来看,IO负载层次为0,则没有小IO。
这里可说明一点:测试mbps,一般都使用大IO测试。
分析iops

行代表大的IO负载层次。列代表小的IO负载层次
这里可说明一点:测试ios,一般都使用小IO测试。
分析lat

lat.csv这是在小的随机的IO工作量下的延迟时间
test_20130715_1241_trace.txt
包含扩展的,未处理的测试输出
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
