Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3591774imu; Fri, 18 Jan 2019 13:10:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN4HRkJfNRTT+KlsOBA/vCG3vOmnKFWjRP6h9oaEyYj5DqNA+8pn0GyD4hym0Lvz4fmfsU1e X-Received: by 2002:a62:4549:: with SMTP id s70mr20698577pfa.233.1547845805712; Fri, 18 Jan 2019 13:10:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547845805; cv=none; d=google.com; s=arc-20160816; b=FUC87GFFDwg6A5NI5GUb7YpoKTkcMnEsmM4XwpOtQCFep9yMJz0s/xFzFp5Ir1ZxhG joj7Z8PbRua9qrEyQD13PPB6fL/WV070OCO/M0qo/sfePewDzfMkSqTwF3ZhWh44gmIE xeBJZ71s3Zy/ft7RRw9Mwo/kMYw8PpbwU9cFx6k3alN6G8mD8zMMKBQLM8vgQ0k+TuPW njldi8mpz9+CqJ+kW1r6yz2zFtSG58/GpnC2uRlxbyeQh4UHYrk61REyHOnNZ6/SAAr4 K6k7lZMp6L0hixTiuCAh8CEJOQRsFdGaD1LBU86/02jtUOBWjM81IrvN0+jJZhRUnwFH kcUg== 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:dkim-signature; bh=slVKCgtfR6RXPvhhk4waF03IbIKuP2Ae0m2u6xRYQ7w=; b=lYqzE8JzQwhYUT9jIxC5e5Mcs+7YDKSiK9u7QpAztixeEFPT6FsDKajPifp529TCkv j145JPSGIRLorzPFMOtNEIjHmza+nvjDz/H+S12+rlbGM41BsFoMUKrzAcKarGbrZhAv HyqwC62Rz0J63XJC9X5sGnAhMuvONbovWxCXHmZ1+p30EsO+OuR3zsy6tXenhoiIYHfl LIQGTD1a3o0gAYu1z/23m5173mdc/N7b8v5HFJmUISKQYsVHkPbIzcBS7mXcpyMIl6P/ RHl5qXTrjyHOk1886iElD84wmwSnMB+2NM9naPpKP2GfvSeq1BPcCRsMIavteE5N5G4O QFzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=YQDjo9KW; 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 o5si6094633pgs.497.2019.01.18.13.09.49; Fri, 18 Jan 2019 13:10:05 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=YQDjo9KW; 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 S1729580AbfARVIP (ORCPT + 99 others); Fri, 18 Jan 2019 16:08:15 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:35866 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729502AbfARVIO (ORCPT ); Fri, 18 Jan 2019 16:08:14 -0500 Received: by mail-oi1-f194.google.com with SMTP id x23so10073218oix.3 for ; Fri, 18 Jan 2019 13:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=slVKCgtfR6RXPvhhk4waF03IbIKuP2Ae0m2u6xRYQ7w=; b=YQDjo9KWkk9z4g6Oxs/kvLIxE4b9hU/QhD3hO98AoaCw/9L2NPQ/LeE//ADqq3ABZB 38JM5pUoZvEhTQzlPeX5GC4FRrH35MgogRZorwGSIEB6aMMpPQZBLpoubP6WhoZzkiV0 LitaPt0J/xIZorQei9qN8QduTqB9Y9rquQhNbXvkhpoS+aXnqH0oNq+YNhLa+LerZYu6 yNbnlDIJNfOSrmDr2kgG8SkNszyVzMeEyYlxVcfTZ7hjBCeUOtTN5xcOthQ089/uDGM+ +v+H+wWlAFKZ2KvRByXCsvHyhjEDsT/AQkmm59DPE64cNr8Bk7EPeQ8ecQnQhRyw5zlq Np2A== 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=slVKCgtfR6RXPvhhk4waF03IbIKuP2Ae0m2u6xRYQ7w=; b=RLetUpyIBW0JXPkHDM4CTN5+di/JkaRFAyfrVtQDsqzGaNMoD1Ym6KiHQ/9sMfMFH5 Sy+S4U7lxNa+KfL4GWUogaTPAwAh5FfbobUvTI1TifcFAg4sz1diAwYHf3zo7PV15wyO PwIuNGpKpUMOK/ok5j0VrDqmY/RBCo0CHY6cc3ROOOzZzaRg7fwjhx6z1qJrRKd9Dwg1 r3OP8Gj7vQr4g7cL9cVEz8hjc/KMNc+niqw2iys4TRgllPllwu9DxKLr/vrjhuIB7fQt CCk4kpmF3T+bjCST96UWJ/3oUsNo/Z4wE3oHQ7ZwjtKmHy2OFajunlpV4hG/xsvenV1o Qo1w== X-Gm-Message-State: AJcUukcF+AEE1FR19esGSdTtme/IYDEjJhs8TNuyGb7ubQr6kfRVmh3E OVnFdCXqdBdAm9Hn6m7mAmiKTBUVqklhx7+aJ4znjg== X-Received: by 2002:aca:d78b:: with SMTP id o133mr988461oig.232.1547845693575; Fri, 18 Jan 2019 13:08:13 -0800 (PST) MIME-Version: 1.0 References: <20190116175804.30196-1-keith.busch@intel.com> <20190116175804.30196-6-keith.busch@intel.com> In-Reply-To: From: Dan Williams Date: Fri, 18 Jan 2019 13:08:02 -0800 Message-ID: Subject: Re: [PATCHv4 05/13] Documentation/ABI: Add new node sysfs attributes To: "Rafael J. Wysocki" Cc: Keith Busch , Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , Greg Kroah-Hartman , Dave Hansen 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 Thu, Jan 17, 2019 at 3:41 AM Rafael J. Wysocki wrote: > > 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. This recommendation is in conflict with Greg's feedback about kobject usage. If these are just "vanity" subdirs I think it's better to have a multi-value sysfs file. This "list" style is already commonplace for the /sys/devices/system hierarchy.