Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2058570imu; Thu, 17 Jan 2019 07:44:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4zByGN3pCXRL3CvUz52HPXv5xZD9xcVR6bwyf70xOjEjUJYO7K0kdvWs5oj7VMnSuzZtL8 X-Received: by 2002:a63:ea4f:: with SMTP id l15mr13659442pgk.102.1547739874072; Thu, 17 Jan 2019 07:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547739874; cv=none; d=google.com; s=arc-20160816; b=IVfq7bQfTrYDTDPNpvNvZU9Gb6MG/+ODKjK49YS67EXlW/iRISe7odovU9qDpUNXo9 KN/3fz4nK5pRTTfJZT4WU+bPsRDCzZTpIYGyo3KfjhkXg5S5xWrXzt0hOlH9xZlcNDfM 4QlpS9zbvAOHPV3xJGMhS6i7oq325B+VecG64hCc/fUXuLhJyUCOY/UwvCEtR/XWbcOk zrtV4NiTiD3XDFFoQChWjMbyaqttqULAIY4Tfgqlj5fQI3A+bMUz89tc1CZq+KfV7hv5 k2Ecv/baG92u0CH+S6H1frzwXIR0AwEGxaFbx8za6PcJdCKXQGQjFPSHv52RLM3bU9OB GE8A== 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:dkim-signature; bh=PAA6PAxbCW68SED1/GIc67WrJ1RRppBRiQJH89GfG5s=; b=OxXRwmyzCD5WyChuPhCscRMPjNcX6dITb2c8txCmwo1TPlZdHGxDNI25yOr6/rjz26 NxxP/hrXqaJbZvOGIXCdLiDbqLNpylMOiclG4lccg8iS5i/SKVBJcdHFetHYLnRCt3Mr rpT62XflBzv9vknFkDf2elA5/VU4eyURamHaqO8fv/vHUb+PR6te/jqK7dyNTc6iq2OI 5nrdp3Zx8AzP6B3Mviv4xrH+SEQmuntpynUiYfbo+df/BsvK/v9aifKPiemz8KpxT80N 5Juh2tTbHpAFqfxl3JFSR2Mok1VLTH9MQeH4JlvKRkujR8hX0Z8A9Q8XDez6jzEoiVW+ 2v2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jV/HD/VT"; 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 s12si1892422pgg.188.2019.01.17.07.44.17; Thu, 17 Jan 2019 07:44:34 -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; dkim=pass header.i=@kernel.org header.s=default header.b="jV/HD/VT"; 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 S1727996AbfAQPly (ORCPT + 99 others); Thu, 17 Jan 2019 10:41:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:42646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfAQPly (ORCPT ); Thu, 17 Jan 2019 10:41:54 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7567D20851; Thu, 17 Jan 2019 15:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547739714; bh=Xz9fQIXuQQe0UnxUxNP5rtYpGmjpTeJVtfMuT9DisNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jV/HD/VTkFO8yqR4QhbjbJfPBlKvv0+WyGTTJB+6gPURuau+owKtGA8r2HXyZZPXE +V36JRrmT852/p+dkcJvyGPc5eiAbmdINq/j3Cuavbm39c6oMUOfDVh0FmGqwf2/9k ej0cZW+dihOnrc2EKwp1yXQZbeW7+oyfy3b1EZGA= Date: Thu, 17 Jan 2019 16:41:51 +0100 From: Greg Kroah-Hartman To: "Rafael J. Wysocki" Cc: Keith Busch , Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , Dave Hansen , Dan Williams Subject: Re: [PATCHv4 07/13] node: Add heterogenous memory access attributes Message-ID: <20190117154151.GA3970@kroah.com> References: <20190116175804.30196-1-keith.busch@intel.com> <20190116175804.30196-8-keith.busch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 17, 2019 at 04:03:42PM +0100, Rafael J. Wysocki wrote: > On Wed, Jan 16, 2019 at 6:59 PM Keith Busch wrote: > > > > 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. > > > > Signed-off-by: Keith Busch > > --- > > drivers/base/Kconfig | 8 ++++++++ > > drivers/base/node.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ > > include/linux/node.h | 25 +++++++++++++++++++++++++ > > 3 files changed, 81 insertions(+) > > > > diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig > > index 3e63a900b330..6014980238e8 100644 > > --- a/drivers/base/Kconfig > > +++ b/drivers/base/Kconfig > > @@ -149,6 +149,14 @@ config DEBUG_TEST_DRIVER_REMOVE > > unusable. You should say N here unless you are explicitly looking to > > test this functionality. > > > > +config HMEM_REPORTING > > + bool > > + default y default y is only if the machine will not boot without it. Please never make a new option y unless you really really have to have it on all machines in the world. Hint, not here. greg k-h