public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Willy Tarreau <willy@w.ods.org>
To: Davy Durham <pubaddr2@davyandbeth.com>
Cc: Willy Tarreau <willy@w.ods.org>,
	bert hubert <bert.hubert@netherlabs.nl>,
	linux-kernel@vger.kernel.org
Subject: Re: select() efficiency / epoll
Date: Tue, 23 Aug 2005 21:45:57 +0200	[thread overview]
Message-ID: <20050823194557.GC10110@alpha.home.local> (raw)
In-Reply-To: <430B077A.10700@davyandbeth.com>

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


  reply	other threads:[~2005-08-23 19:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-22 21:18 select() efficiency Davy Durham
2005-07-22 21:24 ` bert hubert
2005-08-23  9:49   ` select() efficiency / epoll Davy Durham
2005-08-23 18:24     ` bert hubert
2005-08-23 11:01       ` Davy Durham
2005-08-23 11:25         ` Davy Durham
2005-08-23 19:12         ` Willy Tarreau
2005-08-23 11:24           ` Davy Durham
2005-08-23 19:45             ` Willy Tarreau [this message]
2005-08-23 11:55               ` Davy Durham
2005-08-23 20:20                 ` Willy Tarreau
2005-08-23 23:21                   ` Davide Libenzi
2005-08-23 17:08                     ` Davy Durham
2005-08-24  5:09                       ` Davide Libenzi
2005-08-23 22:35                         ` Davy Durham
2005-08-23 19:30     ` Jari Sundell
2005-08-23 11:53       ` Davy Durham
2005-08-23 20:42         ` Jari Sundell
2005-08-23 17:11           ` Davy Durham
2005-08-23 17:40           ` Davy Durham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050823194557.GC10110@alpha.home.local \
    --to=willy@w.ods.org \
    --cc=bert.hubert@netherlabs.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pubaddr2@davyandbeth.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox