From owner-freebsd-apache@FreeBSD.ORG Mon Feb 13 05:31:47 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D71C116A420 for ; Mon, 13 Feb 2006 05:31:47 +0000 (GMT) (envelope-from appleshampooid@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70E3243D45 for ; Mon, 13 Feb 2006 05:31:47 +0000 (GMT) (envelope-from appleshampooid@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so949372wri for ; Sun, 12 Feb 2006 21:31:46 -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=dYsCbSerekqnONQmNeaMVpeBoS4SAU2jmjbqmsFmvs4GQWn4gy2oS5ubip7V/Y2xLI9AEA15pfqiAxURnnRcTGUPBLkw3CiwXCgw7T7iDRvtXnq0R+CSEQkUbWeitK8aLRLrAAq66wcyQrqqBzAomM44MYqZyaaG1Hw2j84OGco= Received: by 10.54.109.12 with SMTP id h12mr1177369wrc; Sun, 12 Feb 2006 21:31:46 -0800 (PST) Received: by 10.54.125.12 with HTTP; Sun, 12 Feb 2006 21:31:46 -0800 (PST) Message-ID: Date: Mon, 13 Feb 2006 00:31:46 -0500 From: Nicholas Aaron Philbrook To: freebsd-apache@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Installation question X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2006 05:31:48 -0000 I am setting up apache on a FreeBSD server running 4.10-RELEASE. I was looking in the ports tree and saw versions of apache with mod_perl support and with mod_ssl support, but I am wanting to have both enabled. I apologize if this is a dumb question, I am a FreeBSD newbie and am used to working with Gentoo Linux, where I would just enable the perl and ssl use flags and then emerge apache. I am wondering if there is a similar procedure, since Gentoo's portage system is based on the FreeBSD ports system. All else failed, I suppose I can just grab the apache sources and configure/compile it myself. Thank you, appleshampoo From owner-freebsd-apache@FreeBSD.ORG Mon Feb 13 11:01:11 2006 Return-Path: X-Original-To: apache@freebsd.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0948316A422 for ; Mon, 13 Feb 2006 11:01:11 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8AF143D45 for ; Mon, 13 Feb 2006 11:01:10 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1DB1A1X066455 for ; Mon, 13 Feb 2006 11:01:10 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1DB19q9066449 for apache@freebsd.org; Mon, 13 Feb 2006 11:01:09 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 13 Feb 2006 11:01:09 GMT Message-Id: <200602131101.k1DB19q9066449@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: apache@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2006 11:01:11 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/11/20] ports/89308 apache [patch] www/mod_accounting crash on reque 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/12/09] ports/74907 apache [PATCH] www/mod_perl: cleanups o [2005/05/18] ports/81183 apache apache13-modperl can not compile with por o [2005/12/05] ports/89972 apache portupgrade apache+ssl fails on dependenc 3 problems total. From owner-freebsd-apache@FreeBSD.ORG Tue Feb 14 07:57:25 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E9A116A420 for ; Tue, 14 Feb 2006 07:57:25 +0000 (GMT) (envelope-from chaim.rieger@gmail.com) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id B98D243D48 for ; Tue, 14 Feb 2006 07:57:24 +0000 (GMT) (envelope-from chaim.rieger@gmail.com) Received: by pproxy.gmail.com with SMTP id z74so1277472pyg for ; Mon, 13 Feb 2006 23:57:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=qWaNxLrv1gjApoGhXOveGxW8rnaqA7AAF77+xzyzPOWauO83xPPnjfSt2urSJmJAq7yH47Mjsc9MRWTnUV4nPuoKQkDdu3zWZM2Igeo1/BdvzlLvtkznXj+IBE4xyr3ZXcBgRhZasrX8adPjQI1dPfUuO4m7vYvJqUCaHPVghKU= Received: by 10.35.107.20 with SMTP id j20mr810624pym; Sun, 12 Feb 2006 21:45:33 -0800 (PST) Received: from ?192.168.1.221? ( [24.130.170.24]) by mx.gmail.com with ESMTP id v50sm2435724pyv.2006.02.12.21.45.32; Sun, 12 Feb 2006 21:45:33 -0800 (PST) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8E5E9FA4-A8F4-47EB-8D44-066F90A75380@gmail.com> Content-Transfer-Encoding: 7bit From: Chaim Rieger Date: Sun, 12 Feb 2006 21:45:29 -0800 To: Nicholas Aaron Philbrook X-Mailer: Apple Mail (2.746.2) Cc: freebsd-apache@freebsd.org Subject: Re: Installation question X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2006 07:57:25 -0000 apache2 has ssl built in by default apachessl + mod_perl will get you apache1, ssl, and perl On Feb 12, 2006, at 9:31 PM, Nicholas Aaron Philbrook wrote: > I am setting up apache on a FreeBSD server running 4.10-RELEASE. > > I was looking in the ports tree and saw versions of apache with > mod_perl support and with mod_ssl support, but I am wanting to have > both enabled. > > I apologize if this is a dumb question, I am a FreeBSD newbie and am > used to working with Gentoo Linux, where I would just enable the perl > and ssl use flags and then emerge apache. I am wondering if there is > a similar procedure, since Gentoo's portage system is based on the > FreeBSD ports system. > > All else failed, I suppose I can just grab the apache sources and > configure/compile it myself. > > Thank you, > appleshampoo > _______________________________________________ > freebsd-apache@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-apache > To unsubscribe, send any mail to "freebsd-apache- > unsubscribe@freebsd.org" From owner-freebsd-apache@FreeBSD.ORG Wed Feb 15 16:15:30 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60A4016A422 for ; Wed, 15 Feb 2006 16:15:30 +0000 (GMT) (envelope-from bsdlists@celeritystorm.com) Received: from mail.celeritystorm.com (213-247-62-79.ip.netshark.nl [213.247.62.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E5A243D4C for ; Wed, 15 Feb 2006 16:15:29 +0000 (GMT) (envelope-from bsdlists@celeritystorm.com) Received: by mail.celeritystorm.com (Postfix, from userid 106) id 5558B3D80FE; Wed, 15 Feb 2006 17:39:12 +0100 (CET) Received: from [192.168.0.1] (unknown [81.84.174.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.celeritystorm.com (Postfix) with ESMTP id BD7C23D7A51 for ; Wed, 15 Feb 2006 17:39:08 +0100 (CET) Message-ID: <43F3539E.5080007@celeritystorm.com> Date: Wed, 15 Feb 2006 16:15:26 +0000 From: BSD User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040724) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-apache@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Apache 1.3 + PHP 5 on FreeBSD 6 -- bad performance under load X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 16:15:30 -0000 Hello list, I've been having trouble identifying what's causing my apache server to take about 5 seconds to reply to new http requests. The machine in question is a Dual Xeon 2.8GHz with 4GB RAM, running apache 1.3.33_4 and PHP5 on 6.0-RELEASE-p4. It is a very busy PHP-based site. I have done a lot of tweaking on this server, but when the load goes a bit higher, it'll take about 5 seconds to answer to a standard GET / HTTP/1.1 via telnet (no PHP involved, since I'm not sending valid HTTP headers and it will reply with a 400 bad request). It is a problem with apache, as telnetting to the sshd port and hitting ENTER yields an instant "Protocol mismatch". -- no delay whatsoever. Both CPUs are around 65% idle after some PHP tweaks, so it's not CPU starvation either. I have accept filters enabled on the kernel, and apache is using them; also: options KVA_PAGES=768 options PMAP_SHPGPERPROC=5120 - to avoid that "colleting PV entries - suggest increasing PMAP_SHPGPERPROC". So far I've been unable to pinpoint what's causing apache a ~5 sec delay to process the GET. A timestamped tcpdump shows the following: Establishing the connection: 02/15/2006 16:06:44.232973 192.168.0.1.53578 > APACHE_SERVER.80: S 3958791824:3958791824(0) win 65535 (DF) [tos 0x10] 02/15/2006 16:06:44.387141 APACHE_SERVER.80 > 192.168.0.1.53578: S 2261546731:2261546731(0) ack 3958791825 win 65535 (DF) 02/15/2006 16:06:44.387348 192.168.0.1.53578 > APACHE_SERVER.80: . ack 1 win 33304 (DF) [tos 0x10] 02/15/2006 16:06:44.536819 APACHE_SERVER.80 > 192.168.0.1.53578: . ack 1 win 32942 (DF) GET: (note: delay from previous step was induced by manually switching terminals and typing) 02/15/2006 16:06:49.148143 192.168.0.1.53578 > APACHE_SERVER.80: P 1:17(16) ack 1 win 33304 (DF) [tos 0x10] 02/15/2006 16:06:49.395079 APACHE_SERVER.80 > 192.168.0.1.53578: . ack 17 win 32938 (DF) 02/15/2006 16:06:49.395284 192.168.0.1.53578 > APACHE_SERVER.80: P 17:19(2) ack 1 win 33304 (DF) [tos 0x10] 02/15/2006 16:06:49.642127 APACHE_SERVER.80 > 192.168.0.1.53578: . ack 19 win 32937 (DF) "400 bad request" reply: 02/15/2006 16:06:59.769277 APACHE_SERVER.80 > 192.168.0.1.53578: P 1:481(480) ack 19 win 32942 (DF) 02/15/2006 16:06:59.769453 APACHE_SERVER.80 > 192.168.0.1.53578: F 481:481(0) ack 19 win 32942 (DF) 02/15/2006 16:06:59.769543 192.168.0.1.53578 > APACHE_SERVER.80: . ack 482 win 33064 (DF) [tos 0x10] 02/15/2006 16:06:59.770548 192.168.0.1.53578 > APACHE_SERVER.80: F 19:19(0) ack 482 win 33304 (DF) [tos 0x10] 02/15/2006 16:06:59.923720 APACHE_SERVER.80 > 192.168.0.1.53578: . ack 20 win 32941 (DF) As you can see, it took 10 seconds to reply to the GET, yet the accepting of the connection was instant. I have more than enough maxfiles, maxproc, maxfilesperproc, nmbclusters etc. I guess the connection is so promptly answered because of the http accept filters built in the kernel. As a final note, the MaxClients I'm using are not nearly enough (around 200 connections/second, according to pfstat graphics vs MaxClients 98). The reason for this is that trying to match MaxClients with the real load resulted in two 0.0% idle processors, since the PHP code is a bit heavy. I've opted to disable KeepAlive and lower MaxClients instead. Could this be the delay I'm seeing ? I think so, but I need more opinions, so feel free to reply. From owner-freebsd-apache@FreeBSD.ORG Wed Feb 15 16:41:19 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42B0216A420 for ; Wed, 15 Feb 2006 16:41:19 +0000 (GMT) (envelope-from bsdlists@celeritystorm.com) Received: from mail.celeritystorm.com (213-247-62-79.ip.netshark.nl [213.247.62.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D83343D77 for ; Wed, 15 Feb 2006 16:41:16 +0000 (GMT) (envelope-from bsdlists@celeritystorm.com) Received: by mail.celeritystorm.com (Postfix, from userid 106) id 00DEB3D7AC1; Wed, 15 Feb 2006 18:04:58 +0100 (CET) Received: from [192.168.0.1] (unknown [81.84.174.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.celeritystorm.com (Postfix) with ESMTP id 315D33D79BC; Wed, 15 Feb 2006 18:04:58 +0100 (CET) Message-ID: <43F359AC.3000304@celeritystorm.com> Date: Wed, 15 Feb 2006 16:41:16 +0000 From: BSD User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040724) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Mark J. Nernberg" , freebsd-apache@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Apache 1.3 + PHP 5 on FreeBSD 6 -- bad performance under load X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 16:41:19 -0000 Nope: Mem: 921M Active, 699M Inact, 290M Wired, 96K Cache, 199M Buf, 2041M Free Swap: 4096M Total, 4096M Free Mark J. Nernberg wrote: >Is it swapping? > > >On 2/15/06 11:15 AM, "BSD" wrote: > > > >>Hello list, >> >>I've been having trouble identifying what's causing my apache server to >>take about 5 seconds to reply to new http requests. >> >>The machine in question is a Dual Xeon 2.8GHz with 4GB RAM, running >>apache 1.3.33_4 and PHP5 on 6.0-RELEASE-p4. It is a very busy PHP-based >>site. >> >>I have done a lot of tweaking on this server, but when the load goes a >>bit higher, it'll take about 5 seconds to answer to a standard GET / >>HTTP/1.1 via telnet (no PHP involved, since I'm not sending valid HTTP >>headers and it will reply with a 400 bad request). >> >>It is a problem with apache, as telnetting to the sshd port and hitting >>ENTER yields an instant "Protocol mismatch". -- no delay whatsoever. >> >>Both CPUs are around 65% idle after some PHP tweaks, so it's not CPU >>starvation either. >> >>I have accept filters enabled on the kernel, and apache is using them; also: >> >>options KVA_PAGES=768 >>options PMAP_SHPGPERPROC=5120 >> >>- to avoid that "colleting PV entries - suggest increasing >>PMAP_SHPGPERPROC". >> >>So far I've been unable to pinpoint what's causing apache a ~5 sec delay >>to process the GET. A timestamped tcpdump shows the following: >> >>Establishing the connection: >>02/15/2006 16:06:44.232973 192.168.0.1.53578 > APACHE_SERVER.80: S >>3958791824:3958791824(0) win 65535 >1,nop,nop,timestamp 7596496 0> (DF) [tos 0x10] >>02/15/2006 16:06:44.387141 APACHE_SERVER.80 > 192.168.0.1.53578: S >>2261546731:2261546731(0) ack 3958791825 win 65535 >2,nop,nop,timestamp 1124627170 7596496> (DF) >>02/15/2006 16:06:44.387348 192.168.0.1.53578 > APACHE_SERVER.80: . ack 1 >>win 33304 (DF) [tos 0x10] >> >>02/15/2006 16:06:44.536819 APACHE_SERVER.80 > 192.168.0.1.53578: . ack 1 >>win 32942 (DF) >> >> >>GET: (note: delay from previous step was induced by manually switching >>terminals and typing) >>02/15/2006 16:06:49.148143 192.168.0.1.53578 > APACHE_SERVER.80: P >>1:17(16) ack 1 win 33304 (DF) >>[tos 0x10] >>02/15/2006 16:06:49.395079 APACHE_SERVER.80 > 192.168.0.1.53578: . ack >>17 win 32938 (DF) >>02/15/2006 16:06:49.395284 192.168.0.1.53578 > APACHE_SERVER.80: P >>17:19(2) ack 1 win 33304 (DF) >>[tos 0x10] >>02/15/2006 16:06:49.642127 APACHE_SERVER.80 > 192.168.0.1.53578: . ack >>19 win 32937 (DF) >> >> >>"400 bad request" reply: >>02/15/2006 16:06:59.769277 APACHE_SERVER.80 > 192.168.0.1.53578: P >>1:481(480) ack 19 win 32942 (DF) >>02/15/2006 16:06:59.769453 APACHE_SERVER.80 > 192.168.0.1.53578: F >>481:481(0) ack 19 win 32942 (DF) >>02/15/2006 16:06:59.769543 192.168.0.1.53578 > APACHE_SERVER.80: . ack >>482 win 33064 (DF) [tos 0x10] >>02/15/2006 16:06:59.770548 192.168.0.1.53578 > APACHE_SERVER.80: F >>19:19(0) ack 482 win 33304 (DF) >>[tos 0x10] >>02/15/2006 16:06:59.923720 APACHE_SERVER.80 > 192.168.0.1.53578: . ack >>20 win 32941 (DF) >> >> >>As you can see, it took 10 seconds to reply to the GET, yet the >>accepting of the connection was instant. >>I have more than enough maxfiles, maxproc, maxfilesperproc, nmbclusters >>etc. I guess the connection is so promptly answered because of the http >>accept filters built in the kernel. >> >>As a final note, the MaxClients I'm using are not nearly enough (around >>200 connections/second, according to pfstat graphics vs MaxClients 98). >>The reason for this is that trying to match MaxClients with the real >>load resulted in two 0.0% idle processors, since the PHP code is a bit >>heavy. I've opted to disable KeepAlive and lower MaxClients instead. >>Could this be the delay I'm seeing ? I think so, but I need more >>opinions, so feel free to reply. >> >> >>_______________________________________________ >>freebsd-apache@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-apache >>To unsubscribe, send any mail to "freebsd-apache-unsubscribe@freebsd.org" >> >> >> >> > > > From owner-freebsd-apache@FreeBSD.ORG Wed Feb 15 21:05:36 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA31116A420 for ; Wed, 15 Feb 2006 21:05:36 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id B957943D49 for ; Wed, 15 Feb 2006 21:05:34 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 18231 invoked by uid 1000); 15 Feb 2006 22:05:33 +0100 Date: Wed, 15 Feb 2006 22:05:33 +0100 From: Clement Laforet To: BSD Message-ID: <20060215210533.GB59145@goofy.cultdeadsheep.org> References: <43F3539E.5080007@celeritystorm.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW" Content-Disposition: inline In-Reply-To: <43F3539E.5080007@celeritystorm.com> User-Agent: Mutt/1.5.10i Cc: freebsd-apache@freebsd.org Subject: Re: Apache 1.3 + PHP 5 on FreeBSD 6 -- bad performance under load X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 21:05:37 -0000 --b5gNqxB1S1yM7hjW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 15, 2006 at 04:15:26PM +0000, BSD wrote: > As you can see, it took 10 seconds to reply to the GET, yet the=20 > accepting of the connection was instant. > I have more than enough maxfiles, maxproc, maxfilesperproc, nmbclusters= =20 > etc. I guess the connection is so promptly answered because of the http= =20 > accept filters built in the kernel. > > As a final note, the MaxClients I'm using are not nearly enough (around= =20 > 200 connections/second, according to pfstat graphics vs MaxClients 98).= =20 > The reason for this is that trying to match MaxClients with the real=20 > load resulted in two 0.0% idle processors, since the PHP code is a bit=20 > heavy. I've opted to disable KeepAlive and lower MaxClients instead.=20 > Could this be the delay I'm seeing ? I think so, but I need more=20 > opinions, so feel free to reply. It looks like requests are stuck in the listen backlog. clem --b5gNqxB1S1yM7hjW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFD85edsRhfjwcjuh0RAkvYAJ9uC/RQLDwHKadfy5o9YpmGX7JOkgCg5G2G kXF40H2kRBgRwc5AP3LEVHo= =q5x1 -----END PGP SIGNATURE----- --b5gNqxB1S1yM7hjW-- From owner-freebsd-apache@FreeBSD.ORG Wed Feb 15 21:10:23 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8F0116A420 for ; Wed, 15 Feb 2006 21:10:23 +0000 (GMT) (envelope-from bsdlists@celeritystorm.com) Received: from mail.celeritystorm.com (213-247-62-79.ip.netshark.nl [213.247.62.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6E1C43D69 for ; Wed, 15 Feb 2006 21:10:17 +0000 (GMT) (envelope-from bsdlists@celeritystorm.com) Received: by mail.celeritystorm.com (Postfix, from userid 106) id D5CBB3D8121; Wed, 15 Feb 2006 22:34:02 +0100 (CET) Received: from [192.168.0.1] (unknown [81.84.174.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.celeritystorm.com (Postfix) with ESMTP id 831EF3D80DA; Wed, 15 Feb 2006 22:34:02 +0100 (CET) Message-ID: <43F398B8.2000103@celeritystorm.com> Date: Wed, 15 Feb 2006 21:10:16 +0000 From: BSD User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040724) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Clement Laforet , freebsd-apache@freebsd.org References: <43F3539E.5080007@celeritystorm.com> <20060215210533.GB59145@goofy.cultdeadsheep.org> In-Reply-To: <20060215210533.GB59145@goofy.cultdeadsheep.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Apache 1.3 + PHP 5 on FreeBSD 6 -- bad performance under load X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 21:10:23 -0000 Clement Laforet wrote: >On Wed, Feb 15, 2006 at 04:15:26PM +0000, BSD wrote: > > >>As you can see, it took 10 seconds to reply to the GET, yet the >>accepting of the connection was instant. >>I have more than enough maxfiles, maxproc, maxfilesperproc, nmbclusters >>etc. I guess the connection is so promptly answered because of the http >>accept filters built in the kernel. >> >>As a final note, the MaxClients I'm using are not nearly enough (around >>200 connections/second, according to pfstat graphics vs MaxClients 98). >>The reason for this is that trying to match MaxClients with the real >>load resulted in two 0.0% idle processors, since the PHP code is a bit >>heavy. I've opted to disable KeepAlive and lower MaxClients instead. >>Could this be the delay I'm seeing ? I think so, but I need more >>opinions, so feel free to reply. >> >> > >It looks like requests are stuck in the listen backlog. > >clem > > That is my main suspect too. Is there a way to know how many connections are currently on the backlog ? From owner-freebsd-apache@FreeBSD.ORG Fri Feb 17 15:07:11 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B12416A422 for ; Fri, 17 Feb 2006 15:07:11 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 1FF1343D46 for ; Fri, 17 Feb 2006 15:07:09 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 51363 invoked by uid 1000); 17 Feb 2006 16:07:07 +0100 Date: Fri, 17 Feb 2006 16:07:07 +0100 From: Clement Laforet To: BSD Message-ID: <20060217150707.GC59145@goofy.cultdeadsheep.org> References: <43F3539E.5080007@celeritystorm.com> <20060215210533.GB59145@goofy.cultdeadsheep.org> <43F398B8.2000103@celeritystorm.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TYecfFk8j8mZq+dy" Content-Disposition: inline In-Reply-To: <43F398B8.2000103@celeritystorm.com> User-Agent: Mutt/1.5.10i Cc: freebsd-apache@freebsd.org Subject: Re: Apache 1.3 + PHP 5 on FreeBSD 6 -- bad performance under load X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2006 15:07:11 -0000 --TYecfFk8j8mZq+dy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 15, 2006 at 09:10:16PM +0000, BSD wrote: > That is my main suspect too. Is there a way to know how many connections= =20 > are currently on the backlog ? netstat should help: netstat -n -p TCP | grep SYN_RECV but I don't know how it reacts with accept filter. clem --TYecfFk8j8mZq+dy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFD9eaasRhfjwcjuh0RAuABAKDQCJ3FnE29hw5yuBre/7MPwQgUmgCfSajJ iR2s0ZNaSPD+YUE0CWqZugI= =MzqV -----END PGP SIGNATURE----- --TYecfFk8j8mZq+dy--