Snap.Shot.cx

[サーバ] apache-2.0のベンチ。見てみる?
05/15/2002 03:09 (投稿者:たかの)

暇じゃないんです、現実逃避なんです、
時間は無いのでいきなり本題にいっちゃおう。ApacheBenchでガリガリ叩いてみた結果みてみる?
というか、こんなのをP5-133なんていうショボいマシンでやってはいけないか(苦笑

以下羅列します。

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 5
model : 2
model name : Pentium 75 - 200
stepping : 12
cpu MHz : 133.326
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : yes
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8
bogomips : 266.24

$ dmesg
Linux version 2.2.19-6.2.16 (root@porky.devel.redhat.com) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Wed Mar 13 13:03:05 EST 2002
BIOS-provided physical RAM map:
BIOS-88: 0009d000 @ 00000000 (usable)
BIOS-88: 01700000 @ 00100000 (usable)
Detected 133326 kHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 266.24 BogoMIPS
Memory: 22268k/24576k available (1140k kernel code, 420k reserved, 676k data, 72k init, 0k bigmem)

====

$ ab -n 5000 -c 50 http://mebius/
This is ApacheBench, Version 1.3d $Revision: 1.58 $ apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/

Benchmarking mebius (be patient)
Completed 500 requests
Completed 1000 requests
Completed 1500 requests
Completed 2000 requests
Completed 2500 requests
Completed 3000 requests
Completed 3500 requests
Completed 4000 requests
Completed 4500 requests
Finished 5000 requests
Server Software: Apache/2.0.36
Server Hostname: mebius
Server Port: 80

Document Path: /
Document Length: 1456 bytes

Concurrency Level: 50
Time taken for tests: 66.659 seconds
Complete requests: 5000
Failed requests: 0
Broken pipe errors: 0
Total transferred: 9567184 bytes
HTML transferred: 7285360 bytes
Requests per second: 75.01 [#/sec] (mean)
Time per request: 666.59 [ms] (mean)
Time per request: 13.33 [ms] (mean, across all concurrent requests)
Transfer rate: 143.52 [Kbytes/sec] received

Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.8 0 21
Processing: 125 654 542.5 594 10423
Waiting: 123 653 542.5 593 10422
Total: 125 654 542.4 594 10423

Percentage of the requests served within a certain time (ms)
50% 594
66% 612
75% 624
80% 629
90% 680
95% 867
98% 1823
99% 2764
100% 10423 (last request)

$ ab -n 5000 -c 50 http://mebius/
This is ApacheBench, Version 1.3d $Revision: 1.58 $ apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/

Benchmarking mebius (be patient)
Completed 500 requests
Completed 1000 requests
Completed 1500 requests
Completed 2000 requests
Completed 2500 requests
Completed 3000 requests
Completed 3500 requests
Completed 4000 requests
Completed 4500 requests
Finished 5000 requests
Server Software: Apache/1.3.12
Server Hostname: mebius
Server Port: 80

Document Path: /
Document Length: 1973 bytes

Concurrency Level: 50
Time taken for tests: 30.231 seconds
Complete requests: 5000
Failed requests: 0
Broken pipe errors: 0
Total transferred: 11210000 bytes
HTML transferred: 9865000 bytes
Requests per second: 165.39 [#/sec] (mean)
Time per request: 302.31 [ms] (mean)
Time per request: 6.05 [ms] (mean, across all concurrent requests)
Transfer rate: 370.81 [Kbytes/sec] received

Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.2 0 19
Processing: 203 300 46.0 287 834
Waiting: 200 300 46.0 286 833
Total: 203 300 46.1 287 834

Percentage of the requests served within a certain time (ms)
50% 287
66% 295
75% 304
80% 307
90% 346
95% 401
98% 461
99% 482
100% 834 (last request)

----
いじょ。最短応答は確かに早いんだけど、トータルで見ると遅いというのは、DoS対策のdelayでも入っているのかな。それとも、プロセスforkするよりもスレッド上げるほうが重いんだろうか(そんなはずはない)。

あっ、ちょっとだけ補足。
ターゲットマシンはglibc-2.1.3です。
abはこのショボいマシンからではなくって、Athlon 1GHzなマシンから叩きにいっています。って、いじめかよ!
2台は100Base-TX/FDのスイッチ経由で繋がってます。

メールでコメント


(Powered by Zope)
リンクはご自由にどうぞ。各記事には記事番号がついていますので、URLは変わりません。
© 2000-2013 Yukimasa TAKANO, all RIGHTs reserved.