Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752960AbZK3QKG (ORCPT ); Mon, 30 Nov 2009 11:10:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752794AbZK3QKE (ORCPT ); Mon, 30 Nov 2009 11:10:04 -0500 Received: from nlpi157.sbcis.sbc.com ([207.115.36.171]:38324 "EHLO nlpi157.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752359AbZK3QKC (ORCPT ); Mon, 30 Nov 2009 11:10:02 -0500 Date: Mon, 30 Nov 2009 10:09:39 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@router.home To: Pekka Enberg cc: Tim Blechmann , Ingo Molnar , linux-kernel@vger.kernel.org, Nick Piggin , davem@davemloft.net, netdev@vger.kernel.org Subject: Re: [PATCH 3/5] slab.c: remove branch hint In-Reply-To: <4B138AC2.7080008@cs.helsinki.fi> Message-ID: References: <4B0BBBA8.2090604@klingt.org> <20091124112058.GA23765@elte.hu> <84144f020911240328l3d36d347o6c91b2b1a0f50f2a@mail.gmail.com> <4B125CC2.7000202@klingt.org> <4B138AC2.7080008@cs.helsinki.fi> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 24 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/