apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: poll on OS X Re: pollset initialization within apr_file_open()?
Date Tue, 05 Jul 2005 10:22:30 GMT
On Mon, Jul 04, 2005 at 03:25:14PM -0700, Brian Pane wrote:
> On Jul 4, 2005, at 2:18 AM, Joe Orton wrote:
> >On Sun, Jul 03, 2005 at 04:27:05PM -0700, Brian Pane wrote:
> >>The pollset creation can be expensive, especially on platforms where 
> >>it's implemented using /dev/poll or kqueue.  And as far as I can 
> >>tell. the pollset is only used in the special case of 
> >>apr_wait_for_io_or_timeout() where the caller wants to wait on a 
> >>file.
> >
> >Note that this problem only affects the very small number of 
> >platforms without a (working) poll() implementation.
> 
> Ah, that explains it: I'm using OS X 10.4, and this recent change 
> disabled the use of poll in APR on Darwin: 
> <http://svn.apache.org/viewcvs.cgi/apr/apr/trunk/build/apr_hints.m4?  
> rev=179282&r1=178653&r2=179282>
> 
> I can develop a patch to do a lazy initialization of the pollset 
> within the apr_file_t, which should fix the httpd performance 
> problems.

OK, possibly it should be done for the apr_socket_t case too.

> However, one of the later comments in bug 34332 notes that "disabling 
> poll() may not be necessary" on Darwin after all.  If anybody is 
> actively looking at the possibility of reenabling poll() on Darwin, 
> please let me know and I'll hold off on implementing the 
> lazy-initialization fix for now.

That comment was not the last word on the topic; I've just added a link 
to Fred's last message.

Regards,

joe

Mime
View raw message