httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <>
Subject Re: load spikes revisited
Date Fri, 18 Jan 2002 06:43:18 GMT
Greg Ames wrote:

>Getting a lot closer.  httpd:// now has 30
>some seconds of ktrace for comparison purposes.  Interestingly enough, this file
>is considerably smaller than the 2.0.30-dev file which ran for less time. 
>There's about twice the context switches in 2.0.30-dev's ktrace.
>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.

So is the situation basically this:
  * Single listener unserialized accept is enabled on daedalus,
  * We thus have all the idle httpd procs doing a poll before the
  * And the spikes in load happen because of the thundering herd
    waking up from the poll when a connection arrives?

If that's the root cause, then I guess 2.0.29 or later with, say,
pthread mutex accept serialization should be able to run without
load spikes on daedalus?


View raw message