[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

slab allocator



I finished a poor man's slab allocator.  Since pool(9) more or less does
what slab(9) would do, it's more of a wrapper than a reimplemented
allocator.  It provides an interface that's a cross between Bonwick's
paper and pool.

Nothing uses it at present, because most consumers of pool(9) are mixing
static and dynamic initialization, which won't work with slab.  It's also
not interrupt safe because nearly all potential consumers seem to be using
pool_alloc_nointr already.  This isn't really useful yet, but maybe uses
will be found if it's available.  I considered converting some pool uses
to slab, but didn't find anything ideal.

tarball is available at http://www.stanford.edu/~tedu/slab.tgz


--
"I promise you a police car on every sidewalk."
      - M. Barry, Mayor of Washington, DC