Received: by taz.hyperreal.com (8.8.4/V2.0) id JAA22407; Tue, 18 Feb 1997 09:54:15 -0800 (PST) Received: from eastwood.aldigital.algroup.co.uk by taz.hyperreal.com (8.8.4/V2.0) with SMTP id JAA22398; Tue, 18 Feb 1997 09:54:11 -0800 (PST) Received: from gonzo.ben.algroup.co.uk (gonzo.ben.algroup.co.uk [193.133.15.1]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with SMTP id RAA02968 for ; Tue, 18 Feb 1997 17:53:53 GMT Subject: Re: [PATCH] murderous HUP To: new-httpd@hyperreal.com Date: Tue, 18 Feb 1997 16:40:23 +0000 (GMT) From: Ben Laurie In-Reply-To: <9702180812.aa17243@paris.ics.uci.edu> from "Roy T. Fielding" at Feb 18, 97 08:11:57 am X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID: <9702181640.aa29548@gonzo.ben.algroup.co.uk> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com Roy T. Fielding wrote: > > Marc Slemko writes: > >--- 1030,1086 ---- > > for (i = 0; i < HARD_SERVER_LIMIT; ++i) { > > int pid = scoreboard_image->servers[i].pid; > > > >! if (pid != my_pid && pid != 0) { > >! int waitret = 0, > >! tries = 1; > >! > >! while (waitret == 0 && tries <= 4) { > >! int waittime = 1; /* in usecs */ > >! struct timeval tv; > > Ummm, there is no point in waiting for any less than 1000 usecs, since > that's about how long it takes to execute a single instruction on a > reasonably fast machine. I suggest starting with 4096 and *8 on each pass. > We don't want process swapping to steal all execution time from the children. Errr ... 1000 us=1 ms, a 1 kHz clock. I think you are getting mixed up with ns here, and even then, 100 ns would seem closer to the mark... Cheers, Ben. -- Ben Laurie Phone: +44 (181) 994 6435 Email: ben@algroup.co.uk Freelance Consultant and Fax: +44 (181) 994 6472 Technical Director URL: http://www.algroup.co.uk/Apache-SSL A.L. Digital Ltd, Apache Group member (http://www.apache.org) London, England. Apache-SSL author