altere5's blog

I thought what I'd do was, I'd pretend I was one of those deaf-mutes. ( or shou'd i ? )

さくらのVPSへのWindows7のインストールについて

さくらのVPSにWindows7をインストールしようとした。
最初はCentOS上にVirtualBoxを導入しその中で仮想端末として起動させた。
しかし冷静に考えると「ISOイメージインストール」が利用できるので最初からISOイメージファイルを作成・アップロードし直接インストールすればよかったのだった。

というわけで、さくらのVPSにWindows7を直接入れたときのお話。

対象プランの選定

手持ちの契約の空きが2つあり1G又は2Gが利用できたのでとりあえず両方に導入して動作を確認。
なお、それぞれのスペックは以下の通り。

  • さくらのVPS 1Gプラン
     CPU:仮想2コア / メモリー:1G / HDD:100GB

  • さくらのVPS 2Gプラン
     CPU:仮想3コア / メモリー:2G / HDD:200GB

CPUのコア数は微妙な差、メモリーは結構違う感じ。
Windows7でもあるので1Gは厳しいか。まぁ実際に入れてみる。

評価条件の検討

一応、客観的に評価できるように以下の条件で比較する事とした。

  • アプリケーション等は追加導入しない状態
  • アップデートはすべて実施済み
  • 「Virtio」は有効な状態で比較(余裕があったらON/OFFも比較できれば)
  • 数値の比較はWindows標準のパフォーマンススコアとベンチマークソフトによるスコアで比較

なお、ベンチマークソフトは「CrystalMark 2004R3」にて計測。

環境の準備

まず「Virtio」を有効にした状態にする為にはインストールプロセスでドライバーの導入を行う必要がある。
なぜならば標準状態ではドライバーが対応しておらずインストール先ディスクが見つからない為。

この問題については「さくらのVPSへWindows7をインストールする(Virtio有効)」こちらの記事が非常に役にたった。

基本的な手順は記事の通りなので省く(オイ)。

ちなみにインストールが完了するまでに2時間~3時間程度かかった。 (正しくは、インストールは15分程度、アップデートに2時間程度)

なお、基本的にインストールからその後の作業まですべての操作はリモートコンソール(管理画面より起動)から行った。

ベンチマークの実施

さて、本題のベンチマーク結果は以下の通り。

Windows標準のパフォーマンスの評価

コンポーネント 1Gプラン 2Gプラン
プロセッサ 5.1 5.9
メモリ(RAM) 4.5 5.5
グラフィックス 1.0 1.0
ゲーム用グラフィックス 1.0 1.0
プライマリハードディスク 6.0 5.9

CrystalMark 2004R3

項目 1Gプラン 2Gプラン
Mark 78,883 142,286
ALU 21,597 32,050
FPU 17,244 24,506
MEM 16,222 30,103
HDD 9,247 40,059
GDI 2,254 2,129
D2D 11,341 12,546
OGL 978 893

Apache Bench

項目 1Gプラン 2Gプラン
Time taken for tests 59.384 27.703
Requests per second 3.37 7.22
Time per request 296.921 138.517

※測定はWordPressを導入し初期表示の画面に対して実施
※詳細は末尾に貼付

結論

まぁグラフィック周りは当然壊滅的なわけですが、それ以外は非常によいスコア。
そもそもWindowsの導入自体が想定外の用途だと思いますので当然の結果かと。

仮に利用する場合はやはりメモリーの影響から2G以上が無難かなと。

おまけ資料

1Gプラン Apache Bench Result

This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking XXX.XXX.XXX.XXX (be patient)
Completed 100 requests
Completed 200 requests
Finished 200 requests


Server Software:        Apache/2.4.4
Server Hostname:        XXX.XXX.XXX.XXX
Server Port:            80

Document Path:          /wordpress/
Document Length:        8537 bytes

Concurrency Level:      10
Time taken for tests:   59.384 seconds
Complete requests:      200
Failed requests:        0
Write errors:           0
Total transferred:      1760696 bytes
HTML transferred:       1710044 bytes
Requests per second:    3.37 [#/sec] (mean)
Time per request:       2969.208 [ms] (mean)
Time per request:       296.921 [ms] (mean, across all concurrent requests)
Transfer rate:          28.95 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       26  166 625.2     28    3039
Processing:  1515 2780 550.8   2721    4149
Waiting:     1463 2704 546.5   2641    4084
Total:       1542 2946 966.1   2749    7083

Percentage of the requests served within a certain time (ms)
  50%   2749
  66%   2961
  75%   3189
  80%   3293
  90%   3704
  95%   4176
  98%   6749
  99%   6980
 100%   7083 (longest request)

2Gプラン Apache Bench Result

This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking XXX.XXX.XXX.XXX (be patient)
Completed 100 requests
Completed 200 requests
Finished 200 requests


Server Software:        Apache/2.4.4
Server Hostname:        XXX.XXX.XXX.XXX
Server Port:            80

Document Path:          /wordpress/
Document Length:        8537 bytes

Concurrency Level:      10
Time taken for tests:   27.703 seconds
Complete requests:      200
Failed requests:        0
Write errors:           0
Total transferred:      1760696 bytes
HTML transferred:       1710044 bytes
Requests per second:    7.22 [#/sec] (mean)
Time per request:       1385.171 [ms] (mean)
Time per request:       138.517 [ms] (mean, across all concurrent requests)
Transfer rate:          62.07 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       26  165 623.8     27    3043
Processing:   494 1205 481.0   1088    2960
Waiting:      432 1135 474.0   1025    2899
Total:        521 1370 883.5   1118    6003

Percentage of the requests served within a certain time (ms)
  50%   1118
  66%   1364
  75%   1561
  80%   1657
  90%   1997
  95%   2773
  98%   4596
  99%   5558
 100%   6003 (longest request)