Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3989913rdb; Thu, 28 Dec 2023 06:48:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHds+LtOqyuVkfQzCarB0y8VmdzgvwrNrDgOsRq5lqjDXsP/ePoXmL7NuDFkgO3Gx0/Fmqe X-Received: by 2002:a17:90a:de0c:b0:28b:35b9:d389 with SMTP id m12-20020a17090ade0c00b0028b35b9d389mr3524930pjv.65.1703774931338; Thu, 28 Dec 2023 06:48:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703774931; cv=none; d=google.com; s=arc-20160816; b=wzAlQUn4ZhCwz3KjCygH4i0Y4NsYb7v1Ofqs7c4hbH+u/W41k5An4/YaN7Uu+89sil iaR0PsCCzee0FuORo7DFCcZYYLGugc8ZDT82fYMiCOfY4Q+sqEVWsR4zoiE4NDsqMwE3 lCZr7vLgnsz4vVCWzIAlfjwOLzJVbb/GLQ6flFMHSFRO/UxT+/t60NCZiID9zYmtelgO KKvJcFUSj8NPGPcHxpakKHX1P5bRBKPKYDzUjgNjporRF9eENU7T0lldPuJs2ItTC7IX tUxbZRDGMsab4ZjP40BYyn0jTkWwALLD3q5M5u6zVESWDnwHxuUcb6CiGFpsEap7og/S o2VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=u0zhsoc7zLEWUspquC1xbxifv5WBj4GBVb2SAg7HeYA=; fh=v8eOQajr1nySr/Z7Jyc4t5G4MkDq2r+EYEGtr5wQ0Vo=; b=H2ky6b9D3AJ6JVyPBgTjtGiVPILXVFsGxJyELjOZPwjYPL7yWloObUZMMIHIuBog9T OC9Fty17qc8zD11uQN3Zj7AO3XmAS6ltqTsaxWGgwUeXe5UYzxO4LDCe/hgGbr/tdXCm F8qxsXhU2BovuL2fU9QQMYTfDjCuLiWW7vTgvpXzBm/42JkEDs+X/mBC26uvXyTPwNif 3KSIwM8959BLN5GYwwVp+6Kh0hr/Rry6svDzzPw0fqk0b5O0OUJYKYpmRvwZbA+ncI6H mgQuuf5RVuPSzzVN6GE8pnJ0zGTElBjn+KAFpPXXpx5kjPEEVMKKcKnhklLlRGckAMLD ItBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=MRrlsR3B; spf=pass (google.com: domain of linux-kernel+bounces-12714-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12714-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e88-20020a17090a6fe100b0028bdcdf80a2si13711090pjk.157.2023.12.28.06.48.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 06:48:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12714-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=MRrlsR3B; spf=pass (google.com: domain of linux-kernel+bounces-12714-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12714-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A8B43285B1F for ; Thu, 28 Dec 2023 14:48:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6DB1F4F6; Thu, 28 Dec 2023 14:48:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=soleen.com header.i=@soleen.com header.b="MRrlsR3B" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6935BEAF3 for ; Thu, 28 Dec 2023 14:48:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=soleen.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=soleen.com Received: by mail-vs1-f42.google.com with SMTP id ada2fe7eead31-466f1fbb707so555631137.0 for ; Thu, 28 Dec 2023 06:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; t=1703774925; x=1704379725; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=u0zhsoc7zLEWUspquC1xbxifv5WBj4GBVb2SAg7HeYA=; b=MRrlsR3BmbeN8YQ5cQ2nrmAmHmde8ezPTJeU6CAdN65Q2UFbNFeb/mZOP7vvnEstl+ hvxf8tSe5fZVhO+yW3eIva5VUlnweIYfuuzjGgKAvaSdkRIQX7utxJsO0G04xs2aDIdN BKgVDIde/A/n+tTU535LXp7QSLtfFdw+mpMZRSHzqmuWZsnAVVqmNbDAUv0oV3S7vhBd cLN83eTs/hCowvSlR7Fes5kF7ukUMUL09SgldKuMRc9TBlM7RBu2o4Um24ab4XZGqDoW rwXQNlZCcCkxtm/6A/040w2LSzclJFIQje/4rbzF3KVd4sphgt9xh8PqAfRWEtDF7V8u Dpww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703774925; x=1704379725; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u0zhsoc7zLEWUspquC1xbxifv5WBj4GBVb2SAg7HeYA=; b=W9/8qJ2rcmzEDJo2Qxs82S/4eyk6PIBsBJrjfbM56e1y3/+Zu1znSxAzs0hE858EbW 56HjmcjCEUDGF0Wlve3/ELxsaPDqvcr1d7+1F2VXrnkUjph4Gjj/D3VTtYwJoQuQcu6+ ZZozNnUTdQb4gDd8kZkc3R8fCC9PAqUft67L+gks/wY4se47fi+NC8//5ZLZWslvt/vC IyQ+VE4fOjkqk65OOH6VIsXUpaVaSGRQsnGjZhdzxBz0ZJ8kSzzUvGjaKJi+ZPkg6D+i gVEbhL+ATWHa4jNsW7zcbVZ/eHwLDnPO3oJKS2blOZuK/Xnb4tmhIxlFOx1Ehq6/egie N+mA== X-Gm-Message-State: AOJu0YwWJRZm7Hf/DicRBxSiUK86Uf8BZIYXHnvmCsOlddVE3z1YvXYp Jt7r5cATqZ79yGKexs+xJSoGwhx3B1A5gIxM5B88ojqv6zVv4Q== X-Received: by 2002:a05:6102:1514:b0:466:59a3:4461 with SMTP id f20-20020a056102151400b0046659a34461mr5074746vsv.32.1703774925370; Thu, 28 Dec 2023 06:48:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231211154644.4103495-1-pasha.tatashin@soleen.com> <3d415ab4-e8c7-7e72-0379-952370612bdd@google.com> <13e5fbd4-d84d-faba-47f1-d0024d2c572d@google.com> <20231227104244.824b0977ae6d4bb6b37f6f79@linux-foundation.org> In-Reply-To: <20231227104244.824b0977ae6d4bb6b37f6f79@linux-foundation.org> From: Pasha Tatashin Date: Thu, 28 Dec 2023 09:48:08 -0500 Message-ID: Subject: Re: Sysfs one-value-per-file (was Re: [PATCH] vmstat: don't auto expand the sysfs files) To: Andrew Morton Cc: David Rientjes , Linus Torvalds , Greg Kroah-Hartman , rafael@kernel.org, surenb@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, souravpanda@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 27, 2023 at 1:42=E2=80=AFPM Andrew Morton wrote: > > On Tue, 26 Dec 2023 16:53:31 -0800 (PST) David Rientjes wrote: > > > But for existing files and conventions, I think we should settle it as > > "keep doing what you've been doing for 13+ years" and don't force this > > argument every time a kernel developer wants to just add one more stat. > > Absolutely. Let's do what makes most sense. For new things, one value > per file. For stats which logically group with other existing stats, > do whatever the existing other stats are currently doing. The intent of "[PATCH] vmstat: don't auto expand the sysfs files" is to do exactly this: keep the current fields in /sys/devices/system/node/node*/vmstat as-is, but prevent future fields added to node_stat, numa_stat, zone_stat from showing in vmstat. Potentially, we could also extend checkpatch.pl to warn when VMSTAT_SHOW_SYSFS is used in the future patches. Pasha