Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3794579ybh; Tue, 17 Mar 2020 06:45:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuJUzo1gOiNHfz0ss1pqsqR1wVyntFsFAnQPKvnNLfnBwD4XMD89kU9/g/k6vMP+hDKwwyP X-Received: by 2002:a9d:27c7:: with SMTP id c65mr3893716otb.318.1584452754727; Tue, 17 Mar 2020 06:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584452754; cv=none; d=google.com; s=arc-20160816; b=yHqy3HCnjtCLjOX6ReIwBnxwq/uooUEMbSOuiSoxvvB+gOjieRG7HNoB3NunIwdn8H PHlbAgs0+okulTp2uTZOMXYAPyE1pw83zMXjduXIIX0uscw51Qb6A1SN9iln8ZWV+SSs DyZb0uvssLZ+4xq5HQXhI0yhvWjZlUgsvJWhhhlpbPEsePcgX35DKx+xMM06/vZYUc2W 492Yk9kz802pJYVzVVdwraMJlW/9DBM1CLfTSkT0rOAOp7hWt+LWl9rJ3D0a0jQX8Zac CCHE960nlfMRGt/Vck8pLZTd3JTw1UXxfWZC2gUF2pqi4uJKyawWFVXBrxT+zpCqYYqA MHTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=qmpatySwpJC+4lgO4U40Ua5ao8fv4n2FmnlbcKRHPEc=; b=G76ThJYmtogxoXXwxsvY9Pg/e1RRyIj01oZDrHxtUknicFD06ewQvM5KEac5L82fzi Op33JqVbd26PSyks62z0UuY/LzKta66dGyVYoGYn6QYG/5WRUiZtGdmyMul915kyYDSM ifTgs4pnJ6Mw2/a+LuXMQUE1tNTAALD/9LPQTcSmzmTXOvvilevMA3viTERx+nErvmEF 8dRVingI0TJUKcAiRkmagzJbYgjDC1Fk/L80BP1cvePUPFl211kFABCa0MGnqSh3JMOA CtRXGw4AQavVBfWSmcXvh9RNE4ov8qdwMdiSE17n4ycfB0RinR0FrT/3maMZy6dheMxX Fj3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si1588366oie.153.2020.03.17.06.45.42; Tue, 17 Mar 2020 06:45:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726784AbgCQNot (ORCPT + 99 others); Tue, 17 Mar 2020 09:44:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:53900 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbgCQNot (ORCPT ); Tue, 17 Mar 2020 09:44:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 44F85AD1E; Tue, 17 Mar 2020 13:44:47 +0000 (UTC) Subject: Re: [PATCH 1/3] powerpc/numa: Set numa_node for all possible cpus To: Michal Hocko Cc: Srikar Dronamraju , Sachin Sant , Linus Torvalds , LKML , linux-mm@kvack.org, Mel Gorman , "Kirill A. Shutemov" , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Christopher Lameter , Joonsoo Kim , Kirill Tkhai References: <20200311110237.5731-1-srikar@linux.vnet.ibm.com> <20200311110237.5731-2-srikar@linux.vnet.ibm.com> <20200311115735.GM23944@dhcp22.suse.cz> <20200312052707.GA3277@linux.vnet.ibm.com> <5e5c736a-a88c-7c76-fc3d-7bc765e8dcba@suse.cz> <20200312131438.GB3277@linux.vnet.ibm.com> <61437352-8b54-38fa-4471-044a65c9d05a@suse.cz> <20200312161310.GC3277@linux.vnet.ibm.com> <20200316090652.GC11482@dhcp22.suse.cz> From: Vlastimil Babka Message-ID: <65b99db6-3bdf-6caa-74e5-6d6b681f16b5@suse.cz> Date: Tue, 17 Mar 2020 14:44:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200316090652.GC11482@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/16/20 10:06 AM, Michal Hocko wrote: > On Thu 12-03-20 17:41:58, Vlastimil Babka wrote: > [...] >> with nid present in: >> N_POSSIBLE - pgdat might not exist, node_to_mem_node() must return some online > > I would rather have a dummy pgdat for those. Have a look at > $ git grep "NODE_DATA.*->" | wc -l > 63 > > Who knows how many else we have there. I haven't looked more closely. > Besides that what is a real reason to not have pgdat ther and force all > users of a $random node from those that the platform considers possible > for special casing? Is that a memory overhead? Is that really a thing? I guess we can ignore memory overhead. I guess there only might be some concern that for nodes that are initially offline, we will allocate the pgdat on a different node, and after they are online, it will stay on a different node with more access latency from local cpus. If we only allocate for online nodes, it can always be local? But I guess it doesn't matter that much. > Somebody has suggested to tweak some of the low level routines to do the > special casing but I really have to say I do not like that. We shouldn't > use the first online node or anything like that. We should simply always > follow the topology presented by FW and of that we need to have a pgdat. >