Re: [PATCH 3/5] slab.c: remove branch hint
From: Christoph Lameter <hidden>
Date: 2009-11-30 16:10:06
Also in:
lkml
From: Christoph Lameter <hidden>
Date: 2009-11-30 16:10:06
Also in:
lkml
On Mon, 30 Nov 2009, Pekka Enberg wrote:
OK, so it's the generic alloc_skb() function that keeps hitting kmem_cache_alloc_node() with "-1". Christoph, are you okay with removing the unlikely() annotation from __cache_alloc_node()?
Yes. Lets look for other cases in the allocators too. kmem_cache_alloc_node used to be mainly used for off node allocations but the network alloc_skb() case shows that this is changing now. I hope the users of kmem_cache_alloc_node() realize that using -1 is not equivalent to kmem_cache_alloc(). kmem_cache_alloc follows numa policies for memory allocations. kmem_cache_alloc_node() does not.