httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@kiwi.ICS.UCI.EDU>
Subject Re: [PATCH] murderous HUP
Date Tue, 18 Feb 1997 22:34:24 GMT
>Is there any reason to bother with a shift, or are compilers good enough
>that they will implement multiplication by powers of two that way anyway? 

They should be good enough -- I just like shifts when I am testing.

>> Anyway, 8192 and *4 seem to be reasonable values (on an Ultra 1, but the
>> printfs will slow it down to average).
>
>I'm not particularly concerned about the rest of the code or the real
>runtime but just the sum of the series which is trivial enough to
>estimate or calculate.  

I am worried about busy systems having to swap processes back-n-forth,
and thus what might seem like a small total on our systems would turn
out to be a several hundred second wait on a memory-crunched system.

>I agree with raising the starting value to 4096, but I'm not sure about
>going to 4 as a multiplier instead of 2.  I think the cases at the higher
>end of the scale benefit from having it at 2, while the lower end isn't
>hurt that much.  If a processes is swapped out, it could take a few
>seconds to swap it back in to kill it, so I like the ~4.3s that 2 gives as
>opposed to the ~2.9 that 4 gives.

Okay, that'll do for me.  Be sure to define waittime as a long
(it was an int in the patch).

....Roy

Mime
View raw message