From: John Heffner <jheffner@psc.edu>
To: Dan Aloni <da-x@monatomic.org>
Cc: Linux Kernel List <linux-kernel@vger.kernel.org>,
"David S. Miller" <davem@davemloft.net>,
dror@xiv.co.il
Subject: Re: [TCP]: rcvbuf lock when tcp_moderate_rcvbuf enabled
Date: Thu, 23 Mar 2006 10:58:18 -0500 [thread overview]
Message-ID: <200603231058.18719.jheffner@psc.edu> (raw)
In-Reply-To: <20060323090441.GA8502@localdomain>
On Thursday 23 March 2006 04:04, Dan Aloni wrote:
> Hello,
>
> Below, I've forwarded change from 2.6.16 which I think may causes
> problems for applications that use setsockopt with SO_RCVBUF. We are
> using an implementation of an iSCSI target and according to network
> sniffs it seems that during data transfer the receive window
> unjustifyingly shrinks to a very low size (180 bytes). I can guess
> that the code below indirectly affects the receive window size, but
> I'm not sure how it the logic works here, a clarification could be
> helpful.
>
> It's worth to mention that we have sysctl_tcp_moderate_rcvbuf=1, but
> I don't think it should interfere with applications that request to
> have a fixed receive buffer by the means of setsockopt(). I can also
> tell by experiment that reverting the change below makes the problem
> go away.
It shouldn't, but it used to. That's exactly what this patch changes (making
tcp_moderate_rcvbuf *not* override the application's requested buffer size).
Is it possible the application isn't asking for enough buffer space, and that
the kernel was just automatically helping it before this patch went in?
-John
prev parent reply other threads:[~2006-03-23 15:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-23 9:04 Dan Aloni
2006-03-23 15:58 ` John Heffner [this message]
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=200603231058.18719.jheffner@psc.edu \
--to=jheffner@psc.edu \
--cc=da-x@monatomic.org \
--cc=davem@davemloft.net \
--cc=dror@xiv.co.il \
--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
Powered by JetHome