Re: [patch][rfc] acpi: do not use kmem caches

Christoph Lameter
2008-12-01T18:09:33Z

On Mon, 1 Dec 2008, Alexey Starikovskiy wrote:

> > Though I suspect this situation could be improved by avoiding those
> > fairly big unions ACPI does (like union acpi_operand_object).
> >
> No, last time I checked, operand may get down to 16 bytes in 32-bit case --
> save byte by having 3 types of operands... and making 2 more caches :)

SLAB has a minimum allocation size of 32 bytes so it would not make a
difference there.

SLUB can go down to 8 bytes which would enable you to save more. Adding
new caches most of the time simply lead to incrementing a counter in
a similar kmem_cache structure.