oracle i o优化,Oracle I/O性能测试之Orion篇

oracle提供的orion工具可以用来在没有安装oracle软件和实例的情况下,模拟Oracle软件对I/O子系统的操作,进行io性能测试。

下面介绍软件的安装和使用方法

下载安装

运行简单测试

使用dd测试磁盘

这里假设使用sdc和sdc作为测试目标

dd if=/dev/sdc of=/dev/null bs=32k count=1024

dd if=/dev/sdd of=/dev/null bs=32k count=1024

简单测试

使用root用户进行操作:

在orion解压的同路径下创建mytest.lun文件,文件内容为要参与测试的设备或文件,示例如下:

[oracle@bogon ~]$ cat mytest.lun

/dev/sdc

/dev/sdd

./orion_linux_x86-64 -run simple -testname mytest -num_disks 2

ORION: ORacle IO Numbers -- Version 11.1.0.7.0

mytest_20140408_0502

Test will take approximately 16 minutes

Larger caches may take longer

运行结束之后会生成三个csv文件,分别代表不同的的磁盘io指标。

最初使用oracle用户运行orion的时候有碰到如下OER 27041错误

storax_skgfr_openfiles: File identification failed on /dev/sdc

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

换用root用户执行则没有问题。

####运行测试####

使用如下命令行进行比较详细的测试:

./orion_linux_x86-64 -run advanced -testname mytest -num_disks 2 -size_small 8 -size_large 1024 -type rand -matrix detailed

运行完成之后得到的csv文件如下:

[root@bogon oracle]# more mytest_20140408_0659_iops.csv

Large/Small, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

0, 199, 234, 245, 237, 267, 263, 299, 305, 316, 331

1, 66, 102, 124, 137, 149, 160, 163, 175, 180, 188

2, 14, 27, 42, 52, 60, 71, 88, 88, 106, 117

3, 9, 18, 29, 39, 49, 59, 68, 74, 80, 87

4, 7, 17, 26, 32, 42, 51, 55, 62, 69, 75

[root@bogon oracle]# more mytest_20140408_0659_lat.csv

Large/Small, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

0, 5.00, 8.53, 12.23, 16.85, 18.66, 22.76, 23.33, 26.12, 28.44, 30.20

1, 15.05, 19.48, 24.01, 29.06, 33.54, 37.41, 42.64, 45.56, 49.89, 53.02

2, 67.65, 72.57, 70.23, 76.22, 83.23, 83.52, 79.67, 90.28, 84.14, 84.75

3, 110.35, 106.42, 100.84, 100.41, 100.09, 99.77, 102.21, 107.84, 111.86, 114.79

4, 128.41, 112.00, 111.80, 121.59, 118.01, 115.46, 127.31, 126.87, 129.55, 133.04

[root@bogon oracle]# more mytest_20140408_0659_mbps.csv

Large/Small, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

1, 76.88, 59.82, 49.64, 44.63, 45.04, 42.68, 41.52, 41.29, 41.20, 38.12, 36.65

2, 87.32, 82.20, 78.64, 76.50, 73.69, 66.42, 61.44, 63.09, 58.30, 58.90, 58.52

3, 88.61, 88.34, 81.50, 79.54, 76.58, 76.47, 69.43, 67.93, 62.18, 65.94, 61.03

4, 90.39, 86.99, 80.08, 78.38, 74.55, 73.34, 70.07, 66.65, 68.05, 60.62, 66.34

显示了不同small和large IO组合情况下,IO子系统的iops、latency以及mbps信息。得到的CSV文件可以通过excel等工具绘制成图形。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值