mptcp.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Mat Martineau <mathew.j.martineau@linux.intel.com>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH v4 mptcp-next 1/4] mptcp: never fetch fwd memory from the subflow
Date: Wed, 22 Jun 2022 10:31:03 +0200	[thread overview]
Message-ID: <ed346da060754c2a9191b863e5dc622b3981bd0e.camel@redhat.com> (raw)
In-Reply-To: <372de32b-6ee8-c294-6b43-fde2dae1a46@linux.intel.com>

On Tue, 2022-06-21 at 15:46 -0700, Mat Martineau wrote:
> On Tue, 21 Jun 2022, Mat Martineau wrote:
> 
> > On Tue, 21 Jun 2022, Paolo Abeni wrote:
> > 
> > > The memory accounting is broken in such exceptional code
> > > path, and after commit 4890b686f408 ("net: keep sk->sk_forward_alloc
> > > as small as possible") we can't find much help there.
> > > 
> > > Drop the broken code.
> > > 
> > > Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> > > ---
> > 
> > Thanks Paolo, v4 looks good.
> > 
> 
> One more question Paolo: given the SCTP regression that was bisected to 
> the fwd alloc change:
> 
> https://lore.kernel.org/netdev/20220619150456.GB34471@xsang-OptiPlex-9020/
> 
> is there any need to wait before upstreaming this series for net-next? 

I'm guild-guessing 4890b686f408 could cause regressions (for TCP and as
as consequence for everything else using it) when cgroups are in use,
because after that patch the cgroup memory accounting hooks are called
~twice per packet (one to increase, one to decrease the cgroup
accounted memory), instead that almost never before that patch.

In any case we can't do much to counter such regression. 

I did some benchmarking on top of this patches, and I could not measure
relevant changes (but no cgroups enabled).

I'm not 110% sure that the regressions reported by LTP are relevant.
Once upon time I hit a quite large one, and it was actually due to test
instability.

I agree staging this changes for a bit will not hurt/will be for the
better.

Cheers,

Paolo




      reply	other threads:[~2022-06-22  8:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-21 16:27 [PATCH v4 mptcp-next 1/4] mptcp: never fetch fwd memory from the subflow Paolo Abeni
2022-06-21 16:27 ` [PATCH v4 mptcp-next 2/4] mptcp: drop SK_RECLAIM_* macros Paolo Abeni
2022-06-21 16:27 ` [PATCH v4 mptcp-next 3/4] mptcp: refine memory scheduling Paolo Abeni
2022-06-21 16:27 ` [PATCH v4 mptcp-next 4/4] net: remove SK_RECLAIM_THRESHOLD and SK_RECLAIM_CHUNK Paolo Abeni
2022-06-21 22:38   ` Mat Martineau
2022-06-22 21:09     ` Matthieu Baerts
2022-06-21 22:35 ` [PATCH v4 mptcp-next 1/4] mptcp: never fetch fwd memory from the subflow Mat Martineau
2022-06-21 22:46   ` Mat Martineau
2022-06-22  8:31     ` Paolo Abeni [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=ed346da060754c2a9191b863e5dc622b3981bd0e.camel@redhat.com \
    --to=pabeni@redhat.com \
    --cc=mathew.j.martineau@linux.intel.com \
    --cc=mptcp@lists.linux.dev \
    /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).