Hmmm.. Slab does cache-align the allocations, something that the original
code didn't try to do. The old kmalloc() tried to be space-efficient even
if it meant returning an allocation at even just a 4-byte boundary, which
might have been a mistake.
I don't think the colouring should matter - at least I've never really
seen any of that on my machines. But I've been playing with PPro's and
PII's, mostly, and I think they are all four-way - if you did your numbers
on a Pentium (no-MMX) it's only two-way set associative, and cache
colouring may be more of an issue for you.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html