Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17849 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51127 invoked by uid 1010); 12 Aug 2005 00:48:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51111 invoked from network); 12 Aug 2005 00:48:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2005 00:48:19 -0000 X-Host-Fingerprint: 64.233.184.197 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.197:38242] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 52/3E-33075-3D1FBF24 for ; Thu, 11 Aug 2005 20:48:19 -0400 Received: by wproxy.gmail.com with SMTP id i22so488915wra for ; Thu, 11 Aug 2005 17:48:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VkE4a2HAZouzBXYhycItgtpP3qu4Hqd88MypheXRD+GQA6jO3gWoEbFoAmEQphU7rGw4m6AYM8Vk9kCM6q+gw8GRAfWSYISZYI+DQTbCAEkc7p3gCQiyQjzBNeraVD96s0G9Q/0/VNk8szsQu025FRmEGxldLEsZ55jMbj0BcdM= Received: by 10.54.50.65 with SMTP id x65mr1547164wrx; Thu, 11 Aug 2005 17:48:16 -0700 (PDT) Received: by 10.54.107.8 with HTTP; Thu, 11 Aug 2005 17:48:16 -0700 (PDT) Message-ID: <57792e85050811174867b7a6c3@mail.gmail.com> Date: Thu, 11 Aug 2005 17:48:16 -0700 To: Rasmus Lerdorf , Andreas Korthaus Cc: internals@lists.php.net In-Reply-To: <42F962CF.4000503@lerdorf.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <57792e85050808205143e96a8f@mail.gmail.com> <42F907A0.8070900@web.de> <57792e85050809142416ee5d6c@mail.gmail.com> <42F9217F.6010604@lerdorf.com> <57792e8505080917402f144072@mail.gmail.com> <42F962CF.4000503@lerdorf.com> Subject: Re: [PHP-DEV] Re: Moving to PHP5.1 and Apache 2.2 next year, need help From: iamstever@gmail.com (steve roussey) Just a couple last notes on lingering:=20 o Apache 2+ uses SO_LINGER by default if it defined for that system. Apache 1 will only use it if you define USE_SO_LINGER (I suppose in configure). Apache2 has all sorts of stuff in the comments of the code and in the manual which is just wrong. Its all from Apache1 and does not reflect on Apache2's implementation. I wish they just erased it instead. o As far as I can tell, current Linux will block until all data is sent, then return (doing the actual closing part in the background) with SO_LINGER. o Lingerd caused my apache setup to crash. It was worth a try if it didn't take much effort, but not worth fixing. > If you turn the concept of lingerd upside down and bounce > socket descriptors back and forth between it and Apache between > keepalive requests you can free up Apache from any sort of sitting > around waiting on socket timeouts or linger outs. The last thing you > want is a heavy single-threaded process like Apache sitting around > waiting on some socket event. It should be crunching out pages as fast > as possible not waiting on a keepalive or SO_LINGER timeout. This actually sounds like an argument for NOT using mod_php. It sounds like an argument for using Apache2 or lighttpd or xyz in conjection with FastCGI. (Or a proxy arangement, which I've done, though in my personal case, I like to get the same scaling with less machines since I have to buy the machines). In that case, the webserver can be made lightweight (not sure how lightweight Apache2 can be, but who knows?) handling many open connections. Then there is a (much) smaller number of heavy PHP processes in FastCGI. I'm going to put a test together next week and have Apache1/mod_php, Apache2/worker (not event)/FastCGI, and lighttpd/FastCGI run head to head and see what happens. Maybe I'll even try with KeepAlive too (though not with Apache1/mod_php since I already know that won't work). I'll post my results back here if anyone is interested. Andreas -- can you email me off list? I wouldn't mind some help setting up lighttpd/FastCGI. Thanks! -steve--