Sunday, January 16, 2011

IOMeter

Official Website: IOMeter

IOMeter是一個專業的I/O效能量測工作,是由Intel開發團隊設計出來的,並於1998年發表在IDF(Intel Developers Forum)上,Iometer和Dynamo執行程式是授權在Intel Open Source License下,而其核心模組iomtr_kstat則是使用GNU Public License.

由於IOMeter主控制程式並沒有Linux版本,所以要使用IOMeter來測試Linux上的I/O效能時,通常會搭配一個Windows的host端來做測試。Windows User可以直接下載官方上打包好的主程式來安裝,而Linux User則可以下載原始碼包含自行編譯。以i386系統為例,將目錄切換到src底下執行下面指令幾秒鐘內就可編譯完成:

make all -f Makefile-Linux.i386

一個Windows IOMeter Server與Linux dynamo端連線翻例如下:

Windows Host for IOMeter (192.168.0.10):



Linux Client (192.168.0.20):
xinyu:/tmp/iometer-2006_07_27.common-src/src$ sudo ./dynamo -i 192.168.0.10 -m 192.168.0.20
Fail to open kstat device file. You can ignore this warning
unless you are running dynamo on XSCALE CPU.

Command line parameter(s):
Looking for Iometer on "192.168.0.10"

Sending login request...
xinyu
192.168.0.20 (port 57655)
Successful PortTCP::Connect
- port name: 192.168.0.10


連上之後你就會在Windows IOMeter主程式裡看到你的Linux Client端,剩下的操作部份請參考線上文件。

bonnie++

Official Website: bonnie++

Linux底下專門設計來量測硬碟的讀寫效能程式。

sudo apt-get install bonnie++

在預設狀況下bonnie++會自動使用兩倍的記憶體大小的buffer來做測試。

一個範例執行畫面如下:
xinyu$ bonnie++ -d /media/TestDrive/
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
xinyu 733 98 82251 17 49522 17 2501 99 161162 26 10783 263
Latency 16574us 337ms 506ms 9673us 6121us 4842us
Version 1.96 ------Sequential Create------ --------Random Create--------
xinyu -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency 224us 1764us 510us 217us 8us 36us
1.96,1.96,
xinyu,1,1295148264,6544M,,733,98,82251,17,49522,17,2501,99,161162,26,10783,263,16,,,,,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,16574us,337ms,506ms,9673us,6121us,4842us,224us,1764us,510us,217us,8us,36us