???????????????????????????????????????????????ò??????????£?????????????
???????????
???????Docker??IO??MariaDB?????????
???????????????????ж??

????Docker version 1.12.1
????????????CentOS7.2
??????棺32G
????CPU??Intel(R) Xeon(R) CPU E5-2603 v3 @ 1.60GHz 1??6??
????1??Docker?д???IO?????????
????sysbench --test=fileio --file-num=16 --file-block-size=16384 --file-total-size=2G --num-threads=4 --file-test-mode=rndrd --max-requests=100000000 --max-time=180 --file-extra-flags=direct prepare
????sysbench --test=fileio --file-num=16 --file-block-size=16384 --file-total-size=2G --num-threads=4 --file-test-mode=rndrd --max-requests=100000000 --max-time=180 --file-extra-flags=direct run
????#??????????д-?????file-test-mode????seqwr ???д ??seqrewr ??????д ??seqrd ?????? ??rndrd ?????? ??rndwr ???д ??rndrw ????????/д
????sysbench --test=fileio --file-num=16 --file-block-size=16384 --file-total-size=2G --num-threads=4 --file-test-mode=rndrd --max-requests=100000000 --max-time=180 --file-extra-flags=direct cleanup
?????????????д?????????????????????????????????????á?

??????????????????Docker????????????????????????????????????
????2??Docker??MariaDB?????????
????????????docker?????????mariaDB????????

?????????????docker?????е??????????????????????????????Χ???
?????????????-???????????????memory??cpu???????????native???????docker???????????????????????????????????????????
sysbench --test=memory --num-threads=16 --memory-block-size=8192 --memory-total-size=8G run
sysbench --test=cpu --cpu-max-prime=20000 run
#native
sysbench 0.5:  multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Random number generator seed is 0 and will be ignored
Prime numbers limit: 20000
Initializing worker threads...
Threads started!
General statistics:
total time:                          56.4280s
total number of events:              10000
total time taken by event execution: 56.4238s
response time:
min:                                  5.46ms
avg:                                  5.64ms
max:                                  7.52ms
approx.  95 percentile:               5.65ms
Threads fairness:
events (avg/stddev):           10000.0000/0.00
execution time (avg/stddev):   56.4238/0.00
#docker
sysbench 0.5:  multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Random number generator seed is 0 and will be ignored
Prime numbers limit: 20000
Initializing worker threads...
Threads started!
General statistics:
total time:                          56.0816s
total number of events:              10000
total time taken by event execution: 56.0777s
response time:
min:                                  5.60ms
avg:                                  5.61ms
max:                                  7.52ms
approx.  95 percentile:               5.61ms
Threads fairness:
events (avg/stddev):           10000.0000/0.00
execution time (avg/stddev):   56.0777/0.00