httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: memory allocations stuff (question)
Date Wed, 09 Jul 1997 22:03:49 GMT
limits are global, and what the thing below is trying to do is institute a
per-request cpu limit. 

Dean

On Wed, 9 Jul 1997, Brian Behlendorf wrote:

> 
> In the interests of avoiding having the code do what the OS can...
> 
> If we had a good "start_apache" shell script (like what most of us with
> SVR4 systems have done by hand anyways for /etc/rc.d/), could we not put a
> few good "set limit ...." calls into it?  Among some other things I can
> think of... is there a reason this wouldn't be a good idea?
> 
> 	Brian
> 
> At 10:15 AM 7/9/97 -0700, you wrote:
> >This is what I was hoping for:
> >
> >    for(;;) {
> >	begin new request (read_request_line)
> >	getrusage();
> >	calculate usage + max_usage_per_request
> >	setrlimit();
> >	do the request
> >    }
> >
> >That really only applies to the CPU usage limit though.  A memory limit
> >doesn't need to be recalculated per request.
> >
> >As for directive names... how about ServerRLimitXXX.
> >
> >It's too bad that there's no way to catch a signal when the soft limits
> >are reached and respond with a 5XX error.
> 
> --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
> "Why not?" - TL           brian@organic.com - hyperreal.org - apache.org
> 


Mime
View raw message