Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2327974imu; Thu, 10 Jan 2019 12:11:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN7dGRLoTSft5jXfkcG0Nb7TNcRs7exzlnLTTjo0AJxWyY9rVW7yRz3onYjYOLmDelgWGNYT X-Received: by 2002:a17:902:f64:: with SMTP id 91mr11670777ply.132.1547151067400; Thu, 10 Jan 2019 12:11:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547151067; cv=none; d=google.com; s=arc-20160816; b=ud9W+uc275Nnh3WdS00bm7FdFn/+QjFecoS0LIyuxkfwZBw6es8IhBY1xriSGwgUiZ 2+/TAaIMe0FTayUs7Y6Mz0Pl/aYKJQuRuUE0mrndGBZKSnMHB9Hi11hbeji6NrLaGyrS lxZQj9Q6t2Nc/KD51P9Is0b04PdVhugMRZsoslnvmXF8TKSVHt2H4ewfkH9K1UzK0RkM IGSGg7KSWG/aR3SNqq7nxcrXxYH03s3urp3SXfPcol6n5pOkkZRg2fW4n3qgnFAyJC6h 9zSLM77NZDbzEflshKJYzFoLNQFkXkQ7VGumqS1KB4rsNd3WGhiE7s6BkByfzP5wC0TJ ZZaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YVokJ1cwtx8ytjEZUtmO3JBjyV8Gy/r9nIlrQRGaiZY=; b=eSnvyXCKHkSIyu5El41jJBnUc+EuPSzmqDsyXsJY4jmB8ZegDii7uXcGFWEPG4Pbyv dKMsRog2t2uOCWGPmez5BqeW3bBHE6dFUaVZeBzh01GRAk4nolzcmn8OgK3QtHAGfr1L TT/V+MlNW/x1gDqGXLgTOM9BPWI8ChUKnx7nw4lw66Un8BTYvquyNJsbNSzYOFrd2U1V wrLMHg3rj0uImoh6pi2zu4cHQEK5OghrlT+hr4DTqHjOQFbQ+VHgWaNMrMbUhDnOexo8 VneXHrAWXdsi0plhNo0/tdpx/X78gPOPfS+4cBRE7/Jmwr+0PQQ2wpB2Ae/E9vIRX8BI tuyQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si15789721plc.40.2019.01.10.12.10.52; Thu, 10 Jan 2019 12:11:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730166AbfAJRbp (ORCPT + 99 others); Thu, 10 Jan 2019 12:31:45 -0500 Received: from mga01.intel.com ([192.55.52.88]:27139 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729799AbfAJRbp (ORCPT ); Thu, 10 Jan 2019 12:31:45 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jan 2019 09:31:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,462,1539673200"; d="scan'208";a="117118339" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga003.jf.intel.com with ESMTP; 10 Jan 2019 09:31:43 -0800 Date: Thu, 10 Jan 2019 10:30:17 -0700 From: Keith Busch To: "Aneesh Kumar K.V" Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen , Dan Williams Subject: Re: [PATCHv3 07/13] node: Add heterogenous memory access attributes Message-ID: <20190110173016.GC21095@localhost.localdomain> References: <20190109174341.19818-1-keith.busch@intel.com> <20190109174341.19818-8-keith.busch@intel.com> <87y37sit8x.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y37sit8x.fsf@linux.ibm.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 10, 2019 at 06:07:02PM +0530, Aneesh Kumar K.V wrote: > Keith Busch writes: > > > Heterogeneous memory systems provide memory nodes with different latency > > and bandwidth performance attributes. Provide a new kernel interface for > > subsystems to register the attributes under the memory target node's > > initiator access class. If the system provides this information, applications > > may query these attributes when deciding which node to request memory. > > > > The following example shows the new sysfs hierarchy for a node exporting > > performance attributes: > > > > # tree -P "read*|write*" /sys/devices/system/node/nodeY/classZ/ > > /sys/devices/system/node/nodeY/classZ/ > > |-- read_bandwidth > > |-- read_latency > > |-- write_bandwidth > > `-- write_latency > > > > The bandwidth is exported as MB/s and latency is reported in nanoseconds. > > Memory accesses from an initiator node that is not one of the memory's > > class "Z" initiator nodes may encounter different performance than > > reported here. When a subsystem makes use of this interface, initiators > > of a lower class number, "Z", have better performance relative to higher > > class numbers. When provided, class 0 is the highest performing access > > class. > > How does the definition of performance relate to bandwidth and latency here?. The > initiator in this class has the least latency and high bandwidth? Can there > be a scenario where both are not best for the same node? ie, for a > target Node Y, initiator Node A gives the highest bandwidth but initiator > Node B gets the least latency. How such a config can be represented? Or is > that not possible? I am not aware of a real platform that has an initiator-target pair with better latency but worse bandwidth than any different initiator paired to the same target. If such a thing exists and a subsystem wants to report that, you can register any arbitrary number of groups or classes and rank them according to how you want them presented.