2 epoll questions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mike Blumenkrantz
Date: Monday, November 29, 2010 - 5:17 pm

Hi,

I am not subscribed to the list yet, and I would appreciate it if all replies
could be CCed to me :).

I have two questions regarding epoll.  The epoll code that I am using can all
be found in the file here for those interested:
https://svn.enlightenment.org/svn/e/trunk/ecore/src/lib/ecore/ecore_main.c

1) Is there any known reason why adding fds to an epoll fd would begin to slow
down dramatically after ~6000 fds are added?  It is entirely possible that the
problem is not epoll at all, but I wanted to ask and see if there was some O(n)
code somewhere that was known.

2) If a select on an epoll fd (not one inside the epoll, the actual epoll fd
itself) returns EBADF, is there a way to determine which fd is causing the
error and then remove it?  I am occasionally running into this issue, and it
seems to be caused by code which I do not necessarily control closing a fd that
is part of my epoll fd without my knowledge (meaning that the closed fd is
still in epoll).

Thanks!

-- 
Mike Blumenkrantz
Zentific: Our boolean values are huge.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2 epoll questions, Mike Blumenkrantz, (Mon Nov 29, 5:17 pm)
Re: 2 epoll questions, Eric Dumazet, (Tue Nov 30, 12:03 am)
Re: 2 epoll questions, Mike Blumenkrantz, (Tue Nov 30, 7:43 pm)