From: Dan Kegel <dank@kegel.com>
To: William Lee Irwin III <wli@holomorphy.com>
Cc: Davide Libenzi <davidel@xmailserver.org>,
John Myers <jgmyers@netscape.com>,
linux-aio@kvack.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Comparing the aio and epoll event frameworks.
Date: Mon, 19 May 2003 19:06:21 -0700 [thread overview]
Message-ID: <3EC98D9D.1080309@kegel.com> (raw)
In-Reply-To: <20030520011541.GR2444@holomorphy.com>
William Lee Irwin III wrote:
> William Lee Irwin III wrote:
>
>>>I think this would be useful for network daemons that would like to
>>>fairly schedule responses (i.e. not re-arm until a client on a given fd
>>>deserves a turn again). IRC daemons would appear to be a perfect
>>>candidate for such. ...
>
>
> On Mon, May 19, 2003 at 06:37:49PM -0700, Dan Kegel wrote:
>
>>No need. The plain old edge triggered behavior can handle this
>>nicely.
>
>
> AIUI after the iospace on an fd is exhausted the event will be re-armed.
> It could probably be taken and then ignored until the client deserves a
> response again. Is that what you had in mind?
In edge-triggered mode, epoll will deliver an event only when events warrant it (sic).
If you decide to starve a client for a while, that client's fd
will only get an event or two as the last bits of I/O to it
occur; after that, no more events will come in unless you do
some I/O.
So I guess I'm saying "remember the fact that you got the event, but
don't do anything about it until you feel like it".
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
next prev parent reply other threads:[~2003-05-20 1:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-19 23:33 John Myers
2003-05-20 0:38 ` Davide Libenzi
2003-05-20 1:10 ` Dan Kegel
2003-05-20 0:46 ` William Lee Irwin III
2003-05-20 0:52 ` Davide Libenzi
2003-05-20 0:47 ` Davide Libenzi
2003-05-20 1:02 ` William Lee Irwin III
2003-05-20 1:37 ` Dan Kegel
2003-05-20 1:15 ` William Lee Irwin III
2003-05-20 2:06 ` Dan Kegel [this message]
2003-05-20 1:22 ` Dan Kegel
2003-05-20 0:58 ` Davide Libenzi
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=3EC98D9D.1080309@kegel.com \
--to=dank@kegel.com \
--cc=davidel@xmailserver.org \
--cc=jgmyers@netscape.com \
--cc=linux-aio@kvack.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wli@holomorphy.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
all inboxes | Powered by JetHome®