netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: brouer@redhat.com
Cc: netdev@vger.kernel.org, mkubecek@suse.cz, fw@strlen.de,
	liujian56@huawei.com
Subject: Re: [PATCH net 0/2] net: revert lib/percpu_counter API for fragmentation mem accounting
Date: Sun, 03 Sep 2017 11:01:20 -0700 (PDT)	[thread overview]
Message-ID: <20170903.110120.230269539906979454.davem@davemloft.net> (raw)
In-Reply-To: <150425790711.22227.12264977619066874632.stgit@firesoul>

From: Jesper Dangaard Brouer <brouer@redhat.com>
Date: Fri, 01 Sep 2017 11:26:03 +0200

> There is a bug in fragmentation codes use of the percpu_counter API,
> that can cause issues on systems with many CPUs, above 24 CPUs.
> 
> After much consideration and different attempts at solving the API
> usage.  The conclusion is to revert to the simple atomic_t API instead.
> 
> The ratio between batch size and threshold size make it a bad use-case
> for the lib/percpu_counter API.  As using the correct API calls will
> unfortunately cause systems with many CPUs to always execute an
> expensive sum across all CPUs. Plus the added complexity is not worth it.

Series applied, thanks Jesper.

      parent reply	other threads:[~2017-09-03 18:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-01  9:26 [PATCH net 0/2] net: revert lib/percpu_counter API for fragmentation mem accounting Jesper Dangaard Brouer
2017-09-01  9:26 ` [PATCH net 1/2] Revert "net: use lib/percpu_counter API for fragmentation mem accounting" Jesper Dangaard Brouer
2017-09-01  9:30   ` Florian Westphal
2017-09-01  9:26 ` [PATCH net 2/2] Revert "net: fix percpu memory leaks" Jesper Dangaard Brouer
2017-09-03 18:01 ` David Miller [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=20170903.110120.230269539906979454.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=brouer@redhat.com \
    --cc=fw@strlen.de \
    --cc=liujian56@huawei.com \
    --cc=mkubecek@suse.cz \
    --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).