Re: [PATCH 1/4] mm: Move ARCH_SLAB_MINALIGN and ARCH_KMALLOC_MINALIGN to

2010-05-20 Thread Manfred Spraul
On 05/19/2010 08:10 PM, David Woodhouse wrote: * Unless debug options are enabled, the kernel uses cache_line_size() automatically. ... that's a lie. You are right, I didn't notice that there are now 8 and 16-byte kmalloc caches. Apart from that: KMALLOC_FLAGS is SLAB_HWCACHE_ALIG

Re: [PATCH 1/4] mm: Move ARCH_SLAB_MINALIGN and ARCH_KMALLOC_MINALIGN to

2010-05-19 Thread Manfred Spraul
On 05/19/2010 03:30 PM, Johannes Stezenbach wrote: Hi, I have some comments/questions, I hope it's not too silly: On Wed, May 19, 2010 at 12:01:42PM +0100, David Woodhouse wrote: +#ifndef ARCH_KMALLOC_MINALIGN +/* + * Enforce a minimum alignment for the kmalloc caches. + * Usually, the kma