http://www.slashroot.in/linux-file-system-read-write-performance-test
| Seq Read | Seq Write | Rand Read | Rand Write | Advanced |
iozone | V | V | V | V | V |
fio | V | V | V | V | V |
dd | V | V | | | |
hdparm | V | | | | |
Bonnie | V | V | V | | |
ioping | | V | | V | |
Bonnie
直接執行 Bonnie 就可以測試, 但不知道為什麼測試大小空間一定要 RAM * 2 的以上. 所以反而沒法很快的拿到測試結果
$ bonnie++ Writing a byte at a time...done Writing intelligently...done Rewriting...done Reading a byte at a time...done Reading intelligently...done start 'em...done...done...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.96 ------Sequential Output------ --Sequential Input- --Random- Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP pjack-VirtualBox 8G 575 96 36095 9 24925 7 3157 78 63170 13 101.3 9 Latency 31959us 2665ms 1823ms 127ms 583ms 1354ms Version 1.96 ------Sequential Create------ --------Random Create-------- pjack-VirtualBox -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 13139 28 +++++ +++ 23059 36 21424 37 +++++ +++ 22344 36 Latency 63809us 1600us 528us 656us 660us 1080us 1.96,1.96,pjack-VirtualBox,1,1383799934,8G,,575,96,36095,9,24925,7,3157,78,63170,13,101.3,9,16,,,,,13139,28,+++++,+++,23059,36,21424,37,+++++,+++,22344,36,31959us,2665ms,18 23ms,127ms,583ms,1354ms,63809us,1600us,528us,656us,660us,1080us
iozone
Iozone 有預設 13 種 pattern , 所以算是測試很齊全又不會太麻煩的工具官網:
http://www.iozone.org/
使用方式介紹:
http://www.thegeekstuff.com/2011/05/iozone-examples/
fio
fio 則是擁有全功能, 可以自己設計 pattern, 又很多參數可以調整, 是很專業的工具, 但要寫 Script, 如果想要快速的拿到一些 performance report, 可能不是很好用, 之前也有介紹過http://pjack1981.blogspot.tw/2012/05/fio-disk-benchmark.html
ioping
https://code.google.com/p/ioping/很簡易的工具, 支援 seq/random write, 也可以指定 block size, 可以很快速的可以得到大概的狀況.