Oracle压力测试工具ORION

1,功能简介

ORION (Oracle I/O Calibration Tool) 是校准用于 Oracle 数据库的存储系统 I/O 性能的独立工具。校准结果对于了解存储系统的性能有很大帮助,不仅可以找出影响 Oracle 数据库性能的问题,还能测量新数据库安装的大小。由于 ORION 是一个独立工具,用户不需要创建和运行 Oracle 数据库。

为了尽可能地模拟 Oracle 数据库,ORION 使用和 Oracle 相同的 I/O 软件集生成一个合成的 I/O 负载。可以将 ORION 配置为生成很多 I/O 负载,包括一个模拟 OLTP 和数据仓库负载的 I/O 负载。

ORION 支持多种平台。将来还会增加对更多平台的支持。用户指南提供详细的使用文档,包括“入门”部分和疑难解答提示。在 ORION 中调用“-help”选项可以直接获取关于如何使用 ORION 的摘要。

2,简单使用过程
下载地址 http://www.oracle.com/technetwork/cn/topics/index-088165-zhs.html

运行安装
gunzip orion_linux_x86-64

运行测试
生成mytest.lun文件
/dev/mapper/mpath7p1
/dev/mapper/mpath8p1

运行命令
./orion_linux_x86-64 -run simple -testname mytest -num_disks 2

其它方式的命令可以寻求帮助
./orion_linux_x86-64 -help

Commandline:
-run simple -testname mytest -num_disks 2

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,      3,      4
Total Data Points: 15

Name: /dev/mapper/mpath7p1      Size: 536869863424
Name: /dev/mapper/mpath8p1      Size: 536869863424
2 FILEs found.

Maximum Large MBPS=183.53 @ Small=0 and Large=4
Maximum Small IOPS=851 @ Small=10 and Large=0
Minimum Small Latency=11.38 @ Small=3 and Large=0


4,结果比较分析
在压力测试的同时,通过IOSTAT命令也可以简单计算数值,由于采样原因,最大值稍有不同。


rrqm/s: 每秒进行 merge 的读操作数目。即 delta(rmerge)/s
wrqm/s: 每秒进行 merge 的写操作数目。即 delta(wmerge)/s
r/s: 每秒完成的读 I/O 设备次数。即 delta(rio)/s
w/s: 每秒完成的写 I/O 设备次数。即 delta(wio)/s
rsec/s: 每秒读扇区数。即 delta(rsect)/s
wsec/s: 每秒写扇区数。即 delta(wsect)/s
rkB/s: 每秒读K字节数。是 rsect/s 的一半,因为每扇区大小为512字节。
wkB/s: 每秒写K字节数。是 wsect/s 的一半。
avgrq-sz: 平均每次设备I/O操作的数据大小 (扇区)。即 delta(rsect+wsect)/delta(rio+wio)
avgqu-sz: 平均I/O队列长度。即 delta(aveq)/s/1000 (因为aveq的单位为毫秒)。
await: 平均每次设备I/O操作的等待时间 (毫秒)。即 delta(ruse+wuse)/delta(rio+wio)
svctm: 平均每次设备I/O操作的服务时间 (毫秒)。即 delta(use)/delta(rio+wio)
%util: 一秒中有百分之多少的时间用于 I/O 操作,或者说一秒中有多少时间 I/O 队列是非空的。
即 delta(use)/s/1000 (因为use的单位为毫秒

备注:
IO的映射可以通过如下命令获得。mpath8即为dm-14
 multipath -ll

mpath8 (360050768018086462800000000000055) dm-14 IBM,2145
[size=500G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 9:0:0:9  sdak 66:64  [active][ready]
 \_ 8:0:0:9  sdk  8:160  [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 9:0:1:9  sdax 67:16  [active][ready]
 \_ 8:0:1:9  sdx  65:112 [active][ready]
mpath7 (360050768018086462800000000000054) dm-13 IBM,2145
[size=500G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 9:0:1:8  sdaw 67:0   [active][ready]
 \_ 8:0:1:8  sdw  65:96  [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 9:0:0:8  sdaj 66:48  [active][ready]
 \_ 8:0:0:8  sdj  8:144  [active][ready]

相关推荐