Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2251603imu; Sun, 18 Nov 2018 19:40:51 -0800 (PST) X-Google-Smtp-Source: AJdET5di6asoGjVUI/Yh6CXOaf+g0yidhExcsJHloviCctB6aCDULBMkUWWqL4QlZO3gkPGjmGLC X-Received: by 2002:a17:902:6948:: with SMTP id k8mr16394720plt.2.1542598851502; Sun, 18 Nov 2018 19:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542598851; cv=none; d=google.com; s=arc-20160816; b=cc7TE/acC1FYE6Tp2EWMLIUa3R5MMuYlGk/lTxgJJIQsDlPvhuLHCfch+TEYA+V6Hf epzScQ2b8Ga0f/sX/B9qHc4kufbzXK8xkEzd2M8wkeBJHe62/MgEJ2fzM3ezAIB4xf0a yyGve+A5GZ567HZEuqNTrwOGW7DwCuqv8IxipwCTrKJCrz7NcOin1sK9q+ecB1rs/7A/ WHe1nivfYid/Eioo/EKMmj+LnVihgVre/NE4tkKyPBhzxNL6I4DyR1O6cwWDyRetCpVZ 91DK+My1zKnXfuQsuY/xQtVgdSbeoYIlH/dkyTG4jroHJjeDxqdqdCgpV4X8n/5kFTui AJag== 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=GmqXhwiupqFAnhkaZWiDs6ybOrOwbKG9OktQCpYPKTE=; b=Jz54tB+rCJkdec0onV4DsXjL8rO+CRshpBGM2dHzkT5GzG3kKN9UIMCwo2YaLvmHfx v3W/2F8RakqJO3scfIzxi7om6CxWuvywAm2KNg0PHBoWSsXg+KW5NiFiKDwd/LUi4hYA kh2YGWh4rk2+gGqkuu+PBeFjwXFUIDdWLxCPvKZUJAelf/0Amk5tHFSwyNcKmo8OBtLY IqnbjJgQG8HtcwVNpIuK/KeQJP96al2A4rA3Q36TRaCSFgsOLq3ouEiTIGV9gZPmuUDl DFgKrB1E+fjMe6s3jMjnrXSsIjR4cOp0LCZIkb+9NAkj/c9KJBYVhJFBpoSkl0csT+H5 XJTQ== 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 g2si9256159pgk.497.2018.11.18.19.40.36; Sun, 18 Nov 2018 19:40: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 S1728418AbeKSN5Y (ORCPT + 99 others); Mon, 19 Nov 2018 08:57:24 -0500 Received: from foss.arm.com ([217.140.101.70]:50214 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727816AbeKSN5Y (ORCPT ); Mon, 19 Nov 2018 08:57:24 -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 5B5F41596; Sun, 18 Nov 2018 19:35:10 -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 0D61F3F5A0; Sun, 18 Nov 2018 19:35:07 -0800 (PST) Subject: Re: [PATCH 2/7] node: Add heterogenous memory performance 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 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 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: <20181114224921.12123-3-keith.busch@intel.com> 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 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.