使用方法:
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)
2022/6/2 update:
www.iorate.org 消失了,改用 fio 測試 IOPS。
yum install -y fio
在要測試的硬碟執行指令
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=fiotest --filename=testfio --bs=4k --iodepth=64 --size=8G --readwrite=randrw --rwmixread=75
Nice Tool, 但是storage 顯示出來的performance 沒有吃滿,難到跟我只用一台跑有關係?
回覆刪除你的storage performance可以支撐多台同時大量存取,企業級的果然不一樣!
回覆刪除