From: Heath Caldwell <hcaldwel@akamai.com>
To: Eric Dumazet <edumazet@google.com>
Cc: netdev <netdev@vger.kernel.org>,
Yuchung Cheng <ycheng@google.com>, Josh Hunt <johunt@akamai.com>,
Ji Li <jli@akamai.com>
Subject: Re: [PATCH net-next 4/4] tcp: remove limit on initial receive window
Date: Tue, 12 Jan 2021 12:43:21 -0800 [thread overview]
Message-ID: <24574.2537.621032.690850@gargle.gargle.HOWL> (raw)
In-Reply-To: <CANn89iJWkgkF+kKDFnqAO9oMMziZGPe_QYMJvx80AbbTfQFQmQ@mail.gmail.com>
On 2021-01-12 21:26 (+0100), Eric Dumazet <edumazet@google.com> wrote:
> On Tue, Jan 12, 2021 at 8:25 PM Heath Caldwell <hcaldwel@akamai.com> wrote:
> >
> > On 2021-01-12 18:05 (+0100), Eric Dumazet <edumazet@google.com> wrote:
> > > On Tue, Jan 12, 2021 at 5:02 PM Heath Caldwell <hcaldwel@akamai.com> wrote:
> > > >
> > > > On 2021-01-12 09:30 (+0100), Eric Dumazet <edumazet@google.com> wrote:
> > > > > I think the whole patch series is an attempt to badly break TCP stack.
> > > >
> > > > Can you explain the concern that you have about how these changes might
> > > > break the TCP stack?
> > > >
> > > > Patches 1 and 3 fix clear bugs.
> > >
> > > Not clear to me at least.
> > >
> > > If they were bug fixes, a FIxes: tag would be provided.
> >
> > The underlying bugs that are addressed in patches 1 and 3 are present in
> > 1da177e4c3f4 ("Linux-2.6.12-rc2") which looks to be the earliest parent
> > commit in the repository. What should I do for a Fixes: tag in this
> > case?
> >
> > > You are a first time contributor to linux TCP stack, so better make
> > > sure your claims are solid.
> >
> > I fear that I may not have expressed the problems and solutions in a
> > manner that imparted the ideas well.
> >
> > Maybe I added too much detail in the description for patch 1, which may
> > have obscured the problem: val is capped to sysctl_rmem_max *before* it
> > is doubled (resulting in the possibility for sk_rcvbuf to be set to
> > 2*sysctl_rmem_max, rather than it being capped at sysctl_rmem_max).
>
> This is fine. This has been done forever. Your change might break applications.
In what way might applications be broken?
It seems to be a very strange position to allow a configured maximum to
be violated because of obscure precedent.
It does not seem to be a supportable position to allow an application to
violate an installation's configuration because of a chance that the
application may behave differently if a setsockopt() call fails. What
if a system administrator decides to reduce sysctl_rmem_max to half of
the current default?
> I would advise documenting this fact, since existing behavior will be kept
> in many linux hosts for years to come.
>
> >
> > Maybe I was not explicit enough in the description for patch 3: space is
> > expanded into sock_net(sk)->ipv4.sysctl_tcp_rmem[2] and sysctl_rmem_max
> > without first shrinking them to discount the overhead.
> >
> > > > Patches 2 and 4 might be arguable, though.
> > >
> > > So we have to pick up whatever pleases us ?
> >
> > I have been treating all of these changes together because they all kind
> > of work together to provide a consistent model and configurability for
> > the initial receive window.
> >
> > Patches 1 and 3 address bugs.
>
> Maybe, but will break applications.
How might patch 3 break an application? It merely will reduce the
window scale value to something lower but still capable of representing
the largest window that a particular connection might advertise.
> > Patch 2 addresses an inconsistency in how overhead is treated specially
> > for TCP sockets.
> > Patch 4 addresses the 64KB limit which has been imposed.
>
> For very good reasons.
What are the reasons?
> This is going nowhere. I will stop right now.
That is a shame :(.
next prev parent reply other threads:[~2021-01-12 21:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-11 22:24 [PATCH net-next 0/4] Fix receive window restriction Heath Caldwell
2021-01-11 22:24 ` [PATCH net-next 1/4] net: account for overhead when restricting SO_RCVBUF Heath Caldwell
2021-01-11 22:24 ` [PATCH net-next 2/4] net: tcp: consistently account for overhead for SO_RCVBUF for TCP Heath Caldwell
2021-01-11 22:24 ` [PATCH net-next 3/4] tcp: consistently account for overhead in rcv_wscale calculation Heath Caldwell
2021-01-11 22:24 ` [PATCH net-next 4/4] tcp: remove limit on initial receive window Heath Caldwell
2021-01-12 8:30 ` Eric Dumazet
2021-01-12 16:02 ` Heath Caldwell
2021-01-12 17:05 ` Eric Dumazet
2021-01-12 19:25 ` Heath Caldwell
2021-01-12 20:26 ` Eric Dumazet
2021-01-12 20:43 ` Heath Caldwell [this message]
2021-01-12 20:56 ` Eric Dumazet
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=24574.2537.621032.690850@gargle.gargle.HOWL \
--to=hcaldwel@akamai.com \
--cc=edumazet@google.com \
--cc=jli@akamai.com \
--cc=johunt@akamai.com \
--cc=netdev@vger.kernel.org \
--cc=ycheng@google.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