Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2257870imu; Sun, 18 Nov 2018 19:51:51 -0800 (PST) X-Google-Smtp-Source: AJdET5dSD2riA5Vt6hqV0BvsCAdxSctXFs80zhFZQlJCoSmPtxh02et2ZLB9FO6YL8eA2lZ5UX8t X-Received: by 2002:a63:451a:: with SMTP id s26mr18778273pga.150.1542599511703; Sun, 18 Nov 2018 19:51:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542599511; cv=none; d=google.com; s=arc-20160816; b=fk2W6p77Q75Z0W+bp5ZY/98eetZwZBcnJZb6uj7GGqpXl+gHCWbjLv9H2dHgIfSrno ndBDaIW0ImYIHYqCF5hKn9AU+Dy4Xdma+Jr2J2IMZpskN9tOwxSvBIlECjkqGArE4H5R zyZG/oHDa14WSpcOT//o7bmwMdm1cQ87Pua8Koa9APjpiX3LKadjz4EdOqCnLC5oZG4m H/XNCG4q9fhQlydEGR5cUpc65iIpVohyKmx04J4iZcTtLzx/yFxJNZNrc7FjIWRSPndd wSKKCFA4M1HIz5cKHnGCNjosSBGJ6ylGhJeb5tsAEo7lImZq17XwxDLJ+6OxA1q++F3z hthw== 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=pxljMhKH4nGA1h4RWllW22cc0zbeNYdglTPn/9/Eflw=; b=yzaikT+8AtfwPzinFvIlW7s2f0buBA1f3vKJIIQB8hfYQEcC/+XAWeEIkB9F3vvqEW lm2WivOpDSCAQALqo7g0eqwaH7V9/fWvvTzb3YzQKJUyTh+/bXCBq42xGlAbAtwlIEnr djfLnK5qFagVHOXwCnLIOy9OkFDmO+T+LQ8d4GkFUw2xaGmumJt/bTIdnzSa1H1SzGZn hGGCDrcYhcn3GWknbCxeOB3NIrdX2+MtJSpN4nJs80GBbBIMKTgnUbb58qIysQNjJgj1 3o3ncif3Ez1FuEY/NMFSYbDyxuSqDRhNSlDEMSsR1Z0d5NewhwE9YZWIzVSKavGriuG/ j/Wg== 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 2-v6si14012462pfq.129.2018.11.18.19.51.36; Sun, 18 Nov 2018 19:51:51 -0800 (PST) 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 S1728173AbeKSN04 (ORCPT + 99 others); Mon, 19 Nov 2018 08:26:56 -0500 Received: from foss.arm.com ([217.140.101.70]:50056 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726975AbeKSN04 (ORCPT ); Mon, 19 Nov 2018 08:26:56 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8609880D; Sun, 18 Nov 2018 19:04:45 -0800 (PST) Received: from [10.162.0.72] (unknown [10.162.0.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F22613F5A0; Sun, 18 Nov 2018 19:04:42 -0800 (PST) Subject: Re: [PATCH 1/7] node: Link memory nodes to their compute nodes To: Dan Williams , Keith Busch Cc: Matthew Wilcox , Linux Kernel Mailing List , Linux ACPI , Linux MM , Greg KH , "Rafael J. Wysocki" , Dave Hansen References: <20181114224921.12123-2-keith.busch@intel.com> <20181115135710.GD19286@bombadil.infradead.org> <20181115145920.GG11416@localhost.localdomain> From: Anshuman Khandual Message-ID: <55e5a20e-4267-cb1d-959b-6068ebbd64b1@arm.com> Date: Mon, 19 Nov 2018 08:34:42 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: 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 11/15/2018 11:20 PM, Dan Williams wrote: > On Thu, Nov 15, 2018 at 7:02 AM Keith Busch wrote: >> >> On Thu, Nov 15, 2018 at 05:57:10AM -0800, Matthew Wilcox wrote: >>> On Wed, Nov 14, 2018 at 03:49:14PM -0700, Keith Busch wrote: >>>> Memory-only nodes will often have affinity to a compute node, and >>>> platforms have ways to express that locality relationship. >>>> >>>> A node containing CPUs or other DMA devices that can initiate memory >>>> access are referred to as "memory iniators". A "memory target" is a >>>> node that provides at least one phyiscal address range accessible to a >>>> memory initiator. >>> >>> I think I may be confused here. If there is _no_ link from node X to >>> node Y, does that mean that node X's CPUs cannot access the memory on >>> node Y? In my mind, all nodes can access all memory in the system, >>> just not with uniform bandwidth/latency. >> >> The link is just about which nodes are "local". It's like how nodes have >> a cpulist. Other CPUs not in the node's list can acces that node's memory, >> but the ones in the mask are local, and provide useful optimization hints. >> >> Would a node mask would be prefered to symlinks? > > I think that would be more flexible, because the set of initiators > that may have "best" or "local" access to a target may be more than 1. Right. The memory target should have two nodemasks (for now at least). One enumerating which initiator nodes can access the memory coherently and the other one which are nearer and can benefit from local allocation.