ORION工具(一)

yangtingkun發表於2009-08-12

Oracle提供了一個免費的測試系統儲存系統效能的工具:orion

這裡簡單描述一下orion工具的使用。

 

 

這個工具可以從Oracleotn網站上免費下載。Oracle同時還提供了說明文件。

這個工具的使用很簡單,但是如果看Oracle給的文件,可能在測試的時候碰到一堆的問題。

從網站orion工具後,在本地解壓,然後設定檔案的可執行屬性:

root@ser1 # chmod 755 orion_solaris_sparc64

建立一個lun的配置檔案,比如:

root@ser1 # more mytest.lun
/dev/rdsk/emcpower5g

對於裸裝置而言,確保裸裝置中存放了檔案。如果是磁碟,則需要對應到檔案。

下面就可以執行測試了,一個簡單的測試例子:

root@ser1 # ./orion_solaris_sparc64 -run simple -testname mytest
ORION: ORacle IO Numbers -- Version 11.1.0.7.0
mytest_20090812_1535
Test will take approximately 9 minutes
Larger caches may take longer

會得到一些對應的輸出檔案:

root@ser1 # ls -l mytest_20090812_1535_*
-rw-r--r--   1 root     root         128 Aug 12 15:42 mytest_20090812_1535_iops.csv
-rw-r--r--   1 root     root         128 Aug 12 15:42 mytest_20090812_1535_lat.csv
-rw-r--r--   1 root     root         100 Aug 12 15:42 mytest_20090812_1535_mbps.csv
-rw-r--r--   1 root     root         587 Aug 12 15:42 mytest_20090812_1535_summary.txt
-rw-r--r--   1 root     root        2938 Aug 12 15:42 mytest_20090812_1535_trace.txt

檢查彙總檔案:

root@ser1 # more mytest_20090812_1535_summary.txt
ORION VERSION 11.1.0.7.0

Commandline:
-run simple -testname mytest

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
Total Data Points: 8

Name: /dev/rdsk/emcpower5g      Size: 1099497961984
1 FILEs found.

Maximum Large MBPS=66.42 @ Small=0 and Large=2
Maximum Small IOPS=744 @ Small=5 and Large=0
Minimum Small Latency=6.29 @ Small=1 and Large=0

裡面包含了IOPSMBPS等資訊。

除了最簡單的simple方式,還可以針對oltp方式進行測試:

root@ser1 # ./orion_solaris_sparc64 -run oltp -testname mytest -size_small 16 -size_large 16 -num_disks 16
ORION: ORacle IO Numbers -- Version 11.1.0.7.0
mytest_20090812_1543
Test will take approximately 37 minutes
Larger caches may take longer

對應的彙總資訊為:

root@ser1 # more mytest_20090812_1543_summary.txt
ORION VERSION 11.1.0.7.0

Commandline:
-run oltp -testname mytest -size_small 16 -size_large 16 -num_disks 16

This maps to this test:
Test: mytest
Small IO size: 16 KB
Large IO size: 16 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:,     16,     32,     48,     64,     80,     96,    112,    128,    144,    160,    176,    192,    208,    224,    2
40,    256,    272,    288,    304,    320
Large Columns:,      0
Total Data Points: 36

Name: /dev/rdsk/emcpower5g      Size: 1099497961984
1 FILEs found.

Maximum Small IOPS=2981 @ Small=240 and Large=0
Minimum Small Latency=9.71 @ Small=16 and Large=0

下面是一個作業系統檔案的例子:

root@ser1 # vi mytest.lun         
"mytest.lun" 1 line, 6 characters
/data/10gr2_db_sol.cpio

執行測試:

root@ser1 # ./orion_solaris_sparc64 -run simple -testname mytest
ORION: ORacle IO Numbers -- Version 11.1.0.7.0
mytest_20090812_1102
Test will take approximately 9 minutes
Larger caches may take longer

得到的彙總資訊:

root@ser1 # more mytest_20090812_1102_summary.txt
ORION VERSION 11.1.0.7.0

Commandline:
-run simple -testname mytest

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
Total Data Points: 8

Name: /data/10gr2_db_sol.cpio   Size: 917512192
1 FILEs found.

Maximum Large MBPS=1221.51 @ Small=0 and Large=2
Maximum Small IOPS=75224 @ Small=5 and Large=0
Minimum Small Latency=0.05 @ Small=1 and Large=0

由於作業系統存在快取的原因,使得檔案系統測試得到的結果很高。

關於orion的一些高階用法和更多的輸出檔案描述,可以參考Oracle的文件資訊。

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-612051/,如需轉載,請註明出處,否則將追究法律責任。

相關文章