Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 70455 invoked by uid 500); 15 Jun 2001 10:16:55 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 70405 invoked from network); 15 Jun 2001 10:16:50 -0000 X-Authentication-Warning: adsl-77-241-65.rdu.bellsouth.net: trawick set sender to trawick@attglobal.net using -f Sender: trawick@bellsouth.net To: new-httpd@apache.org Subject: Re: [PATCH] screw up prefork even more References: <3B293775.551362DF@raleigh.ibm.com> From: Jeff Trawick Date: 15 Jun 2001 06:08:30 -0400 In-Reply-To: <3B293775.551362DF@raleigh.ibm.com> Message-ID: Lines: 28 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N "Paul J. Reder" writes: > Jeff Trawick wrote: > > We ran > > into this previously with threaded, and though prefork should have > > less chance of this problem we don't know what libc and plugin modules > > will be doing. > > Actually, prefork was where I first ran into problems with the mutexes > during cleanups. When perform_idle_server_maintenance was called. If > it found too many idle workers it would try to cleanup. On occaision it > would clean up a worker that was still starting. The new worker had > grabbed the mutex for pools, but not yet obtained a pool. Clean_child_exit > was called and tried to free the pool but couldn't get past the mutex. > The child could not come up or go down. The code in perform_idle_server_ > maintenance kept trying to kill the same worker, so the number of > workers could never drop below this threashold again. We now kill idle workers with the pod (i.e., don't do work in the signal handler) so this particular problem is avoided. I'm still uncomfortable about doing so much in the SIGHUP handler in the child, but I have no real solution and we need to move forward. -- Jeff Trawick | trawick@attglobal.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...