From owner-freebsd-questions@FreeBSD.ORG Sun Mar 5 18:43:54 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4AC016A438 for ; Sun, 5 Mar 2006 18:43:54 +0000 (GMT) (envelope-from pergesu@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 073C243D75 for ; Sun, 5 Mar 2006 18:43:45 +0000 (GMT) (envelope-from pergesu@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so1078001nzo for ; Sun, 05 Mar 2006 10:43:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fnWXZufU2oARL1GkZltR+d4xqT3mP2aKYAAWcPV4DYq3GtrUPO0OCLJyxJPlhhJjN99JkaHvBAcsvCwKrOcNUxT+Fs+VbzIIksnTCAcIkuoHdu5+EiuU3srolamr5U/B+trpk/wrjCY6csUAUvS39Ish9R9TUy0BTezgX/1j7FU= Received: by 10.36.46.14 with SMTP id t14mr5988101nzt; Sun, 05 Mar 2006 10:43:44 -0800 (PST) Received: by 10.36.47.18 with HTTP; Sun, 5 Mar 2006 10:43:44 -0800 (PST) Message-ID: <810a540e0603051043j2364a682m7b8fd2d1820398e4@mail.gmail.com> Date: Sun, 5 Mar 2006 11:43:44 -0700 From: "Pat Maddox" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: lighttpd does 26 req/s on a static file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2006 18:43:54 -0000 I'm getting 26 req/s on a static file. Not sure why it's so slow, I could really use some help. Running lighty 1.4.10 on FreeBSD 6.0. Server is a basically unused AMD Barton 3000+ with a gig of RAM, hosted at a data center. -bash-2.05b$ ab -c 9 -n 500 http://72.21.52.134/hello.html Benchmarking 72.21.52.134 (be patient) ... Finished 500 requests Server Software: lighttpd Server Hostname: 72.21.52.134 Server Port: 80 Document Path: /hello.html Document Length: 13 bytes Concurrency Level: 9 Time taken for tests: 19.78523 seconds Complete requests: 500 Failed requests: 0 Write errors: 0 Total transferred: 119500 bytes HTML transferred: 6500 bytes Requests per second: 26.21 [#/sec] (mean) Time per request: 343.413 [ms] (mean) Time per request: 38.157 [ms] (mean, across all concurrent requests) Transfer rate: 6.08 [Kbytes/sec] received Here's the lighty config: server.modules =3D ( "mod_access", "mod_accesslog" ) server.document-root =3D "/usr/local/www/data" server.port =3D 80 server.username =3D "www" server.groupname =3D "clients" server.pid-file =3D "/var/run/lighttpd.pid" server.tag =3D "lighttpd" accesslog.filename =3D "/var/log/lighttpd.access.log" server.errorlog =3D "/var/log/lighttpd.error.log" server.indexfiles =3D ( "index.php", "index.html", "index.htm", "default.htm" ) url.access-deny =3D ( "~", ".inc" ) mimetype.assign =3D ( ".html" =3D> "text/html", ".htm" =3D> "text/html", ) weigon_ on #lighttpd had me run ktrace, and here's the part he found releva= nt 22.577040 CALL accept(0x4,0xbfbfea40,0xbfbfea3c) 22.577583 CALL close(0x8) 75740 lighttpd 22.577632 CALL poll(0x806ec00,0x2,0x3e8) 75740 lighttpd 22.614031 RET poll 1 So it's .5ms to handle a request, but 40ms waiting for the next request. I'm not entirely sure what any of this means. Thanks for any help, Pat