Ubuntu 12.04 LTS でディスクのベンチマークを行う方法を捜したところ、「bonnie++」というものがあるらしいことがわかったので試してみた。
スポンサードリンク
インストール
$ sudo apt-get install bonnie
使ってみた
$ sudo bonnie++ -d /tmp -s 512 -r 256 -u root Using uid:0, gid:0. 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 owner 512M 759 99 71805 25 28603 12 2775 68 83485 11 573.9 22 Latency 16297us 404ms 340ms 104ms 808ms 1079ms Version 1.96 ------Sequential Create------ --------Random Create-------- owner -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 23959 50 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ Latency 110ms 666us 1923us 2880us 1511us 56049us
コマンド
$ sudo bonnie++ You must use the "-u" switch when running as root. usage: bonnie++ [-d scratch-dir] [-c concurrency] [-s size(MiB)[:chunk-size(b)]] [-n number-to-stat[:max-size[:min-size][:num-directories[:chunk-size]]]] [-m machine-name] [-r ram-size-in-MiB] [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use] [-q] [-f] [-b] [-p processes | -y] [-z seed | -Z random-file] [-D] Version: 1.96
参考文献
- bonnie++を使用してディスク性能ベンチマーク | インフラエンジニアのつぶやき
コメント