oracle--Orion使用手记之基本使用

Orion 使用手记

今天接到一个任务,进行数据库的 IO 压力测试,是否可以达到每 5 分钟 12G 的写入速度。自己分析了一下,也就是平均 mbps 需要达到: (12 * 1024 * 8) / (5 * 60)  = 327mbps. 但是怎么测呢?使用什么工具?开始 google oracle io stress. 发现 oracle 自己有一个工具 orion 用于模拟在 oracle io ,这个工具可以在不安装 oracle 的情况下进行测试。于是打算在自己的机器上做一个实验。

 

1.       首先检测自己的机器:

[leisore@dgn ~]$ uname -a

Linux 2.6.18-194.26.1.el5 x86_64 x86_64 x86_64 GNU/Linux

## 64 位的

 

2.       下载合适的 orion

网址: http://www.oracle.com/technetwork/topics/index-089595.html

    选择下载 Linux (x86-64)

 

3.       上传至机器然后解压:

    [leisore@dgn ~]$gunzip orion_linux_x86-64.gz

    [leisore@dgn ~]$ls –al

    -rwr-r-x  1 leisore hadoop 46350238 02-22 14:29 orion_linux_x86-64

    ## 只有一个可执行文件,授权

    [leisore@dgn ~]$chmod +x orion_linux_x86-64   

 

4.       设置环境变量

## 为了方便将它加入了 PATH

    [leisore@dgn ~]$export PATH=$PWD/orion_linux_x86-64 

   

## 看到官方手册,它依赖于 libaio ,查看是否有

    [leisore@dgn stress]$ whereis libaio

libaio: /usr/lib/libaio.a /usr/lib/libaio.so /usr/include/libaio.h

 

## 设置 LB_LIBRAYRY_PATH

[leisore@dgn stress]$export LB_LIBRAYRY_PATH=/usr/lib/

 

5.       运行

## 查看挂载点

   [leisore@dgn ]$ df -k

文件系统                1K-         已用      可用 已用 % 挂载点

/dev/sda3            147229664  99243332  40386784  72% /

/dev/sda1               101086     23886     71981  25% /boot

tmpfs                  1983980    532012   1451968  27% /dev/shm

## 编写 lun 文件并保存

Vi case1.lun

/dev/sda1

/dev/sda3

 

## 运行

[leisore@dgn]$ orion_linux_x86-64 -run dss -testname case1

ORION: ORacle IO Numbers -- Version 11.1.0.7.0

case1_20110222_1531

Test will take approximately 69 minutes

Larger caches may take longer

 

orion_spawn: skgpspawn failed: Error category: 27155, Detail: 2

orion_main: orion_spawn failed

Non test error occurred

Orion exiting

 

## 异常了,所有的 csv 文件都是空的,开始 google ,很久了发现有一篇文章提到,必须使用 orion 的全路径,继续:

[leisore@dgn case1]$ /home/leisore/bin/orion_linux_x86-64 -run dss -testname case1

ORION: ORacle IO Numbers -- Version 11.1.0.7.0

case1_20110222_1539

Test will take approximately 69 minutes

Larger caches may take longer

 

storax_skgfr_openfiles: File identification failed on /dev/sda1

OER 27041: please look up error in Oracle documentation

Linux-x86_64 Error: 13: Permission denied

Additional information: 2

rwbase_lio_init_luns: lun_openvols failed

rwbase_rwluns: rwbase_lio_init_luns failed

orion_thread_main: rw_luns failed

Non test error occurred

Orion exiting

 

## 异常了,但是这次就比较明显了,是权限不够,于是在 root 下运行

     [root@dgn case1]# /home/leisore/bin/orion_linux_x86-64 -run dss -testname case1

ORION: ORacle IO Numbers -- Version 11.1.0.7.0

case1_20110222_1540

Test will take approximately 69 minutes

Larger caches may take longer

 

## 产看生成的文件以及图标分析

case1_20110222_1540_summary.txt

ORION VERSION 11.1.0.7.0

 

Commandline:

-run dss -testname case1

 

This maps to this test:

Test: case1

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: 240 seconds

Small Columns:,      0

Large Columns:,      2,      4,       6,      8,     10,     12,     14,     16,     18,     20,     22,     24,     26,     28,     30

Total Data Points: 17

 

Name: /dev/sda1     Size: 106896384

Name: /dev/sda3     Size: 155638748160

2 FILEs found.

 

Maximum Large MBPS=27.80 @ Small=0 and Large=4

 

## 不知大为啥只产生了 MBPS 的统计和 csv 文件


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值