Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4174977rdb; Thu, 28 Dec 2023 12:43:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEntFp6f1MeVWu137W7sKVD9kmIQuGLPlJo9v/2733Rk36h+ITSuSKTIYADkP4ZOeZITPng X-Received: by 2002:a05:6a20:4003:b0:190:12a3:7edb with SMTP id z3-20020a056a20400300b0019012a37edbmr10080916pze.20.1703796221029; Thu, 28 Dec 2023 12:43:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703796221; cv=none; d=google.com; s=arc-20160816; b=kSOpBgo+BvFlLDqJM7r8Kh7aG055TyACRN3Eq+57DRGWVMqnF5UC72G1DlUhQNFGpO uxeJynPvVkMJxvUhQ+uw7xG18dbn12rO7mqV/uTcRvGQin/SLTwDS0umuGs1frpY4gkq CsqZIrs9y8oXx9y1X3CHecSgVvr2Odb/jqzOmJdGdtjozfuuTtfSyEo7dOuiGs8HAyb2 JUlc0uniWHhIcl3v10bmWbmu0gaNi/GaN+mY14m4YY3jpS53dp2nMgTwiS4J8+hhF2Nk Ujcdy/iPNn7edgTbN4koBe04Ls08mWrloZidbG5NvATrKxOAjC4R/DjU0S1fk/YPYRDG 36Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=FuWAr1LFb8yGIvyDQdiCDLS5Dz8Fcnn8SIF/MmaVoyg=; fh=wic6VuMrjU1v1zKWOgsg5EFyjEF9q7pe8xGnbeu32ZI=; b=VVi6K2x5MLh9kEDDzRyieOui9M0F5flyK1ZJ/5ULVpobnS13QkxqCJLaYCeH4Wx+0Z 9JbDSctMamTLsgfIxrT9A0ehUlftY6RdTLVTEd7V7IpPbSCh/gkTbrB/KkQ6gGtahAyR ayF9I27By5l5gqvwBcooRXm1VJvu5pvBqa8hL8u/JEAOxZLB5RsArK2YhoRZR3qGIHkc NYEY3IF9A7qfejUlZv1gK3Ep9bvIVLHVuGgo6GKZ2nQkhfKW/sXFFzrxxfGEgo35pOxv 2tzYBPQPbRqg/5IyNBk4B7xx+F5M42VwYpxMpHw2Z3Pdg93X5ZGhksXQTG1FNow+TDTm KPDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="gnvejs/o"; spf=pass (google.com: domain of linux-kernel+bounces-12854-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v5-20020a632f05000000b005cda7a1d72fsi13228954pgv.473.2023.12.28.12.43.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 12:43:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12854-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=@google.com header.s=20230601 header.b="gnvejs/o"; spf=pass (google.com: domain of linux-kernel+bounces-12854-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 A736F2861FB for ; Thu, 28 Dec 2023 20:43:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76A831095F; Thu, 28 Dec 2023 20:43:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="gnvejs/o" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 7AB6810945 for ; Thu, 28 Dec 2023 20:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1d3fde109f2so699785ad.1 for ; Thu, 28 Dec 2023 12:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1703796211; x=1704401011; darn=vger.kernel.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=FuWAr1LFb8yGIvyDQdiCDLS5Dz8Fcnn8SIF/MmaVoyg=; b=gnvejs/olSjGy+na+x6pqFaUa8/NLWjNpQY2Kpi1rGnfJYEPx0//antibQqjCAQV+6 YkArQg6on6gEAU9VQ4NX3Tvk+ROHjaGThGe6z4XeNtJJ+4VrtTESFBXIKopE6+BuuuF6 17Og91zRHyoKSpTZP1MTISTv0Twrglnal9kqTbQkyiK08bkc1aAoNhmll+JyycPVvikF c1GN0bcZMsAq5nb+dT8GzT+E0ykn22fIygzvuY1wII0sdQu2v+DVwrDPxm9u875F9i/E LnMbb5qGPloN81bR4JEXDrsrlwFGAN855MzINUfAQzrvQUBPoxJ07exiMzZA4MvExRBB zY4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703796211; x=1704401011; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FuWAr1LFb8yGIvyDQdiCDLS5Dz8Fcnn8SIF/MmaVoyg=; b=h/XJjdhqX6KnqNM0GEdiNT7fhhDBU3YpTEg9LeaGbV7MDQdokwkmGqaKBrU0XgcRZr WheXN2790kCQJTLWR+5Eea1caIhf7bp9cPfdv9Bwbkag5CzFcIvzCpE0bIVFYxYAqdnt PYwr902dFIhnOM+3Ak78egpQIRELoZwYUBeWnoprtxc+f49qsRFFolSWZoW/I2ZtgUaM D+sbeJWk6//cYOeF6H6AYib3aTaRNB7cQtHHU7htmR6Kxe+nxaQJVmmuqQtGstXaU0Vq lmuU1X3pvCvLJ34/WTkG7UqWI+ZqN12fuOrPlH1bCK6x+VvYoK2kWKkpvI9q/kb85+MK l0bQ== X-Gm-Message-State: AOJu0Yw4DOT0C7ZCJ8ng2fv4djAN/RleEm6hk6MSryEnv/QNrfhpZnsj H3CBF1JMDZa68PZNvVmKJqTYrUtliFxO X-Received: by 2002:a17:903:2094:b0:1d3:fd5c:4d63 with SMTP id d20-20020a170903209400b001d3fd5c4d63mr729722plc.1.1703796211447; Thu, 28 Dec 2023 12:43:31 -0800 (PST) Received: from [2620:0:1008:15:5eb6:dfb2:ff4b:8b64] ([2620:0:1008:15:5eb6:dfb2:ff4b:8b64]) by smtp.gmail.com with ESMTPSA id w2-20020a654102000000b005c21c23180bsm11305956pgp.76.2023.12.28.12.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 12:43:30 -0800 (PST) Date: Thu, 28 Dec 2023 12:43:30 -0800 (PST) From: David Rientjes To: Pasha Tatashin cc: Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , rafael@kernel.org, surenb@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, souravpanda@google.com Subject: Re: Sysfs one-value-per-file (was Re: [PATCH] vmstat: don't auto expand the sysfs files) In-Reply-To: Message-ID: 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Thu, 28 Dec 2023, Pasha Tatashin 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. > This is the opposite of what Andrew and I wrote above. There should be no need to start preventing future stats from being grouped together in vmstat if it logically makes sense. NAK.