FreeBSD: stressing 4.2 and Apache with ab (fwd)

L. Cranswick L.M.D.Cranswick at dl.ac.uk
Sat Dec 30 23:41:34 GMT 2000


> You might want to build a more robust kernel before you start tweaking
> individual parameters. My notebook has a kernel configuration file with
> "maxusers = 512", and doesn't suffer from _any_ of the symptoms you have
> observed with apache and ab.
> 
> Richard.

Do you have the parameters you have tweaked to make a
"robust" kernel?  Can you post the relevant parts of
the config files that could also be included on the web?

-----

Doing the various tweaks and recompiling the kernel with
an elevated "maxusers" has majorly improved the ability of 
FreeBSD 4.2 to wade through these ApacheBench tests fax
is excess of what was expected was possible (Spare 
Pentium 300 PC with 128 Meg RAM, Apache 1.3.14 and 
FreeBSD 4.2 and recompiled kernel, Max users = 128, 
kern.ipc.nmbclusters= 30000, kern.maxfilesperproc=2048 ):

Summary of posts, possibly flawed tutorials and various waffle 
still at:
  
 http://www.ccp14.ac.uk/solution/bsdunix/optimise_freebsd_for_apache.html

Some Other Links:
 Apache webserver performance testing tools:
   http://perl.apache.org/guide/download.html#httperf_webserver_Benchmarking

Web server comparison:
   http://www.acme.com/software/thttpd/benchmarks.html

JAWS: Understanding High Performance Web Systems 
   http://www.cs.wustl.edu/~jxh/research/research.html

thttpd - tiny/turbo/throttling HTTP server
 (not used as need the flexibility of apache)
   http://www.acme.com/software/thttpd/

========================================================================

LIGHT TASK - LIGHT FILE:

ccp14vig1# /usr/local/apache/bin/ab -n 100 -c 10 http://ccp14vig1.dl.ac.uk/test/test.pl
This is ApacheBench, Version 1.3c [$Revision: 1.41 $] apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:        Apache/1.3.14
Server Hostname:        ccp14vig1.dl.ac.uk
Server Port:            80

Document Path:          /test/test.pl
Document Length:        281 bytes

Concurrency Level:      10
Time taken for tests:   0.163 seconds
Complete requests:      100
Failed requests:        0
Non-2xx responses:      105
Total transferred:      45990 bytes
HTML transferred:       29505 bytes
Requests per second:    613.50
Transfer rate:          282.15 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        0     4     9
Processing:    12    10    14
Total:         12    14    23

========================================================================

HEAVY TASK - LIGHT FILE:

ccp14vig1# /usr/local/apache/bin/ab -n 10000 -c 1000 http://ccp14vig1.dl.ac.uk/test/test.pl
This is ApacheBench, Version 1.3c [$Revision: 1.41 $] apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:        Apache/1.3.14
Server Hostname:        ccp14vig1.dl.ac.uk
Server Port:            80

Document Path:          /test/test.pl
Document Length:        281 bytes

Concurrency Level:      1000
Time taken for tests:   16.760 seconds
Complete requests:      10000
Failed requests:        0
Non-2xx responses:      10056
Total transferred:      4404528 bytes
HTML transferred:       2825736 bytes
Requests per second:    596.66
Transfer rate:          262.80 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        4    97  9148
Processing:   247   391   481
Total:        251   488  9629

========================================================================

LIGHT TASK - HEAVY FILE:

ccp14vig1# /usr/local/apache/bin/ab -n 100 -c 10 http://ccp14vig1.dl.ac.uk/csiro/
This is ApacheBench, Version 1.3c [$Revision: 1.41 $] apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:        Apache/1.3.14
Server Hostname:        ccp14vig1.dl.ac.uk
Server Port:            80

Document Path:          /csiro/
Document Length:        87712 bytes

Concurrency Level:      10
Time taken for tests:   0.625 seconds
Complete requests:      100
Failed requests:        0
Total transferred:      8796300 bytes
HTML transferred:       8771200 bytes
Requests per second:    160.00
Transfer rate:          14074.08 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        3     9    15
Processing:    57    52    48
Total:         60    61    63

========================================================================

HEAVY TASK - HEAVY FILE:

ccp14vig1# /usr/local/apache/bin/ab -n 10000 -c 1000 http://ccp14vig1.dl.ac.uk/csiro/
This is ApacheBench, Version 1.3c [$Revision: 1.41 $] apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:        Apache/1.3.14
Server Hostname:        ccp14vig1.dl.ac.uk
Server Port:            80

Document Path:          /csiro/
Document Length:        87712 bytes

Concurrency Level:      1000
Time taken for tests:   73.549 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      884710785 bytes
HTML transferred:       882177442 bytes
Requests per second:    135.96
Transfer rate:          12028.86 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        2   179 45182
Processing:   191  1962  2100
Total:        193  2141 47282


-- 
Lachlan M. D. Cranswick

Collaborative Computational Project No 14 (CCP14)
    for Single Crystal and Powder Diffraction
Daresbury Laboratory, Warrington, WA4 4AD U.K
Tel: +44-1925-603703  Fax: +44-1925-603124
E-mail: l.cranswick at dl.ac.uk  Ext: 3703  Room C14
                           http://www.ccp14.ac.uk





More information about the Ukfreebsd mailing list