Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1074213rdb; Wed, 6 Dec 2023 07:59:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZJBY8lGUY/8mzFSH3w3mMM/psFN1I/Sr5LYVHar5B1gC+VaVJRUnhBZNjkazShZmY9a8T X-Received: by 2002:a05:6358:9986:b0:168:e4c1:eb9c with SMTP id j6-20020a056358998600b00168e4c1eb9cmr1377937rwb.20.1701878365894; Wed, 06 Dec 2023 07:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701878365; cv=none; d=google.com; s=arc-20160816; b=04NAL7StijN2gEyoKBRIcsvHmEo2YlXwZRhbc5ZO39JdLbAcJ8Yfw+tKdVw6JK+PKW jn2ec6Cv1tNut/AuZDy0AHw5F2Z9ecA+IzrovFLv1iYH9IFS4TmJ2oW5F3WR1ib1rtji hzfDatfMDi7OiIjNes9xZ2YhG542ihuvTpBCdZH5ZNvD/642iVtTEDLRhLN8YRFjJbE/ cTDNbfFYqMtcBtYz0YglF2zHVKr1hJJnJMEpRGUVSRTWUlhtkR3kOagpuerjGsBFZToz M8myNyeuFFSugrJC8/Q9GWpOBwK+szSqaxQb8ssypLyLyzDZBAiIBGn0f38Vn/PmAWFT GHKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=WYw3vagUF6XDu3VU/2nmvddUpyOWxVWix8zrdlIpfAo=; fh=z9eS3/5qhQFGVmsDl+zV3PQccesyvXY+rhSbE+Hy2ZY=; b=Lt7jOn5UQUL4/iSghk8A53v/TB/eE22piIn6XzDZ0NJkmMUCtWV6Q71LaB28E+Cb/p iR59EG9y+7ooyiwitU5P5MYt/LQdIKLiufAtr9CNKqhfi3LI6qqGw0vxbjU1647qIhGt S306Sm4+tYv0kL1eDSvD3pBAs3HcoeqRH3lI4djLnWFzTGhMjW+JpZljk4N/MRhmoCSg MP9JhveHKc6ne35Dr2yBXPAMyHybkK+JWwQRDdmNjmq9br8CfiUN65bNtvVHIG+u1f3f jIqabZkYLaTjoYJnWoIxkhpoXSnxJ3+5QAfJoIflgpEWEfHES31CwjU5nUiHt0ETlTOx avew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=0O5bufUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id z20-20020a656654000000b005c67e10f238si94842pgv.492.2023.12.06.07.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 07:59:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=0O5bufUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 72B638029851; Wed, 6 Dec 2023 07:59:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379465AbjLFP7K (ORCPT + 99 others); Wed, 6 Dec 2023 10:59:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379449AbjLFP7I (ORCPT ); Wed, 6 Dec 2023 10:59:08 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03A25DC for ; Wed, 6 Dec 2023 07:59:14 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B370AC433CC; Wed, 6 Dec 2023 15:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1701878354; bh=vpZXpKKJhkH6bdcDcPHqena5ZG4UsjJfgD/hPx3L2wQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=0O5bufUDnm1ei+vk3IbzWI0+SGmHFkjtd6P/tbLUa0VD2zyoLUc9ML6LLfMDUXl5C yRdObtb5p8LZmfnfyRicLGcpZ8FCC68mIA1KatDT2DvCTEeb1KBjR+kCNwXLN/furT 8J2CnqhbUUGYxwraCtuy+GBB+DipyZMAyamjRRB0= Date: Wed, 6 Dec 2023 07:59:13 -0800 From: Andrew Morton To: Greg KH Cc: Pasha Tatashin , Sourav Panda , corbet@lwn.net, rafael@kernel.org, mike.kravetz@oracle.com, muchun.song@linux.dev, rppt@kernel.org, david@redhat.com, rdunlap@infradead.org, chenlinxuan@uniontech.com, yang.yang29@zte.com.cn, tomas.mudrunka@gmail.com, bhelgaas@google.com, ivan@cloudflare.com, yosryahmed@google.com, hannes@cmpxchg.org, shakeelb@google.com, kirill.shutemov@linux.intel.com, wangkefeng.wang@huawei.com, adobriyan@gmail.com, vbabka@suse.cz, Liam.Howlett@oracle.com, surenb@google.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org, weixugc@google.com Subject: Re: [PATCH v6 0/1] mm: report per-page metadata information Message-Id: <20231206075913.fa2633991bf257f5ffe5f3f8@linux-foundation.org> In-Reply-To: <2023120645-survey-puppet-4ae0@gregkh> References: <20231205223118.3575485-1-souravpanda@google.com> <2023120648-droplet-slit-0e31@gregkh> <2023120645-survey-puppet-4ae0@gregkh> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 07:59:23 -0800 (PST) On Wed, 6 Dec 2023 12:12:10 +0900 Greg KH wrote: > On Tue, Dec 05, 2023 at 09:57:36PM -0500, Pasha Tatashin wrote: > > Hi Greg, > > > > Sourav removed the new field from sys/device../nodeN/meminfo as you > > requested; however, in nodeN/vmstat fields still get appended, as > > there is code that displays every item in zone_stat_item, > > node_stat_item without option to opt-out. I mentioned it to you at > > LPC. > > Sorry, I thought that was a proc file, not a sysfs file. Don't grow > that file please, it should not be that way and adding to it will just > cause others to also want to add to it and we end up with the whole proc > file mess... > > > In my IOMMU [1] series, there are also fields that are added to > > node_stat_item that as result are appended to nodeN/vmstat. > > I missed that, that too shouldn't be done please. > > Again, sysfs is "one value per file" for a reason, don't abuse the fact > that we missed this abuse of the rules for that file by adding more > things to it. I'm afraid that horse has bolted. hp2:/usr/src/25> wc /sys/devices/system/node/node0/vmstat 61 122 1309 /sys/devices/system/node/node0/vmstat We're never going to unpick this into 61 separate files so adding new files at this stage is pointless.