Try out the slab allocator!

Matthew Dillon dillon at apollo.backplane.com
Wed Aug 27 00:09:53 PDT 2003


    It's all committed.  To try out the slab allocator you have to 
    compile up a kernel with two kernel config options:

    options	NO_KMEM_MAP
    options	USE_SLAB_ALLOCATOR

    I'm sure there will be some instability but I expect only minor issues
    will come up.  I was able to buildworld successfully on both my UP
    and my SMP test box.

    Just for yucks you can compare my slab allocator, which is
    kern/kern_slaballoc.c, against the FreeBSD-5 slab allocator which
    is (in FreeBSD-5) vm/uma_core.c and kern/kern_malloc.c.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Kernel mailing list