Bonnie++

From OnnoWiki
Jump to navigation Jump to search

Salah satu software benchmarking yang digunakan terutama untuk mengevaluasi akses ke harddisk adalah Bonnie++. Bonnie++ yang dibuat berbasis pada Bonnie yang asalnya ditulis oleh Tim Bray. Bonnie++ dapat di ambil di situs http://www.coker.com.au/bonnie++/

Pada dasarnya Bonnie++ akan melakukan beberapa test, enam (6) test yang pertama akan berkaitan dengan berbagai tipe aktifitas file system, seperti, create, stat, unlink yang mungkin akan membuat bottleneck dari aplikasi yang sangat intensif menggunakan I/O, seperti, text database, proxy, INN Server maupun mail server dengan /var/spool/mail yang sangat besar. Pada awalnya Bonnie++ akan melakukan beberapa test pada file yang tidak diketahui panjangnya. Default-nya menggunakan file yang besarnya 200MHb. Untuk setiap test, Bonnie melaporkan berapa Kilo-byte per detik yang di olah, dan berapa % CPU yang digunakan. Dengan menggunakan beberapa file yang cukup besar 1Gbyte-an maka kita dapat men-test 32 bit program pada mesin 8Gbyte RAM.

Bonnie++ juga dapat menghasilkan CSV format untuk spreadsheet. Dengan option “-q” mode quiet maka hasilnya akan berupa versi yang bacaan untuk manusia yang akan di kirimkan ke stderr. Menggunakan program bon_csv2html akan menghasilkan file HTML. Dengan menggunakan program bon_csv2txt akan menghasilkan format text 80 kolom, baik untuk mengirimkan hasil di e-mail.

Satu hal yang perlu di ingat baik-baik – jangan pernah menjalankan Bonnie++ maupun berbagai benchmarking software di mesin / server operasional. Performance server akan anjlok dan bukan mustahil Server akan tewas, di samping hasil benchmark yang kemungkinan besar akan jelek.


Instalasi dari deb

Instalasi dapat menggunakan

apt-get install bonnie++


Proses Benchmarking Menggunakan Bonnie++

Pada bagian ini Bonnie++ akan digunakan untuk melakukan benchmarking Xeon Quad dengan Pentium III dalam hal terutama mengakses harddisk SATA vs IDE.

Untuk menjalankan Bonnie++ cukup menuliskan bonnie++ di shell / terminal. Kita akan memperoleh tampilan berikut,

$ bonnie++ 
onno@ubuntu:~$ 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.

Hasil di Mesin Xeon Quad Baru

Hasil yang akan di peroleh untuk Mesin Xeon Quad Rainer yang saya gunakan kira-kira sebagai berikut,

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
ubuntu        7488M   926  97 129029   9 49925   4  3187  95 173923  12 262.8   8
Latency             11423us     423ms     409ms   19849us   59892us    5046ms
Version  1.96       ------Sequential Create------ --------Random Create--------
ubuntu              -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency               185us     611us     679us     155us      41us     228us
1.96,1.96,ubuntu,1,1313986090,7488M,,926,97,129029,9,49925,4,3187,95,173923,12,262.8,8,16,,,,,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,11423us,423ms,409ms,19849us,59892us,5046ms,185us,611us,679us,155us,41us,228us


Hasil di Mesin Xeon Quad Lama

Hasil yang akan di peroleh untuk Mesin Xeon Quad Rainer yang saya gunakan kira-kira sebagai berikut,


Version  1.03       ------Sequential Output------ --Sequential Input- --Random- 
                    -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 
ubuntu.test.co.i 2G 50233  95 59400  16 23749   6 45215  75 57491   9 203.8   0 
                    ------Sequential Create------ --------Random Create-------- 
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- 
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP 
                 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ 
ubuntu.test.co.id,2G,50233,95,59400,16,23749,6,45215,75,57491,9,203.8,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ 


Hasil di Mesin Pentium III

Sementara hasil yang akan di peroleh dari mesin Pentium III adalah sebagai berikut,


Version  1.03       ------Sequential Output------ --Sequential Input- --Random- 
                    -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 
server.yc0mlc. 300M 12054  86 41655  50 14676  16 15764  93 34108  20 191.1   1 
                    ------Sequential Create------ --------Random Create-------- 
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- 
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP 
                 16 19836  94 +++++ +++ 31705  99 21485  99 +++++ +++ 25913  86 
server.yc0mlc.ampr.org,300M,12054,86,41655,50,14676,16,15764,93,34108,20,191.1,1,16,19836,94,+++++,+++,31705,99,21485,99,+++++,+++,25913,86 

Hasil di Mesin Dual Core

Version  1.97       ------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
derryserver      4G   331  99 178236  41 79640  21  1186  97 222061  29 296.0   8
Latency             35745us     403ms     129ms   19524us   45809us   71962us
Version  1.97       ------Sequential Create------ --------Random Create--------
derryserver         -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency              1143us     983us    1260us     494us      30us    2360us
1.97,1.97,derryserver,1,1423230758,4G,,331,99,178236,41,79640,21,1186,97,222061,29,296.0,8,16,,,,,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,35745us,403ms,129ms,19524us,45809us,71962us,1143us,983us,1260us,494us,30us,2360us


Hasil di Mesin Notebook Atom Dual Core

Version  1.97       ------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
asus          7672M   161  99 41166  11 19016   6   570  98 51279   7 158.3   7
Latency             49942us    2098ms    3060ms   53682us     168ms    1663ms
Version  1.97       ------Sequential Create------ --------Random Create--------
asus                -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  8165  24 +++++ +++ 22437  46 16293  47 +++++ +++ 25956  54
Latency               100ms     851us     919us   25876us      64us    3237us
1.97,1.97,asus,1,1423236550,7672M,,161,99,41166,11,19016,6,570,98,51279,7,158.3,7,16,,,,,8165,24,+++++,+++,22437,46,16293,47,+++++,+++,25956,54,49942us,2098ms,3060ms,53682us,168ms,1663ms,100ms,851us,919us,25876us,64us,3237us



Perhatikan bahwa pada mesin Xeon Quad Rainer Server digunakan file 2Gbyte untuk test, sementara pada Pentium III digunakan file 300Mbyte. Hasil yang di peroleh sangat menakjubkan, pada Rainer Server kecepatan transfer rata-rata sekitar 50Mbyte/detik sementara pada Pentium III hanya sekitar 12Mbyte/detik sangat beda sekali. Dalam banyak proses, seperti sequential create dan random create pada Rainer Server, Bonnie++ sama sekali tidak dapat mengukur karena terlalu cepat sekali proses-nya.

Referensi

Pranala Menarik