日期:2014-05-16  浏览次数:20810 次

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

3,测试结果
[root@dtydb5 tmp]# cat mytest_20120629_1519_summary.txt
ORION VERSION 11.1.0.7.0

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命令也可以简单计算数值,由于采样原因,最大值稍有不同。

IOPS = [dm-13]r/s + [dm-14]r/s + [dm-13]w/s + [dm-14]w/s IOSTAT最大422+424=846
MBPS = ([dm-13]rsec/s + [dm-14]rsec/s)/2/1024 = rMB/s + wMB/s IOSTAT最大94+92=186MBPS
Latency = await 基本11秒左右
[root@dtydb5 mapper]# iostat -d -x 1 30|grep dm-1[3,4]
Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
dm-13             0.00     0.00 25.50  0.00  3386.05     0.00   132.77     0.32   12.57   4.45  11.35
dm-14             0.00     0.00 25.56  0.00  3426.57     0.00   134.04     0.32   12.60   4.44  11.36
dm-13             0.00     0.00 339.00  0.00  5424.00     0.00    16.00     4.01   11.86   2.95 100.10
dm-14             0.00     0.00 328.00  0.00  5248.00     0.00    16.00     3.97   12.00   3.02  99.20
dm-13             0.00     0.00 364.00  0.00  5824.00     0.00    16.00 &nbs