Skip to content

Instantly share code, notes, and snippets.

@muresan
Created October 30, 2017 17:58
Show Gist options
  • Save muresan/8d261a97972af8a79bd6cc1bd31ac871 to your computer and use it in GitHub Desktop.
Save muresan/8d261a97972af8a79bd6cc1bd31ac871 to your computer and use it in GitHub Desktop.
Bonnie++ in host and then in container.
[root@lemon bonnie]# mkdir /root/bonnie && cd /root/bonnie
[root@lemon bonnie]# bonnie++ -c 16 -s 16384 -d . -u 0:0
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.97 ------Sequential Output------ --Sequential Input- --Random-
Concurrency 16 -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
lemon 16G 927 98 64376 9 86470 15 3538 99 336770 29 13508 258
Latency 16134us 17350ms 5772ms 4297us 15851us 10123us
Version 1.97 ------Sequential Create------ --------Random Create--------
lemon -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency 1179us 615us 426us 209us 38us 376us
1.97,1.97,lemon,16,1509368241,16G,,927,98,64376,9,86470,15,3538,99,336770,29,13508,258,16,,,,,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,16134us,17350ms,5772ms,4297us,15851us,10123us,1179us,615us,426us,209us,38us,376us
[root@lemon bonnie]# docker run -ti -v /root/bonnie:/root/bonnie fedora sh
sh-4.4# dnf -y install bonnie++
sh-4.4# cd /root/bonnie/
sh-4.4# bonnie++ -c 16 -s 16384 -d . -u 0:0
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.97 ------Sequential Output------ --Sequential Input- --Random-
Concurrency 16 -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
7964242c9d35 16G 888 99 107390 14 87572 15 2939 99 341126 30 13990 310
Latency 12866us 13323ms 4986ms 6767us 7915us 3996us
Version 1.97 ------Sequential Create------ --------Random Create--------
7964242c9d35 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency 981us 545us 443us 3458us 62us 355us
1.97,1.97,7964242c9d35,16,1509385440,16G,,888,99,107390,14,87572,15,2939,99,341126,30,13990,310,16,,,,,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,12866us,13323ms,4986ms,6767us,7915us,3996us,981us,545us,443us,3458us,62us,355us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment