From: Nagendra Tomar <tomer_iisc@yahoo.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
davidel@xmailserver.org
Subject: Re: [PATCH 2.6.23-rc6 Resending] NETWORKING : Edge Triggered EPOLLOUT events get missed for TCP sockets
Date: Wed, 19 Sep 2007 16:32:07 -0700 (PDT) [thread overview]
Message-ID: <608569.12944.qm@web53702.mail.re2.yahoo.com> (raw)
In-Reply-To: <20070919.161037.68156707.davem@davemloft.net>
--- David Miller <davem@davemloft.net> wrote:
> From: Nagendra Tomar <tomer_iisc@yahoo.com>
> Date: Wed, 19 Sep 2007 15:55:58 -0700 (PDT)
>
> > I agree that setting SOCK_NOSPACE would have been a more elegant
> > fix. Infact I thought a lot about that before deciding on this fix.
>
> I guess this means you also noticed that you are removing
> the one and only test of this bit too?
>
> You can't remove this, it's critical for performance.
I'm sure you would have seen value in the check that's why the
check is there.
Now we have two critical points to discuss
1. How can we achieve the ET EPOLLOUT event with the SOCK_NOSPACE
check in place ?
2. How much effect will removing the check have (if we cannot
find a way to get the ET EPOLLOUT notification w/ the check
in place) ?
Regding (2), IMHO for a "fast sender" the SOCK_NOSPACE check will
almost always pass as the sender will come back to write (or poll)
before the prev data is drained out. If he doesn't do that, he is
not a "fast sender" by definition". A "fast sender" should always
have some data to send when he practically (per the sndbuf space)
can.
For a "slow sender", do we really care abt the optimization ?
Thanx,
Tomar
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
next prev parent reply other threads:[~2007-09-19 23:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-19 22:37 [PATCH 2.6.23-rc6 Resending] NETWORKING : Edge Triggered EPOLLOUT events get missed for TCP sockets Nagendra Tomar
2007-09-19 22:44 ` David Miller
2007-09-19 22:55 ` Nagendra Tomar
2007-09-19 23:10 ` David Miller
2007-09-19 23:32 ` Nagendra Tomar [this message]
2007-09-19 23:11 ` Davide Libenzi
2007-09-19 23:50 ` Nagendra Tomar
2007-09-20 5:43 ` Davide Libenzi
2007-09-20 6:11 ` Eric Dumazet
2007-09-20 8:02 ` Nagendra Tomar
2007-09-20 17:56 ` Davide Libenzi
2007-09-20 22:24 ` Nagendra Tomar
2007-09-20 17:42 ` Davide Libenzi
2007-09-20 22:09 ` Nagendra Tomar
2007-09-20 22:37 ` Davide Libenzi
2007-09-20 22:58 ` Nagendra Tomar
2007-09-21 17:45 ` 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=608569.12944.qm@web53702.mail.re2.yahoo.com \
--to=tomer_iisc@yahoo.com \
--cc=davem@davemloft.net \
--cc=davidel@xmailserver.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@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).