wiki:wade/bonnie++

官方網站

http://www.coker.com.au/bonnie++/

簡介

bonnie++ 是一套用來測試硬碟驅動程式及檔案系統效能的 benchmark,你可以決定那些測試是重要的,並且用它來比較兩個相異系統的差別。作者並不想將這些測試結果導向一個單一數字,因為他認為單一數字對比較這些東西並沒有什麼幫助。

安裝方法

sudo apt-get install bonnie++

指令

 bonnie++         [-d         dir]         [-s         size(Mb)[:chunk-size(b)]]         [-n         num-
 ber-to-stat(*1024)[:max-size[:min-size][:num-directories]]] [-m machine-name]  [-r  ram-size-in-Mb]  [-x
 number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y]

-d 要測試的目錄
-s 測試的檔案大小(MB)
-n 測試的檔案數
-m 機器的名稱,自行命名,只會顯示在螢幕上,不影響結果
-r 指定記憶體大小
-x 測試次數
-u 你所要使用的 user-id,不建議使用 root
-g 你所要使用的 group-id
-q 安靜模式,只會顯示結果,其它額外的訊息會被隱藏
-f 快速模式,會跳過 per-char IO 測試
-b 不要寫入緩衝,fsync (即時寫入)
-p 有多少的 processes 要來服務 semaphores
-y 在每次測試前等待 semaphore

Example

gpfs-server:/home/gpfs/demo# bonnie++ -d /home/gpfs_mount/ -s 16000:1048576  -r 1024 -u root
Using uid:0, gid:0.
Writing with putc()...done                                             
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...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.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
gpfs-s :16000M1024k 58779  95 105491   8 21720   4 50114  83 74658   7  55.4   7
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16   295   0  1424   1   694   1   309   1  1820   3   414   1
gpfs-server,16000M:1024k,58779,95,105491,8,21720,4,50114,83,74658,7,55.4,7,16,295,0,1424,1,694,1,309,1,1820,3,414,1

Size = 16000M Chunk Size = 1024k

Last modified 16 years ago Last modified on Mar 5, 2008, 4:59:27 PM