Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1483505rdb; Wed, 6 Dec 2023 23:31:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaYb4wGrd1oBcmfA6xN4S4ci0nnT+wREmEUJI7JNXr8tGJpo4k6sgTKE18nnWFip5BLWuB X-Received: by 2002:a17:902:bf06:b0:1d0:cae7:52af with SMTP id bi6-20020a170902bf0600b001d0cae752afmr1677614plb.33.1701934317243; Wed, 06 Dec 2023 23:31:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701934317; cv=none; d=google.com; s=arc-20160816; b=cy0tLBY0KwGHEEJYyhu81c6Js8SUfWG9sVtqN7zvPq8gQTdxHFW660oosxDs1xPb6A e3bbFJsR7bSm6IGg1wGOKR8or+Zvj63ZsJzC++Sp+H6gVq5wUWZi/PU1CRM/rrZuXFHc K0vO/TDN/I91OxZT/t7NmBgdl+W02sUf+DX3C0lqXWX7vZKbCbN1FO43t5ass27vNwqM J05/cObs7Vqoj1ln0l5GBymaRAq4/P60HfKyY1G4u7tAHrBo77iF0osKWYhWTp+qsWjh wJJJNkPLcJVCXHnw8zN6BDd8m3q4a5A0WBOxxNdS75/ptmzIBFERCx94g3SAiuXp9FWe ZgSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+xHl7ZmW/VH0P2R9EK5nOpVWx3EwTWrA/F3JK29N79c=; fh=EyKm1f1vjXjb9VuY11guj5k6AhQMUwj9+tTjZXOhDxk=; b=QcH2qv3U8UdlHylLJ9prHXAZGgZotiMjcy822Y1+/ksCN+tnwNIASBOMNThFowkd3s 8D5se2ZOhlj0uAK+6SMrQlin8VtaChstggrJWl7PRlnq2P4GToYFp390Pc7m0nrSvqtA oNMKpD/5FubLn6f8lwLQGWGUqTMg3zVbtrJtpku2q8kw/US5Au1P8i6rtJ+uY/El7/Sd ukvrnaFV9FX7JIQAaP1ts9z/xBtlVqc93lm+pczLfcle7CcHvfH67KWCU1T9EuvWmISU lWnTb2w/yBqjEi+yh2lPI3lSitSn1n3I+LC5m7Gi1mbJMLhn1QEAy20TNcfRHtelc43j Vtpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DfhrW129; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id b8-20020a170903228800b001cfb4a89e6esi686169plh.145.2023.12.06.23.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 23:31:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DfhrW129; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0B34D80A139F; Wed, 6 Dec 2023 23:31:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229809AbjLGHbm (ORCPT + 99 others); Thu, 7 Dec 2023 02:31:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbjLGHbl (ORCPT ); Thu, 7 Dec 2023 02:31:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D09F11F for ; Wed, 6 Dec 2023 23:31:48 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E745C433CA; Thu, 7 Dec 2023 07:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1701934307; bh=AQ3zRaWsxl12kZ8IbNOLzKipBmlx9MwTy7N5XYMJexA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DfhrW129VGKpUM3TCX2gNqhQjeGfTNPP0SAxtinRm24SLzTOlmXfo800Ka24OTXpr 87dvSP087+Z3Z2U65zg19ilH9Aj/9G9DRZhpw2R/Wz2nN/Rc8t+a0ia1SQfRIhjNS0 yxed0pwSEub43xZZYv2Wy0FozCrcInu2zwI2iOEA= Date: Thu, 7 Dec 2023 08:31:44 +0100 From: Greg KH To: Andrew Morton 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: <2023120731-deception-handmade-8d49@gregkh> References: <20231205223118.3575485-1-souravpanda@google.com> <2023120648-droplet-slit-0e31@gregkh> <2023120645-survey-puppet-4ae0@gregkh> <20231206075913.fa2633991bf257f5ffe5f3f8@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231206075913.fa2633991bf257f5ffe5f3f8@linux-foundation.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 06 Dec 2023 23:31:55 -0800 (PST) On Wed, Dec 06, 2023 at 07:59:13AM -0800, Andrew Morton wrote: > 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. But if it keeps growing, it will eventually overflow and start crashing the kernel and you will then have to do the horrid thing of turning it into a binary sysfs file. So I can please ask that no new entries be added to the file please, let's not keep making things worse. For new items, just add new files, don't add to the existing mess. thanks, greg k-h