Re: [PATCH] slab leak detector (Was: Size-128 slab leak)

From: Pekka Enberg
Date: Fri Feb 03 2006 - 06:51:31 EST


Andrew Morton wrote:
> > Which slabs are those? SLAB_HWCACHE_ALIGN? If so, that's quite a lot of
> > them (more than needed, probably).

On 2/3/06, Manfred Spraul <manfred@xxxxxxxxxxxxxxxx> wrote:
> Slabs with 4 kB or larger objects.

Hmm. The relevant check is:

if ((size < 4096
|| fls(size - 1) == fls(size - 1 + 3 * BYTES_PER_WORD)))

So for example, when object size is 4097, we _will_ get redzoning.
Shouldn't that be 5 * BYTES_PER_WORD btw?

Pekka
-
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/