From: kuznet@ms2.inr.ac.ru
To: davem@redhat.com (David S. Miller)
Cc: jmorris@redhat.com, jamie@shareable.org, linux-kernel@vger.kernel.org
Subject: Re: Fw: Re: [Patch][RFC] epoll and half closed TCP connections
Date: Mon, 14 Jul 2003 21:39:25 +0400 (MSD) [thread overview]
Message-ID: <200307141739.VAA05290@dub.inr.ac.ru> (raw)
In-Reply-To: <20030713070352.3f21a9f8.davem@redhat.com> from "David S. Miller" at Jul 13, 2003 07:03:52 AM
Hello!
> it looks as though _every_ TCP ACK you receive will cause epoll to wake up
> a task which is interested in _any_ socket events,
This is not quite true. sk->write_space() is called only after write
queue is full, and it is exactly one wakeup until the next overflow.
But, actually, yes, it is right observation: one wait queue for all
the socket events is painful. Note, that with current poll() improvements
are suboptimal, tcp_poll() does not know _what_ this poll polls for,
so it has to stand in all the wait queues. The same thing kills lots
of possible improvements.
> further, we might as well admit that POLLHUP should be called
> POLLWRHUP.)
No, really. POLLHUP=POLLRDHUP&POLLWRHUP, plus POLLHUP is unmaskable event.
Yes, SVR4 screwed up its semantics in such extent that it is mostly
meaningless.
Alexey
next parent reply other threads:[~2003-07-14 17:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20030713070352.3f21a9f8.davem@redhat.com>
2003-07-14 17:39 ` kuznet [this message]
2003-07-14 18:25 ` Fw: Re: [Patch][RFC] epoll and half closed TCP connections 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=200307141739.VAA05290@dub.inr.ac.ru \
--to=kuznet@ms2.inr.ac.ru \
--cc=davem@redhat.com \
--cc=jamie@shareable.org \
--cc=jmorris@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).