httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: [PATCH] murderous HUP
Date Tue, 18 Feb 1997 16:40:23 GMT
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

Mime
View raw message