Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754509Ab2JaHKE (ORCPT ); Wed, 31 Oct 2012 03:10:04 -0400 Received: from mail-ea0-f174.google.com ([209.85.215.174]:40431 "EHLO mail-ea0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751560Ab2JaHKA (ORCPT ); Wed, 31 Oct 2012 03:10:00 -0400 MIME-Version: 1.0 In-Reply-To: <1351071840-5060-3-git-send-email-laijs@cn.fujitsu.com> References: <1351071840-5060-1-git-send-email-laijs@cn.fujitsu.com> <1351071840-5060-3-git-send-email-laijs@cn.fujitsu.com> Date: Wed, 31 Oct 2012 09:09:58 +0200 X-Google-Sender-Auth: SUbKsWUthOCyaJI7HkHgTPzZBtI Message-ID: Subject: Re: [PATCH 2/2 V2] slub, hotplug: ignore unrelated node's hot-adding and hot-removing From: Pekka Enberg To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org, David Rientjes , Minchan Kim , KOSAKI Motohiro , Yasuaki Ishimatsu , Rob Landley , Andrew Morton , Jiang Liu , Kay Sievers , Greg Kroah-Hartman , Mel Gorman , FNST-Wen Congyang , linux-doc@vger.kernel.org, linux-mm@kvack.org, Christoph Lameter , Matt Mackall Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2068 Lines: 44 On Wed, Oct 24, 2012 at 12:43 PM, Lai Jiangshan wrote: > SLUB only fucus on the nodes which has normal memory, so ignore the other > node's hot-adding and hot-removing. > > Aka: if some memroy of a node(which has no onlined memory) is online, > but this new memory onlined is not normal memory(HIGH memory example), > we should not allocate kmem_cache_node for SLUB. > > And if the last normal memory is offlined, but the node still has memroy, > we should remove kmem_cache_node for that node.(current code delay it when > all of the memory is offlined) > > so we only do something when marg->status_change_nid_normal > 0. > marg->status_change_nid is not suitable here. > > The same problem doesn't exsit in SLAB, because SLAB allocates kmem_list3 > for every node even the node don't have normal memory, SLAB tolerates > kmem_list3 on alien nodes. SLUB only fucus on the nodes which has normal > memory, it don't tolerates alien kmem_cache_node, the patch makes > SLUB become self-compatible and avoid WARN and BUG in a rare condition. > > CC: David Rientjes > Cc: Minchan Kim > CC: KOSAKI Motohiro > CC: Yasuaki Ishimatsu > CC: Rob Landley > CC: Andrew Morton > CC: Jiang Liu > CC: Kay Sievers > CC: Greg Kroah-Hartman > CC: Mel Gorman > CC: 'FNST-Wen Congyang' > CC: linux-doc@vger.kernel.org > CC: linux-kernel@vger.kernel.org > CC: linux-mm@kvack.org > Signed-off-by: Lai Jiangshan The patch looks OK but changelog doesn't say what problem this fixes, how you found about it, and do we need this in stable. -- 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/