Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5322236imu; Sun, 20 Jan 2019 08:19:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN6uqGexiQ/TecyJ2EPG2fBPq+zrGwHhIWMZCJ/VQRTLaSI2bm34yTMqhr03wbaRVj2QyzdL X-Received: by 2002:a17:902:9a02:: with SMTP id v2mr27200536plp.180.1548001190722; Sun, 20 Jan 2019 08:19:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548001190; cv=none; d=google.com; s=arc-20160816; b=tU7xm/733kHuQlSwG12QP/EJjCRpcYyDtBbSDyl0ZwOLhjG3OhS2FpZOS03szVWPDi tZTSXJIhM6poN32mExfGvVtysTeLN575Bs1mYc5xNYrbDT2o/+y+Pb+hLtLC9beV3uro 9qC7kbrITNGGW2xnxDddluz8xBiv3oGG57lahlRgaroCEHhZ0AA/1rrglBklmYMz58Yw bqjQ5Z4CX+d43ADX5LDPIKEzG+iZ/1lmmhVAMIQTjTKbN90LUMXvouu5/Hu9/i3v9NKX wMXK82ynZmrvOnkUcTDmK3jCcDGvSKaoPekrU3Il9M/GCr409/+ZWqGxt1nVQP+1p0D/ Iohw== 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=vqq8xMl7K0vAPz7n9VQCf5cdbFyZR4ZOXMYdzAlyKWw=; b=GofBexcpVtrYsogYV/MW2o9/NmCMYR3VliGzsbDFeCk4f4SvHH6Ieq9ygRgYOKIT9H dzPSXnSXwjK0HS8nK4+Vc6ZS0f9fzzrPmNheFAtNkv/yNWu5IkU6L5IxbAsMqxGqmCd9 1SpfwZpsHmOALYN/fscrKORYJIVQiKX7m69hBu0Fw8COItJzcyBVUDXiCJHDaSV3fTi8 Uq56rOBMXh2BdrSJ9eA+LDYmosB2hoxAhiDU7I/zSg4QaxiJfjq0CP70Uy5dWJm1l4Tu qSFMfxvbrph88u5o8qmhvzpp6ze6xzCBdWt9KyWYukVn+DGMoPv3XFfPcugCqAbfQ2Uz PVjg== 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 v20si10417218pgk.103.2019.01.20.08.19.33; Sun, 20 Jan 2019 08:19:50 -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 S1726724AbfATQQX (ORCPT + 99 others); Sun, 20 Jan 2019 11:16:23 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:38542 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbfATQQX (ORCPT ); Sun, 20 Jan 2019 11:16:23 -0500 Received: by mail-oi1-f195.google.com with SMTP id a77so12717088oii.5; Sun, 20 Jan 2019 08:16:22 -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=vqq8xMl7K0vAPz7n9VQCf5cdbFyZR4ZOXMYdzAlyKWw=; b=h0B2PeiYlgbiRsjdtVgKx0jr0VtdZlWmscwqXhuttv6ZSewbBuXgK1vw0C9hrdIjX+ HJor+MXEKAnRzcQ6RafmHpswvjIvuOCeJSLC8/wqPFqQ7WL6+R+iMKW4jEOad138u98j bKUEmp/cZvVfg+Cen6ht0jTO1KUHhJdg8U5OhsuVkfY6oDlcE/7WvmjMO9RdkhPKh8QZ zBW6n8Czl5XjaS5xkOt7ABmi13UB4xoyEvP8+rhJGO3E+0/gFQMHhIlM2P7e3+2XoIt3 te5aeQjOklWPV3sC/eg76ZJp8o9/8TZ3wm6pjnazAGeVFCz8luEy+2s/zggxXhYCqUIg f2UA== X-Gm-Message-State: AJcUukeYxhNLhGW0Gnxo1y77ksrz4kccE9uhT2ppwX0dO8gVRYe8tCvO ftwNo3nwcvBLg9BAQpFOEj9Gg6p8B3Ac/ceJOfU= X-Received: by 2002:aca:6c8b:: with SMTP id h133mr3561880oic.33.1548000981959; Sun, 20 Jan 2019 08:16:21 -0800 (PST) MIME-Version: 1.0 References: <20190116175804.30196-1-keith.busch@intel.com> <20190116175804.30196-6-keith.busch@intel.com> <20190119090129.GC10836@kroah.com> In-Reply-To: <20190119090129.GC10836@kroah.com> From: "Rafael J. Wysocki" Date: Sun, 20 Jan 2019 17:16:05 +0100 Message-ID: Subject: Re: [PATCHv4 05/13] Documentation/ABI: Add new node sysfs attributes To: Greg Kroah-Hartman Cc: Dan Williams , "Rafael J. Wysocki" , Keith Busch , Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , 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 Sat, Jan 19, 2019 at 10:01 AM Greg Kroah-Hartman wrote: > > On Fri, Jan 18, 2019 at 01:08:02PM -0800, Dan Williams wrote: > > 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. > > If you do a subdirectory "correctly" (i.e. a name for an attribute > group), that's fine. Yes, that's what I was thinking about: along the lines of the "power" group under device kobjects. Cheers, Rafael