Linux Io Benchmark

Bonnie++

Bonnie++は負荷テストのオープンソースツールです。

インストール

tar -zxvf bonnie++-1.03e.tgz
cd bonnie++-1.03e
./configure
make
make install

ベンチマークの実施

デフォールトではメモリ2倍のサイズで実施するため、領域の確保とサーバ利用の確保が必要です。

free -m

実施のとき、サーバの状況を確認したければ、topとiostat -x 1で実行状況を確認することができます。

実行とフルの出力:

# /usr/local/sbin/bonnie++ -d /tmp -u benchmark_os_user

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.03e       ------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
test-machi      16G 67552  91 140600  20 60418   6 55812  82 144291   5 365.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 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
td-tmc-t01,16G,67552,91,140600,20,60418,6,55812,82,144291,5,365.8,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++

最後の一行はCSV形式で bon_csv2htmlのperlで表形式に出力します。

ベンチマークのサンプル1

Dell PE R710 H700 SAS HDD6G RAID1/RAID5のベンチマーク

Machine:
PowerEdge R710 II
Intel(R) Xeon(R) CPU E5620 @ 2.40GH
Model 44 Stepping 2
Mem 7974 MB
PERC H700 Integrated
Red Hat Enterprise Linux AS    
release 4 (Nahant Update 8) Kernel 2.6.9-89.ELsmp (x86_64

RAID1
DELL(tm)    HUS156060VLS600    6.00 Gbps SAS
*2
      ------Sequential Output------ --Sequential Input- --Random-
      -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
 Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
  16G 67552 91 140600  20 60418   6 55812 82 144291   5 365.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 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++

RAID5
SEAGATE        ST3300657SS    6.00 Gbps SAS
*3
      ------Sequential Output------ --Sequential Input- --Random-
      -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
 Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
  16G 65917 94 159732  22 75116   8 51502 79 226969  11 414.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 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++

ベンチマークのサンプル2

Dell R510 H700 SAS HDD6G RAID1/RAID0+1のベンチマーク

Machine:
Dell PowerEdge R510 II
Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
Model 44 Stepping 2
Mem 12000 MB ECC
PERC H700 Integrated
Red Hat Enterprise Linux AS
release 4 (Nahant Update 8) Kernel 2.6.9-89.ELlargesmp (x86_64)

RAID1
DELL(tm)        ST3300657SS-H    3.00 Gbps SAS
*2
       ------Sequential Output------ --Sequential Input- --Random-
       -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
  Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
   24G 65603  82 85555  12 44204   5 45780 85 104384   5 419.0   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 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++

RAID0+1
DELL(tm)        HUS156060VLS600    6.00 Gbps SAS
*2*2
       ------Sequential Output------ --Sequential Input- --Random-
       -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
  Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
   24G 87806 98 358205 51 183132  22 58260 91 518902  27 942.9   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 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++