Re: select() efficiency / epoll

From: Davy Durham (pubaddr2_at_davyandbeth.com)
Date: 08/23/05

  • Next message: Ulrich Drepper: "mremap() use is racy"
    Date:	Tue, 23 Aug 2005 06:55:26 -0500
    To: Willy Tarreau <willy@w.ods.org>
    
    

    Thanks for the info.. I did find this thread and was wondering if this
    patch ever got put in

    http://www.ussg.iu.edu/hypermail/linux/kernel/0303.3/1139.html

    Willy Tarreau wrote:

    >On Tue, Aug 23, 2005 at 06:24:42AM -0500, Davy Durham wrote:
    >
    >
    >>That's probably a good idea. Where would I find out what other projects
    >>use it?
    >>
    >>
    >
    >I use it in my load-balancer (haproxy), and it could somewhat match your
    >needs, because I ported the select()-based earlier version to epoll() with
    >the smallest possible changes. Indeed, the new epoll() loop still uses the
    >FD_ISSET() to determine what to do with epoll_ctl(). If you have changed
    >your code to use select(), you may find similarities. But I want to tell
    >you from now that my code is NOT multi-threaded. It could be a bug in the
    >epoll implementation, because I don't think that there are so many
    >applications using epoll on MT models. Bert says that the epoll implementation
    >is heavily benchmarked, which is true, but which does not guarantee that it
    >is tested under every condition.
    >
    >You can download it from there :
    >
    > http://w.ods.org/tools/haproxy/src/devel/
    >
    >Use version 1.2.6. I added epoll in 1.2.5, so the diff between 1.2.4 and
    >1.2.5 could help you too.
    >
    >Good luck !
    >Willy
    >
    >-
    >To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    >the body of a message to majordomo@vger.kernel.org
    >More majordomo info at http://vger.kernel.org/majordomo-info.html
    >Please read the FAQ at http://www.tux.org/lkml/
    >
    >

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


  • Next message: Ulrich Drepper: "mremap() use is racy"

    Relevant Pages

    • Re: [PATCH][4/4] poll()/select() timeout behavior
      ... select's behaviour is fun when trying to do smooth game animation on ... epoll() at least agree on the same rounding direction? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [patch] One-shot support for epoll ...
      ... The attached patch implements the one-shot support for epoll. ... /* Set the Edge Triggered behaviour for the target file descriptor */ ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: epoll gives broken results when interrupted with a signal
      ... When epoll seems to go wrong, ... my code can't pull in the kernel headers so it has its own ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: select() efficiency / epoll
      ... > some pointers now have corrupted values. ... > will suspect that epoll has a problem. ... on potential bugs in your code, potential races, etc... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: select() efficiency / epoll
      ... >>I just mean that when I debug and catch the segv, ... >>will suspect that epoll has a problem. ... >on potential bugs in your code, potential races, etc... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)