KVMのゲストOS5台でUnixBenchやってみた

環境はまったく同じでOSだけ違う状態でどんなけ違いがでるのかと。

とりあえずスペック。

土台
WindowsとVMware
ホスト
Scientific 仮想2コアで仮想メモリ2G
ゲスト
CentOS6が2台、Ubuntu、Debian、FreeBSDの5個
すべて仮想1コアで512MBのメモリになってます。

まずはCentOSですが、2台はだいたい同じなので1台だけの結果を。

CentOS

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   30347264.1   2600.5
Double-Precision Whetstone                       55.0       3077.3    559.5
Execl Throughput                                 43.0       2599.7    604.6
File Copy 1024 bufsize 2000 maxblocks          3960.0     568898.2   1436.6
File Copy 256 bufsize 500 maxblocks            1655.0     167479.1   1012.0
File Copy 4096 bufsize 8000 maxblocks          5800.0    1504475.7   2593.9
Pipe Throughput                               12440.0    1307860.4   1051.3
Pipe-based Context Switching                   4000.0     269530.5    673.8
Process Creation                                126.0      10152.3    805.7
Shell Scripts (1 concurrent)                     42.4       3770.2    889.2
Shell Scripts (8 concurrent)                      6.0        500.0    833.3
System Call Overhead                          15000.0    2173797.3   1449.2
                                                                   ========
System Benchmarks Index Score                                        1060.9
Ubuntu

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   17988220.2   1541.4
Double-Precision Whetstone                       55.0       3159.0    574.4
Execl Throughput                                 43.0       2920.5    679.2
File Copy 1024 bufsize 2000 maxblocks          3960.0     701592.4   1771.7
File Copy 256 bufsize 500 maxblocks            1655.0     192993.8   1166.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    1988496.9   3428.4
Pipe Throughput                               12440.0    1065991.2    856.9
Pipe-based Context Switching                   4000.0     212267.2    530.7
Process Creation                                126.0      13232.4   1050.2
Shell Scripts (1 concurrent)                     42.4       6342.1   1495.8
Shell Scripts (8 concurrent)                      6.0        772.5   1287.6
System Call Overhead                          15000.0    1055229.4    703.5
                                                                   ========
System Benchmarks Index Score                                        1088.1
Debian

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   31217899.7   2675.1
Double-Precision Whetstone                       55.0       3463.5    629.7
Execl Throughput                                 43.0       3425.9    796.7
File Copy 1024 bufsize 2000 maxblocks          3960.0     944296.8   2384.6
File Copy 256 bufsize 500 maxblocks            1655.0     301592.9   1822.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    2358039.5   4065.6
Pipe Throughput                               12440.0    2472971.1   1987.9
Pipe-based Context Switching                   4000.0     420606.0   1051.5
Process Creation                                126.0      16915.3   1342.5
Shell Scripts (1 concurrent)                     42.4       6699.9   1580.2
Shell Scripts (8 concurrent)                      6.0        867.9   1446.6
System Call Overhead                          15000.0    4427892.6   2951.9
                                                                   ========
System Benchmarks Index Score                                        1663.5
FreeBSD

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   14646980.6   1255.1
Double-Precision Whetstone                       55.0       2512.3    456.8
Execl Throughput                                 43.0       3385.7    787.4
File Copy 1024 bufsize 2000 maxblocks          3960.0      61677.3    155.8
File Copy 256 bufsize 500 maxblocks            1655.0      52468.7    317.0
File Copy 4096 bufsize 8000 maxblocks          5800.0      59239.7    102.1
Pipe Throughput                               12440.0    1193677.4    959.5
Pipe-based Context Switching                   4000.0     298335.6    745.8
Process Creation                                126.0       6079.3    482.5
Shell Scripts (1 concurrent)                     42.4       1475.5    348.0
Shell Scripts (8 concurrent)                      6.0        226.5    377.6
System Call Overhead                          15000.0     690754.1    460.5
                                                                   ========
System Benchmarks Index Score                                         436.3

こんな結果で、結構な差がついてしまった。
Dhrystoneの結果を並べてみる。

CentOS     2600.5
Ubuntu     1541.4
Debian     2675.1
FreeBSD    1255.1

こんな感じです。SystemCallOverheadを並べてみる。

CentOS    1449.2
Ubuntu    703.5Debian    2951.9
FreeBSD    460.5

