Re: slab redzoning
From: Manfred Spraul
Date: Sat May 22 2004 - 03:05:04 EST
William Lee Irwin III wrote:
-if ((size < 4096 || fls(size-1) == fls(size-1+3*BYTES_PER_WORD)))
+if (size + 3*BYTES_PER_WORD <= PAGE_SIZE ||
I understand this change: objects between 4082 and 4095 bytes are
redzoned and cause order==1 allocations, that's wrong.
+ ((size & (size - 1)) &&
+ (1 << fls(size)) - size > 3*BYTES_PER_WORD))
Why this change? I've tested my fls(size-1)==fls(size-1-3*4) approach
and it always returned the right result: No redzoning between 8181 and
8192 bytes, between 16373 and 16384, etc.
--
Manfred
-
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/