Re: [PATCH 2/2] SLUB: increase the range of slab sizes available tokmalloc, allowing a somewhat more effient use of memory.
From: Christoph Lameter
Date: Mon Oct 15 2012 - 16:45:44 EST
On Sat, 13 Oct 2012, Richard Kennedy wrote:
> -extern struct kmem_cache *kmalloc_caches[SLUB_PAGE_SHIFT];
>
> -/*
> - * Sorry that the following has to be that ugly but some versions of GCC
> - * have trouble with constant propagation and loops.
> +static const short __slab_sizes[] = {0, 8, 12, 16, 24, 32, 48, 64, 96,
> + 128, 192, 256, 384, 512, 768, 1024,
> + 1536, 2048, 3072, 4096, 6144, 8192};
> +
Urg. No thanks. What is the exact benefit of this patch?
--
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/