Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Created May 25, 2014 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkuchiki/96b3d78844be9a7b44f4 to your computer and use it in GitHub Desktop.
Save tkuchiki/96b3d78844be9a7b44f4 to your computer and use it in GitHub Desktop.
bonnie++(program to test hard drive performance)
# CentOS
## epel
$ yum install onnie++

# Ubuntu
$ apt-get install 
$ bonnie++ -d /tmp -s 2048 -r 1024 -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
HOSTNAME    2G   806  99 157979  24 35820   8  2808  96 104560  12  1129  42
Latency             20658us     521ms     378ms   16937us     262ms     262ms
Version  1.96       ------Sequential Create------ --------Random Create--------
HOSTNAME       -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 27448  71 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency             29683us     692us     737us     166us     166us     200us
1.96,1.96,HOSTNAME,1,1400999946,2G,,806,99,157979,24,35820,8,2808,96,104560,12,1129,42,16,,,,,27448,71,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,20658us,521ms,378ms,16937us,262ms,262ms,29683us,692us,737us,166us,166us,200us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment