Re: Page allocator: Single Zone optimizations

Andi Kleen
2006-11-03T22:19:53Z

> This has to do with the constructors and the destructors. They are only
> applied during the first allocation or the final deallocation of the slab.

It's pretty much obsolete though - nearly nobody uses constructors/destructors.
And the few uses left over are useless to avoid cache misses
and could as well be removed.

Long ago i fixed some code to use constructors and made sure it carefully
avoided some cache misses in the hot path, but typically when people change
anything later they destroy that. It's just not maintainable.

I would vote for just getting rid of slab constructors/destructors.

-Andi