Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 7281 invoked by uid 500); 18 Jan 2002 07:02:15 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 7268 invoked from network); 18 Jan 2002 07:02:15 -0000 Date: Thu, 17 Jan 2002 23:04:09 -0800 From: Brian Pane Subject: Re: load spikes revisited To: dev@httpd.apache.org Message-id: <3C47C8E9.1070006@pacbell.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221 References: <3C462EDA.482A5BE5@remulak.net> <3C4792A5.3F61C50E@remulak.net> <3C47C406.5060504@pacbell.net> <20020117225350.Y1529@clove.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Aaron Bannert wrote: >On Thu, Jan 17, 2002 at 10:43:18PM -0800, Brian Pane wrote: >[snip] > >>>prefork was changed to do a apr_poll before the accept, even in the single >>>listen case, on Nov 10. The polls seem to get added to the herd of selects >>>that >>>wake up several times a second for no real good reason. We need to get rid >>>of >>>this poll once again. >>> > >We should get rid of the poll() for S_L_U_A, but I think that would >only treat the symptom, since it would come back when we had multiple >listeners. > But in the multiple listener case, access to the poll will always be serialized, so we won't be vulnerable to a thundering herd problem, right? > Personally, I think poll() is itself the problem, and my >theory is that poll() has a thundering hurd problem on this particular >version of FreeBSD. We can try this out by #undef'ing HAVE_POLL in >srclib/apr/network_io/unix/poll.c, so we use select() instead, which >is what we used to do before Nov 10th. > Yep, I think the poll is the problem too. We ought to be able to remove it altogether in the single-listener case, though. --Brian