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

下载安装

http://www.oracle.com/technetwork/cn/topics/index-088165-zhs.html
下载的文件为orion_linux_x86-64.gz,使用gzip直接解开就可以运行。

运行简单测试

使用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

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

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

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

<pre><code>换用root用户执行则没有问题。

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

使用如下命令行进行比较详细的测试:
</code></pre>

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

<pre><code>运行完成之后得到的csv文件如下:
</code></pre>

[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等工具绘制成图形。


花菜土豆粉
67 声望27 粉丝

Life with Oracle