From owner-freebsd-questions Fri Nov 2 5:56:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from leon.amaretti.net (leon.amaretti.net [195.224.53.47]) by hub.freebsd.org (Postfix) with ESMTP id 1295137B405 for ; Fri, 2 Nov 2001 05:56:51 -0800 (PST) Received: from pc-62-30-126-16-cr.blueyonder.co.uk ([62.30.126.16] helo=globalnet.co.uk) by leon.amaretti.net with esmtp (Exim 3.16 #1) id 15zel4-000E57-00; Fri, 02 Nov 2001 13:53:18 +0000 Message-ID: <3BE2A61B.87B5EF15@globalnet.co.uk> Date: Fri, 02 Nov 2001 13:56:43 +0000 From: John Ekins Reply-To: jre@globalnet.co.uk X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.4-RELEASE i386) X-Accept-Language: en-GB, en MIME-Version: 1.0 To: Scott Gerhardt Cc: FreeBSD Subject: Re: thttpd with php on FreeBSD compared with Linux References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: . 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