Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Nov 2001 13:56:43 +0000
From:      John Ekins <jre@globalnet.co.uk>
To:        Scott Gerhardt <scott@gerhardt-it.com>
Cc:        FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: thttpd with php on FreeBSD compared with Linux
Message-ID:  <3BE2A61B.87B5EF15@globalnet.co.uk>
References:  <KPEMLBLEMPMHGLJOCDEGAEBHCMAA.scott@gerhardt-it.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott Gerhardt wrote:
> 
> Apply some of the tuning suggestions (at your discression) in the following
> link and re-run the test.  Let me know the results.

Sorry I didn't mention this before, but I'd already increased MAXUSERS and
NMBCLUSTERS, turned on softupdates. I did however change
vfs.vmiodirenable, kern.ipc.somaxconn and kern.maxfiles as in that
document. I don't think the issue is necessarily related to the network
setup or the file system though. It could be the way that thttpd is
serialising the delivery of php pages. 

I re-did the tests again but there's not much difference, actually it took
marginally longer:

Finished 5000 requests
Server Software:                                                           
Server Hostname:        spooky
Server Port:            80

Document Path:          /
Document Length:        32589 bytes

Concurrency Level:      10
Time taken for tests:   105.219 seconds
Complete requests:      5000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      163200000 bytes
HTML transferred:       162945000 bytes
Requests per second:    47.52 [#/sec] (mean)
Time per request:       210.44 [ms] (mean)
Time per request:       21.04 [ms] (mean, across all concurrent requests)
Transfer rate:          1551.05 [Kbytes/sec] received


I had a response off the list that it could be that phpinfo() is simply
taking longer on FreeBSD that Linux to complete, so I re-did the tests
again with a function that just returns the date:
 <? echo gmdate("d M Y"); ?>. Here's the results which again show that in
these circumstances Linux is outperforming FreeBSD :-( I know the
differences are quite small, but on a busy machine this would obviously
add up.

FreeBSD
-------

Finished 5000 requests
Server Software:
Server Hostname:        spooky
Server Port:            80

Document Path:          /date.php
Document Length:        11 bytes

Concurrency Level:      10
Time taken for tests:   6.267 seconds
Complete requests:      5000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      310000 bytes
HTML transferred:       55000 bytes
Requests per second:    797.83 [#/sec] (mean)
Time per request:       12.53 [ms] (mean)
Time per request:       1.25 [ms] (mean, across all concurrent requests)
Transfer rate:          49.47 [Kbytes/sec] received


Linux
-----

Finished 5000 requests
Server Software:
Server Hostname:        spooky
Server Port:            80

Document Path:          /date.php
Document Length:        11 bytes

Concurrency Level:      10
Time taken for tests:   5.262 seconds
Complete requests:      5000
Failed requests:        0
Broken pipe errors:     0
Total transferred:      310000 bytes
HTML transferred:       55000 bytes
Requests per second:    950.21 [#/sec] (mean)
Time per request:       10.52 [ms] (mean)
Time per request:       1.05 [ms] (mean, across all concurrent requests)
Transfer rate:          58.91 [Kbytes/sec] received


John.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BE2A61B.87B5EF15>