[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20141028.005642.1332691629979036817.davem@davemloft.net>
Date: Tue, 28 Oct 2014 00:56:42 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: edumazet@...gle.com
Cc: cl@...ux.com, brouer@...hat.com, eric.dumazet@...il.com,
alexander.duyck@...il.com, ast@...mgrid.com, netdev@...r.kernel.org
Subject: Re: irq disable in __netdev_alloc_frag() ?
From: Eric Dumazet <edumazet@...gle.com>
Date: Mon, 27 Oct 2014 19:46:20 -0700
> Unfortunately, SLUB is more expensive than SLAB for many networking
> workloads.
>
> The cost of disabling interrupts is pure noise compared to cache
> line misses.
>
> SLUB has poor behavior compared to SLAB with alien caches, even with
> the side effect that 'struct page' is 64 bytes aligned instead of
> being 56 bytes with SLAB
And SLAB completely shits itself when lots of memory gets cached up on
a foreign node.
This discussion has happened many times, SLAB may be faster when things
work out nicely, but it acts poorly wrt. keeping foreign memory from
being cached too aggressively.
And there is a cost for that, which is that foreign memory has to be
properly balanced back to it's home node.
--
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