( 허접한 테스트이기도 했고 스팟성 테스트라 감히 오픈하기가 꺼려졌었음... )
1. CPU : sysbench
2. Memory : sysbench
3. Disk I/O : dd
4. Network : iperf
* sysbench의 경우 https://github.com/erikh/docker-bench 참고함.
앞서 dotcloud 개발자인 jeome( @jpetazzo )은 docker의 성능은 network 에 대해서만 small overhead가 있다고 했다. ( 1:1에 수렴하도록 노력할 것이며 될것이라고.. )
* warning : 사정상 cloud 에서 테스트 할 수 밖에없었으나, 이를 보정하기 위해 표본 데이터 수집을 위해 많은 테스트를 진행하여 내린 결과임.
----------------------------------------------------------------------
Building Docker Image
----------------------------------------------------------------------
Uploading context 30720 bytes
Step 1 : FROM ubuntu:precise
---> 8dbd9e392a96
---> Using cache
---> b88917bdf680
---> Using cache
---> 908d90ab81ae
---> Using cache
---> ef30ce9bbc55
---> Using cache
---> 795100c8368f
---> Using cache
---> 6221ef05bbff
---> Using cache
---> b039aca9b8e3
Step 8 : RUN apt-get update
---> Using cache
---> d04247ff3b4c
Step 9 : RUN apt-get install sysbench -y
---> Using cache
---> 28149dd9c8c0
Successfully built 28149dd9c8c0
----------------------------------------------------------------------
Installing sysbench locally if not already installed
----------------------------------------------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
sysbench is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 118 not upgraded.
----------------------------------------------------------------------
Host Machine CPU Battery
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 10000
Test execution summary:
total time: 11.8692s
total number of events: 100000
total time taken by event execution: 94.8773
per-request statistics:
min: 0.92ms
avg: 0.95ms
max: 7.17ms
approx. 95 percentile: 1.06ms
Threads fairness:
events (avg/stddev): 12500.0000/12.16
execution time (avg/stddev): 11.8597/0.00
----------------------------------------------------------------------
Docker CPU Battery
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 10000
Test execution summary:
total time: 11.7876s
total number of events: 100000
total time taken by event execution: 94.2253
per-request statistics:
min: 0.92ms
avg: 0.94ms
max: 4.97ms
approx. 95 percentile: 1.01ms
Threads fairness:
events (avg/stddev): 12500.0000/10.90
execution time (avg/stddev): 11.7782/0.00
----------------------------------------------------------------------
Host Machine Memory Test: seq read
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: read
Memory scope type: global
Threads started!
WARNING: Operation time (0.000000) is less than minimal counted value, counting as 1.000000
(last message repeated 1 times)
WARNING: Percentile statistics will be inaccurate
WARNING: Operation time (0.000000) is less than minimal counted value, counting as 1.000000
WARNING: Percentile statistics will be inaccurate
^@(last message repeated 1 times)
Done.
Operations performed: 104857600 (1815119.81 ops/sec)
102400.00 MB transferred (1772.58 MB/sec)
Test execution summary:
total time: 57.7690s
total number of events: 104857600
total time taken by event execution: 296.5322
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 7.54ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/113573.91
execution time (avg/stddev): 37.0665/0.12
----------------------------------------------------------------------
Docker Memory Test: seq read
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: read
Memory scope type: global
Threads started!
Done.
Operations performed: 104857600 (1815037.62 ops/sec)
102400.00 MB transferred (1772.50 MB/sec)
Test execution summary:
total time: 57.7716s
total number of events: 104857600
total time taken by event execution: 295.2317
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 6.93ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/127741.43
execution time (avg/stddev): 36.9040/0.11
2013/10/05 12:53:30 read unix /var/run/docker.sock: connection reset by peer
----------------------------------------------------------------------
Host Machine Memory Test: rnd read
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: read
Memory scope type: global
Threads started!
^@Done.
Operations performed: 104857600 (1782106.48 ops/sec)
102400.00 MB transferred (1740.34 MB/sec)
Test execution summary:
total time: 58.8391s
total number of events: 104857600
total time taken by event execution: 303.5248
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 2.76ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/105035.11
execution time (avg/stddev): 37.9406/0.10
----------------------------------------------------------------------
Docker Memory Test: rnd read
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: read
Memory scope type: global
Threads started!
Done.
Operations performed: 104857600 (1792051.11 ops/sec)
102400.00 MB transferred (1750.05 MB/sec)
Test execution summary:
total time: 58.5126s
total number of events: 104857600
total time taken by event execution: 300.2978
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 3.35ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/99292.05
execution time (avg/stddev): 37.5372/0.10
2013/10/05 12:55:28 read unix /var/run/docker.sock: connection reset by peer
----------------------------------------------------------------------
Host Machine Memory Test: seq write
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: write
Memory scope type: global
Threads started!
^@Done.
Operations performed: 104857600 (1767249.43 ops/sec)
102400.00 MB transferred (1725.83 MB/sec)
Test execution summary:
total time: 59.3338s
total number of events: 104857600
total time taken by event execution: 316.3350
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 7.28ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/106922.29
execution time (avg/stddev): 39.5419/0.11
----------------------------------------------------------------------
Docker Memory Test: seq write
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: write
Memory scope type: global
Threads started!
Done.
Operations performed: 104857600 (1724654.85 ops/sec)
102400.00 MB transferred (1684.23 MB/sec)
Test execution summary:
total time: 60.7992s
total number of events: 104857600
total time taken by event execution: 323.8393
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 6.91ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/103428.02
execution time (avg/stddev): 40.4799/0.11
2013/10/05 12:57:28 read unix /var/run/docker.sock: connection reset by peer
----------------------------------------------------------------------
Host Machine Memory Test: rnd write
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: write
Memory scope type: global
Threads started!
^@Done.
Operations performed: 104857600 (1733653.88 ops/sec)
102400.00 MB transferred (1693.02 MB/sec)
Test execution summary:
total time: 60.4836s
total number of events: 104857600
total time taken by event execution: 311.0273
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 3.75ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/137935.36
execution time (avg/stddev): 38.8784/0.10
----------------------------------------------------------------------
Docker Memory Test: rnd write
----------------------------------------------------------------------
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: write
Memory scope type: global
Threads started!
Done.
Operations performed: 104857600 (1700270.94 ops/sec)
102400.00 MB transferred (1660.42 MB/sec)
Test execution summary:
total time: 61.6711s
total number of events: 104857600
total time taken by event execution: 314.7917
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 3.60ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/116478.28
execution time (avg/stddev): 39.3490/0.12
끝.