Re: Reading /proc/slabinfo causes stalls
From: Christoph Lameter
Date: Tue Oct 16 2012 - 14:29:11 EST
On Tue, 16 Oct 2012, Pekka Enberg wrote:
> > Is this a known condition? Are there work arounds or other ways to get the
> > slab allocation data which don't cause stalls?
> What kernel version are you using? What does your .config look like?
slabinfo access requires a mutex which will stall certain slab operations
(shrinking caches, retuning caches, cleaning caches in SLAB).
If the allocator is SLAB then I would think that this is a stall of
slabinfo mutex vs. slab clean operations (gets more frequent the more
processors are in the box).
If this is the case then using the SLUB allocator will fix the issue since
SLUB does not need to perform cache cleaning.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/