From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752075AbbIZJhX (ORCPT ); Sat, 26 Sep 2015 05:37:23 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:4590 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751871AbbIZJhV (ORCPT ); Sat, 26 Sep 2015 05:37:21 -0400 X-IronPort-AV: E=Sophos;i="5.15,520,1432569600"; d="scan'208";a="101127539" Message-ID: <560666EA.7090109@cn.fujitsu.com> Date: Sat, 26 Sep 2015 17:35:38 +0800 From: Tang Chen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Christoph Lameter , Tejun Heo CC: , , , , , , , , , , , , , , , , Gu Zheng Subject: Re: [PATCH v2 3/7] x86, gfp: Cache best near node for memory allocation. References: <1441859269-25831-1-git-send-email-tangchen@cn.fujitsu.com> <1441859269-25831-4-git-send-email-tangchen@cn.fujitsu.com> <20150910192935.GI8114@mtj.duckdns.org> <20150910193819.GJ8114@mtj.duckdns.org> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Christoph, tj, On 09/11/2015 08:14 AM, Christoph Lameter wrote: > On Thu, 10 Sep 2015, Tejun Heo wrote: > >>> Why not just update node_data[]->node_zonelist in the first place? >>> Also, what's the synchronization rule here? How are allocators >>> synchronized against node hot [un]plugs? >> Also, shouldn't kmalloc_node() or any public allocator fall back >> automatically to a near node w/o GFP_THISNODE? Why is this failing at >> all? I get that cpu id -> node id mapping changing messes up the >> locality but allocations shouldn't fail, right? Yes. That is the reason we are getting near online node here. > Yes that should occur in the absence of other constraints (mempolicies, > cpusets, cgroups, allocation type). If the constraints do not allow an > allocation then the allocation will fail. > > Also: Are the zonelists setup the right way? zonelist will be rebuilt in __offline_pages() when the zone is not populated any more. Thanks.