slab: Add the magazine and depot layers
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 7 Nov 2016 13:25:41 +0000 (08:25 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Nov 2016 16:27:40 +0000 (11:27 -0500)
commit4d9ff837b91c61a861a31dbe50f6835d1aaaf977
treec3a4e9c76f0788561ee3efb4d5d17f5c14157ae4
parentf4d34bd9f1fc1b4b2fdd8b06e2aa4db5c3fbde5a
slab: Add the magazine and depot layers

This is the per-cpu caching layer, which should increase scalability at
the cost of RAM.  The per-core 2x magazines aren't free, and the objects
in those magazines are harder to reclaim.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/slab.h
kern/src/slab.c