From owner-freebsd-questions Thu Nov 1 21:56:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from indigo.quadrant.net (indigo.quadrant.net [207.195.92.9]) by hub.freebsd.org (Postfix) with ESMTP id 1B7BA37B401 for ; Thu, 1 Nov 2001 21:56:12 -0800 (PST) Received: from git2000 (h24-71-180-125.ss.shawcable.net [24.71.180.125]) by indigo.quadrant.net (8.9.1/8.9.1) with SMTP id XAA13579; Thu, 1 Nov 2001 23:56:07 -0600 (CST) From: "Scott Gerhardt" To: Cc: "FreeBSD" Subject: RE: thttpd with php on FreeBSD compared with Linux Date: Fri, 2 Nov 2001 00:07:22 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <3BE1CD17.57006E87@globalnet.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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 Apply some of the tuning suggestions (at your discression) in the following link and re-run the test. Let me know the results. http://www.daemonnews.org/200108/benchmark.html > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of John Ekins > Sent: November 1, 2001 4:31 PM > To: freebsd-questions@FreeBSD.ORG > Subject: thttpd with php on FreeBSD compared with Linux > > > Hello, > I believe this is the right list for this sort of question, other I > apologise and am happy to be directed elsewhere. > > I am comparing FreeBSD with Linux for running thttpd with php. The test > server is a dual processor PIII 550MHz with 512MB RAM. The > FreeBSD version > is 4.4 Release (with SMP kernel) and soft updates enabled, the Linux > version Redhat 7.2 (SMP) with ext3. The page I'm testing just > contains phpinfo(); ?> which will be familiar to anyone who runs php. > > I used ab (ab -n 5000 -c 10 http://spooky/) which comes with > Apache to do > the test and here's what I saw: > > FreeBSD: > > Finished 5000 requests > Server Software: > Server Hostname: spooky > Server Port: 80 > > Document Path: / > Document Length: 32589 bytes > > Concurrency Level: 10 > Time taken for tests: 104.921 seconds > Complete requests: 5000 > Failed requests: 0 > Broken pipe errors: 0 > Total transferred: 163200000 bytes > HTML transferred: 162945000 bytes > Requests per second: 47.65 [#/sec] (mean) > Time per request: 209.84 [ms] (mean) > Time per request: 20.98 [ms] (mean, across all > concurrent requests) > Transfer rate: 1555.46 [Kbytes/sec] received > ----- > > Linux: > > Finished 5000 requests > Server Software: > > Server Hostname: spooky > Server Port: 80 > > Document Path: / > Document Length: 31535 bytes > > Concurrency Level: 10 > Time taken for tests: 62.436 seconds > Complete requests: 5000 > Failed requests: 0 > Broken pipe errors: 0 > Total transferred: 157930000 bytes > HTML transferred: 157675000 bytes > Requests per second: 80.08 [#/sec] (mean) > Time per request: 124.87 [ms] (mean) > Time per request: 12.49 [ms] (mean, across all > concurrent requests) > Transfer rate: 2529.47 [Kbytes/sec] received > ----- > > That is quite some difference. The file system shouldn't have > much impact, > and thttpd is single threaded, single process so SMP shouldn't make any > difference as I far as I know. > > Can anyone offer comments as to why there is such a big difference, and > suggestions on how to improve this? > > Thanks, > John. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message