httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: [PATCH] create fd slack (take 2)
Date Tue, 24 Jun 1997 02:41:33 GMT
On Mon, 23 Jun 1997, Jim Jagielski wrote:

> Ok... I think I have this now... Let's say we have an OS which can handle,
> for example, 512 fd's but it's resolver code dies with fd's > 128. So,
> we create a pool of fd's below that magic number for things out
> of Apache's control, but when we need to use a fd, we try to grab
> one above that, right?

Correct.  The net effect of the code is to flag a certain number of low
fds as special so they are only used if they have to be.

> 
> Seems like a very platform specific tuning... Maybe NO_SLACK should
> be the default... Of course, a run-time parameter would be best,
> dontyathink?

If a system has a F_DUPFD define but its fcntl doesn't properly handle it,
then it is broken.  Note that on a properly functional operating system,
_NO_ fds will be wasted.  Some will be skipped, yes, but if more are
needed and it can't go any higher, it will use the low numbered ones.


Mime
View raw message