ファイルシステムの違いなんだろうか気もするけど。

CentOS、Ubuntu EXT4
Debian        EXT3
FreeBSD       UFS

この違いなんだろうか、思ってたよりも差が出てしまってどうしようという結果にw
完全仮想化環境だけど、Windowsの処理も関係するのか分からんので、全部同時にやってみた。

CentoS

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   12659002.9   1084.7
Double-Precision Whetstone                       55.0       1556.8    283.1
Execl Throughput                                 43.0       1087.9    253.0
File Copy 1024 bufsize 2000 maxblocks          3960.0     295347.3    745.8
File Copy 256 bufsize 500 maxblocks            1655.0      77580.4    468.8
File Copy 4096 bufsize 8000 maxblocks          5800.0     717856.2   1237.7
Pipe Throughput                               12440.0     700134.6    562.8
Pipe-based Context Switching                   4000.0     144653.9    361.6
Process Creation                                126.0       3994.8    317.0
Shell Scripts (1 concurrent)                     42.4       1393.7    328.7
Shell Scripts (8 concurrent)                      6.0        208.7    347.8
System Call Overhead                          15000.0    1066391.7    710.9
                                                                   ========
System Benchmarks Index Score                                         486.6
Ubuntu

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    7827163.9    670.7
Double-Precision Whetstone                       55.0       1437.7    261.4
Execl Throughput                                 43.0       1115.1    259.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     386896.6    977.0
File Copy 256 bufsize 500 maxblocks            1655.0     109621.0    662.4
File Copy 4096 bufsize 8000 maxblocks          5800.0     981331.0   1692.0
Pipe Throughput                               12440.0     587567.8    472.3
Pipe-based Context Switching                   4000.0     117532.5    293.8
Process Creation                                126.0       3793.9    301.1
Shell Scripts (1 concurrent)                     42.4       2228.2    525.5
Shell Scripts (8 concurrent)                      6.0        323.3    538.8
System Call Overhead                          15000.0     601810.6    401.2
                                                                   ========
System Benchmarks Index Score                                         498.6
Debian

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   16456776.0   1410.2
Double-Precision Whetstone                       55.0       1638.0    297.8
Execl Throughput                                 43.0       1338.1    311.2
File Copy 1024 bufsize 2000 maxblocks          3960.0     430225.1   1086.4
File Copy 256 bufsize 500 maxblocks            1655.0     173773.2   1050.0
File Copy 4096 bufsize 8000 maxblocks          5800.0    1000346.4   1724.7
Pipe Throughput                               12440.0    1021090.3    820.8
Pipe-based Context Switching                   4000.0     192593.4    481.5
Process Creation                                126.0       7266.4    576.7
Shell Scripts (1 concurrent)                     42.4       2616.8    617.2
Shell Scripts (8 concurrent)                      6.0        291.1    485.1
System Call Overhead                          15000.0    2105595.7   1403.7
                                                                   ========
System Benchmarks Index Score                                         734.4
FreeBSD

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    6439785.8    551.8
Double-Precision Whetstone                       55.0       1154.2    209.9
Execl Throughput                                 43.0       2052.6    477.3
File Copy 1024 bufsize 2000 maxblocks          3960.0      23130.6     58.4
File Copy 256 bufsize 500 maxblocks            1655.0      18693.9    113.0
File Copy 4096 bufsize 8000 maxblocks          5800.0      29284.6     50.5
Pipe Throughput                               12440.0     587998.0    472.7
Pipe-based Context Switching                   4000.0     103876.0    259.7
Process Creation                                126.0       1956.9    155.3
Shell Scripts (1 concurrent)                     42.4       1434.5    338.3
Shell Scripts (8 concurrent)                      6.0        211.5    352.5
System Call Overhead                          15000.0     682205.2    454.8
                                                                   ========
System Benchmarks Index Score                                         227.3

順位は変わらず、数値の関係もだいたい同じだった。

となるとCentOSとUbuntuをEXT3で作るとどうなるのかってことだけど、それはまた次回やろう。
ちなみにホストOSの負荷はロードアベレージのMAXで4~5の間くらいでした。

 

Related Posts


投稿者: Takeken

インターネット利用者のITリテラシーを向上したいという設定の2次元キャラです。 サーバー弄りからプログラミングまで手を付けた自称エッセイストなたけけんの物語。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です