2004-11-28
_ CPU変更
これまでサーバのCPUはVIA C3 800MHzで稼動していました.Webサーバが主体なのでそれほどスペックが必要なわけでもありませんが,好奇心からPentiumⅲ-S 1.26GHzにためしにのせかえてみることにしました.体感速度は変わったようには思えなかったのですが,Apacheのベンチマークをとってみると,その性能差は歴然でした.以前,phpを高速化するモジュールmmcacheを導入した際に取得した,ベンチマークのログと比較してみました.テストに利用したアプリケーションは,mmcacheのサイトでテストされたものと同じ,phpMyAdminを利用しました.
まずはC3の時の結果.
This is ApacheBench, Version 1.3d <$Revision: 1.65 $> apache-1.3 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ Benchmarking 192.168.1.150 (be patient) Server Software: Apache/1.3.26 Server Hostname: 192.168.***.*** Server Port: 80 Document Path: /~hogehoge/phpMyAdmin/index.php Document Length: 397 bytes Concurrency Level: 1 Time taken for tests: 11.496 seconds Complete requests: 200 Failed requests: 0 Broken pipe errors: 0 Non-2xx responses: 200 Total transferred: 137200 bytes HTML transferred: 79400 bytes Requests per second: 17.40 [#/sec] (mean) Time per request: 57.48 [ms] (mean) Time per request: 57.48 [ms] (mean, across all concurrent requests) Transfer rate: 11.93 [Kbytes/sec] received Connnection Times (ms) min avg max Connect: 0 0 18 Processing: 18 57 5262 Total: 18 57 5262
次にPentiumⅲの結果.
This is ApacheBench, Version 1.3d <$Revision: 1.65 $> apache-1.3 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) Server Software: Apache Server Hostname: 192.168.***.*** Server Port: 80 Document Path: /~hogeohge/phpMyAdmin/index.php Document Length: 397 bytes Concurrency Level: 1 Time taken for tests: 0.153 seconds Complete requests: 200 Failed requests: 0 Broken pipe errors: 0 Non-2xx responses: 200 Total transferred: 119400 bytes HTML transferred: 79400 bytes Requests per second: 1307.19 [#/sec] (mean) Time per request: 0.77 [ms] (mean) Time per request: 0.77 [ms] (mean, across all concurrent requests) Transfer rate: 780.39 [Kbytes/sec] received Connnection Times (ms) min avg max Connect: 0 0 0 Processing: 0 0 1 Total: 0 0 1
というわけで,"Time taken for tests"の値を比較してみると実に100倍近く処理速度があがっていることがわかります.これだけ変わると発熱もすごいかなぁと思っていたのですが,今のところ50℃前後を推移しているみたいです.もう少し様子を見てからこのまま行くか,元に戻すか考えようと思います.