Re: [PATCH 2/2] slab.h: sprinkle __assume_aligned attributes

2015-10-02 Thread Christoph Lameter
On Fri, 2 Oct 2015, Rasmus Villemoes wrote: > The various allocators return aligned memory. Telling the compiler > that allows it to generate better code in many cases, for example when > the return value is immediately passed to memset(). Looks good. Acked-by: Christoph Lameter -- To unsubsc

[PATCH 2/2] slab.h: sprinkle __assume_aligned attributes

2015-10-02 Thread Rasmus Villemoes
The various allocators return aligned memory. Telling the compiler that allows it to generate better code in many cases, for example when the return value is immediately passed to memset(). Some code does become larger, but at least we win twice as much as we lose: $ scripts/bloat-o-meter /tmp/vm