Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1946727imu; Thu, 17 Jan 2019 06:01:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN48hy/7DnKZAnqvhDMre3YVcu0Ph2i7uv2Zoo2IC+2tW01MHhixbCssQ2VNEHej5Im94AXT X-Received: by 2002:a62:37c3:: with SMTP id e186mr15298099pfa.251.1547733686515; Thu, 17 Jan 2019 06:01:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547733686; cv=none; d=google.com; s=arc-20160816; b=HlxRDPJe8EfhPUnSm3xyb037KvRFzzsuV8ILxHfcGl1UYw9oLaCNAFNseuMtbsKdFu o0C+ADnfK9waD4We1K2aPAJyf3EMjkDN+GRvJywz7VGNiY/Q/vNJTPJJ3Lo1hlyViwjs 607a2Hec00Cb4dagwyvY3eubiDK6CSe87J2nLT+ae/Jr0bXe+XLAtTRcQqy3LpD0hsza 7ZEqJqVtkZPh5M6Rcvq6ReJHOivmYSwOcLmOw3vUa1NkPSarSsQlX/QOPmjE0EIIFMFQ 3Sda88tddPhOAlA3hvimw6b3Vjefk/LxXjnCq5z0no1wCxIhWTdhxJBYsl80VQkg6NCQ opeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=xN4v/rkGke6+i/Qav13HjBnLjQRjemEO+ltzcFe4AUo=; b=sqQuyK1VmVGUw/5QLog8+/px7fSQn6bCv8BLeJ8wXsh5wRk8Efc2D3GXXPRBpQ3D/M lYKq2A75MWWyIEEzrMjMWg1PRfeC33C+mglswmZcA9GwuWShS8eO3zYUnZiB4rQvwJCF DIl0w8WtRBSayjiWQNJQVVKt9rzJCTkCIoWuNutsF4wh97mTbnKffKQ4CtI9y61AsNcw SaU3XQ80vIBKBpLdy9pHxnGwpqkGx/7dBnUrxeHBETy9GES42psWRqjSpxvZ7wNztEQH PtNIgiVFLaIqRwzXzn5VVcLbryEay18MpJrqWg2DiCymIh8NynUg/BOD/4PzjG6/iDC0 8QyQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si1610943pgy.174.2019.01.17.06.01.10; Thu, 17 Jan 2019 06:01:26 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729104AbfAQLle (ORCPT + 99 others); Thu, 17 Jan 2019 06:41:34 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:45598 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728989AbfAQLlb (ORCPT ); Thu, 17 Jan 2019 06:41:31 -0500 Received: by mail-oi1-f195.google.com with SMTP id y1so5867778oie.12; Thu, 17 Jan 2019 03:41:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xN4v/rkGke6+i/Qav13HjBnLjQRjemEO+ltzcFe4AUo=; b=OSmAy/59dBI1bgyDBmrL49iAIfQ1EgS1FNlNmFd/5YUSjNE8TOguv+QJ8HOtJcpZHV XPKAMkLP4EJeUKJShVJZxgiqeQnYxjaNaOHwCwnKKJACTUUehp2an1Rj6ZtxsvkHTexD XvSd1cBuXXJdoaBraGvwmh9yyzInr3fcpvGSOKcIZ8QkuzOJiXZ+ort4fbqOeDokLN8r Kyn7+7BT4Tlr3ordMswayigm0YdEv3ECyv8rW3BYqfpf9nzgVLC6uG0ty30Ya02FA76x ISAkh1/V+9qKYLzkVZ2kvXJ4LRwB+CvxZgg/uxMzt+DCXIlSIAx4+ABGaDq543eVqda9 Rq9A== X-Gm-Message-State: AJcUukeu9S1UbiLsLmrei3Z7JKQmV/j6QdbN+555lnxXQ8OPJ+ySyjMq veTvsvhNG8ZZuhUwt8ry4p/YqWfMex724yggujc= X-Received: by 2002:aca:b642:: with SMTP id g63mr5392264oif.195.1547725290609; Thu, 17 Jan 2019 03:41:30 -0800 (PST) MIME-Version: 1.0 References: <20190116175804.30196-1-keith.busch@intel.com> <20190116175804.30196-6-keith.busch@intel.com> In-Reply-To: <20190116175804.30196-6-keith.busch@intel.com> From: "Rafael J. Wysocki" Date: Thu, 17 Jan 2019 12:41:19 +0100 Message-ID: Subject: Re: [PATCHv4 05/13] Documentation/ABI: Add new node sysfs attributes To: Keith Busch Cc: Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen , Dan Williams Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 16, 2019 at 6:59 PM Keith Busch wrote: > > Add entries for memory initiator and target node class attributes. > > Signed-off-by: Keith Busch I would recommend combining this with the previous patch, as the way it is now I need to look at two patches at the time. :-) > --- > Documentation/ABI/stable/sysfs-devices-node | 25 ++++++++++++++++++++++++- > 1 file changed, 24 insertions(+), 1 deletion(-) > > diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation/ABI/stable/sysfs-devices-node > index 3e90e1f3bf0a..a9c47b4b0eee 100644 > --- a/Documentation/ABI/stable/sysfs-devices-node > +++ b/Documentation/ABI/stable/sysfs-devices-node > @@ -90,4 +90,27 @@ Date: December 2009 > Contact: Lee Schermerhorn > Description: > The node's huge page size control/query attributes. > - See Documentation/admin-guide/mm/hugetlbpage.rst > \ No newline at end of file > + See Documentation/admin-guide/mm/hugetlbpage.rst > + > +What: /sys/devices/system/node/nodeX/classY/ > +Date: December 2018 > +Contact: Keith Busch > +Description: > + The node's relationship to other nodes for access class "Y". > + > +What: /sys/devices/system/node/nodeX/classY/initiator_nodelist > +Date: December 2018 > +Contact: Keith Busch > +Description: > + The node list of memory initiators that have class "Y" access > + to this node's memory. CPUs and other memory initiators in > + nodes not in the list accessing this node's memory may have > + different performance. This does not follow the general "one value per file" rule of sysfs (I know that there are other sysfs files with more than one value in them, but it is better to follow this rule as long as that makes sense). > + > +What: /sys/devices/system/node/nodeX/classY/target_nodelist > +Date: December 2018 > +Contact: Keith Busch > +Description: > + The node list of memory targets that this initiator node has > + class "Y" access. Memory accesses from this node to nodes not > + in this list may have differet performance. > -- Same here. And if you follow the recommendation given in the previous message (add "initiators" and "targets" subdirs under "classX"), you won't even need the two files above. And, of course, the symlinks part needs to be documented as well. I guess you can follow the Documentation/ABI/testing/sysfs-devices-power_resources_D0 with that.