Re: Question on SLAB allocator.

From: Andi Kleen
Date: Sun Aug 19 2012 - 17:18:58 EST


Jean-Christophe DUBOIS <jcd@xxxxxxxxxxxxxxx> writes:

Slab supports constructors. Reusing state from freeing at next
allocation of the same type to optimize use of the CPU caches. The inode
cache among others use this.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
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/