2013年8月27日 星期二

Linux disk I/O performance testing tool

http://www.iorate.org

使用方法:
1. vi devices.ior (檔案放在要測試的disk)
# File system example
Device = "/tmp/iorate.tst"  capacity 8GB;

# UNIX raw device example
#Device = "/dev/rdsk/c901t0d0s2"  capacity 4.1GB;

2. more patterns.ior (查看要測試的R/W參數)
Pattern 10 = "8k Random Read"     io size 8KB   random     read;
Pattern 11 = "8k Seq Write"       io size 8KB   sequential write max sequential
10000;
Pattern 12 = "8k Random Write"    io size 8KB   random     write;

10000;

3. vi tests.ior (測試讀寫8GB,block 8k,R:W=7:3,5分鐘)
Test  1 = " 8k Bus Test"  for 300 sec ignore 30 sec size 8GB 70% pat  10, 30% pat 12;
#Test  2 = " 8k Bus Test"  for 130 sec ignore 30 sec size 1MB 100% pat  9;

#Test  3 = "64k Bus Test"  for 130 sec ignore 30 sec size 1MB 100% pat 21;

4. time dd if=/dev/zero of=/tmp/iorate.tst bs=8k count=1179648 (產生測試檔,必須大於8GB)

5. ./iorate -p patterns.ior (執行I/O測試)

6. copy iorate.perf (iorate test result)

2 則留言:

  1. Nice Tool, 但是storage 顯示出來的performance 沒有吃滿,難到跟我只用一台跑有關係?

    回覆刪除
  2. 你的storage performance可以支撐多台同時大量存取,企業級的果然不一樣!

    回覆刪除