From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) by kanga.kvack.org (Postfix) with ESMTP id 15D866B1853 for ; Sun, 18 Nov 2018 22:35:12 -0500 (EST) Received: by mail-ot1-f69.google.com with SMTP id 32so14838084ots.15 for ; Sun, 18 Nov 2018 19:35:12 -0800 (PST) Received: from foss.arm.com (foss.arm.com. [217.140.101.70]) by mx.google.com with ESMTP id o21si10261216ote.13.2018.11.18.19.35.10 for ; Sun, 18 Nov 2018 19:35:10 -0800 (PST) Subject: Re: [PATCH 2/7] node: Add heterogenous memory performance References: <20181114224921.12123-2-keith.busch@intel.com> <20181114224921.12123-3-keith.busch@intel.com> From: Anshuman Khandual Message-ID: <91369e94-d389-7cb9-6274-f46c9ec779d3@arm.com> Date: Mon, 19 Nov 2018 09:05:07 +0530 MIME-Version: 1.0 In-Reply-To: <20181114224921.12123-3-keith.busch@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Keith Busch , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org Cc: Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen , Dan Williams On 11/15/2018 04:19 AM, Keith Busch wrote: > Heterogeneous memory systems provide memory nodes with latency > and bandwidth performance attributes that are different from other > nodes. Create an interface for the kernel to register these attributes There are other properties like power consumption, reliability which can be associated with a particular PA range. Also the set of properties has to be extensible for the future. > under the node that provides the memory. If the system provides this > information, applications can query the node attributes when deciding > which node to request memory. Right but each (memory initiator, memory target) should have these above mentioned properties enumerated to have an 'property as seen' from kind of semantics. > > When multiple memory initiators exist, accessing the same memory target > from each may not perform the same as the other. The highest performing > initiator to a given target is considered to be a local initiator for > that target. The kernel provides performance attributes only for the > local initiators. As mentioned above the interface must enumerate a future extensible set of properties for each (memory initiator, memory target) pair available on the system. > > The memory's compute node should be symlinked in sysfs as one of the > node's initiators. Right. IIUC the first patch skips the linking process of for two nodes A and B if (A == B) preventing association to local memory initiator.