[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFym-dM37xtvKjddMheSV9vPUq=tnN9FoFvEgD0QWW22sg@mail.gmail.com>
Date: Mon, 7 Sep 2015 13:22:13 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Jesper Dangaard Brouer <brouer@...hat.com>
Cc: Dave Chinner <dchinner@...hat.com>,
Mike Snitzer <snitzer@...hat.com>,
Christoph Lameter <cl@...ux.com>,
Pekka Enberg <penberg@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
"dm-devel@...hat.com" <dm-devel@...hat.com>,
Alasdair G Kergon <agk@...hat.com>,
Joe Thornber <ejt@...hat.com>,
Mikulas Patocka <mpatocka@...hat.com>,
Vivek Goyal <vgoyal@...hat.com>,
Sami Tolvanen <samitolvanen@...gle.com>,
Viresh Kumar <viresh.kumar@...aro.org>,
Heinz Mauelshagen <heinzm@...hat.com>,
linux-mm <linux-mm@...ck.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: slab-nomerge (was Re: [git pull] device mapper changes for 4.3)
On Mon, Sep 7, 2015 at 2:30 AM, Jesper Dangaard Brouer
<brouer@...hat.com> wrote:
>
> The slub allocator have a faster "fastpath", if your workload is
> fast-reusing within the same per-cpu page-slab, but once the workload
> increases you hit the slowpath, and then slab catches up. Slub looks
> great in micro-benchmarking.
>
> And with "slab_nomerge" I get even high performance:
I think those two are related.
Not merging means that effectively the percpu caches end up being
bigger (simply because there are more of them), and so it captures
more of the fastpath cases.
Obviously the percpu queue size is an easy tunable too, but there are
real downsides to that too. I suspect your IP forwarding case isn't so
different from some of the microbenchmarks, it just has more
outstanding work..
And yes, the slow path (ie not hitting in the percpu cache) of SLUB
could hopefully be optimizable too, although maybe the bulk patches
are the way to go (and unrelated to this thread - at least part of
your bulk patches actually got merged last Friday - they were part of
Andrew's patch-bomb).
Linus
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists