Re: select() efficiency / epoll

From: Willy Tarreau
Date: Tue Aug 23 2005 - 14:13:53 EST


Hi,

On Tue, Aug 23, 2005 at 06:01:15AM -0500, Davy Durham wrote:
> I just mean that when I debug and catch the segv, it's dies because
> some pointers now have corrupted values. (usually because something is
> overwriting some memory some where)
>
> I'm currently re-writing some code to make it use select() instead of
> epoll_wait() and see if everything is suddently fixed. If so, then I
> will suspect that epoll has a problem. But it's still not ruled out
> being my fault since it could be a timing issue that makes the crash
> show up.

Just out of curiosity, have you had the opportunity to read some other
code which uses epoll ? Maybe reading others code could enlighten you
on potential bugs in your code, potential races, etc...

Regards,
Willy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/