Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp210841lqc; Thu, 29 Feb 2024 15:15:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW7GQms1G+ixQSJ4f+Se//cO1/eHnHaB1gf/9YVynEskdH4Cc6RiNwRbhNwZ4l3dcziXwuCBJQcsb54ATakDepa4er3VMUaHaCDKlb4yg== X-Google-Smtp-Source: AGHT+IHWI++zCtrT16/G6Dtm5dEGzKEjx1OMG0ejH5sG3v7Bq1s1Bj5BpEU65jbuj64JEZDUapKL X-Received: by 2002:a05:6830:1db7:b0:6e4:8caa:6b13 with SMTP id z23-20020a0568301db700b006e48caa6b13mr155329oti.4.1709248511228; Thu, 29 Feb 2024 15:15:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709248511; cv=pass; d=google.com; s=arc-20160816; b=HjS/e7/rxpGIo0o7MeA2AKkGKhAU5xOSRrf3dIi3AMFujD5U0YIpQvDTgyWtTFiJ6t dw1HvQ+bX5NgoIpwdJUxPNUKI31AVbjlfAx1ZJ4J1IRFCLBr+YVAgbovTjqV1WQMWY+j I3AAxZG8eBnAf3U+4DYnkl6ttXZXNCog2KHQ1Ds4FNF4zbG1up9L3OFyg5OOiS1jMaOQ lPWKCEwpeNdiZu42xJ8FXleQrUUNcBFhPBlaQGG4tdQecep6ZqK78KWp1XwZddSLyglO mDN/PPqyUHYS13TN3TFNdynNeZLU/pbFF6uJ5ZF+IO6Pdu85C3STmEhEFVxZuhEkLHld 98tQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:from :content-transfer-encoding:dkim-signature; bh=4EP8nnjo7NvEGFoileT5wdDJOy5gOk88KTfQtjsr7Dg=; fh=s1PXjUTx19smmMR07y3qTAQhS2el3SYFcNxOasVj89I=; b=YwC4rfPy/HYMkZgKK3QG5fp7pI+PSDCanIOu383qsB1QO/K+G0Wwl8s/uFT/qh1uOf HjqMkyDn7VI45VBN6UAypLlz6mIZmudM+90W4/2Et7hMyVyfVeG42WVyP1v/D3AmCgYN tlOfnIQRVRt+lkSmcR61oYvH+kk2d/KL0/h78vf94ukBsoM+pFCt8EtOgjPjyYSNV2VV t35s6yBKCERqB1z+wCrtfLU/Wbj2ZRhEYC68dLDvKbirhajqt0Diy/ITiDFVb1iM5cPh p9Jz1XFz4DCFcBETrBvLCR0sDhjJEQJeYRq9kjTLRGKkhggbVZktVTzDF3ZlQkZDclK7 bKiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=OoT6pFub; arc=pass (i=1 spf=pass spfdomain=163.com dkim=pass dkdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-kernel+bounces-87666-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87666-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y184-20020a6364c1000000b005dc97ac8afcsi2343249pgb.125.2024.02.29.15.15.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:15:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87666-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=OoT6pFub; arc=pass (i=1 spf=pass spfdomain=163.com dkim=pass dkdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-kernel+bounces-87666-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87666-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AAC2CB2179E for ; Thu, 29 Feb 2024 23:14:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BCEC6D528; Thu, 29 Feb 2024 23:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="OoT6pFub" Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.2]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 610FC1DFCF for ; Thu, 29 Feb 2024 23:14:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.2 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709248467; cv=none; b=Qc90/dFBRNgK9fQJ9COAWjfaoVQ7jsiE6T3c/73WTNbLJUBYrQOT6i5P+EU7XxZaMfxsEDwPPaUSuk2bdpkANg3Xhi71z5nMY73Yp79fgLUiPnc4Fg9ilgqMsghupD3INdlywHiJop6FpR9Z1HNup8jlU3LL758lmn1979aXq6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709248467; c=relaxed/simple; bh=mBOVl+zJ7BDiUMnGvvMRSX38gRn0i/b1iJBtbhHajKc=; h=Content-Type:From:Mime-Version:Subject:Date:Message-Id:References: Cc:In-Reply-To:To; b=tRvmItUy1li7oFojKLqKe/EFwyK1cQVhQ3/38LjpWy10+GBRQrf3DcYNwwxbsdfMSIXzLVLcmrlge79t/w3/MXkSzzzO/dEs7wJG3NVXgMiQddRcnmT4C54OCBBQLKr6I06gHZZo9AsY16pJQNq8qEO5CQf48QAIf2xWuq3PzUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=OoT6pFub; arc=none smtp.client-ip=220.197.31.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Content-Type:From:Mime-Version:Subject:Date: Message-Id; bh=4EP8nnjo7NvEGFoileT5wdDJOy5gOk88KTfQtjsr7Dg=; b=O oT6pFubR/cy/DLbkLMJSDhYyA4JScDaZwP1IZIWebmO0grkJMJ2dTkKydjLBwFQX QM36F7ZqRwa2ccG3ubL2bvoRN2rrHNMbR85n9hto7P+uA9NHEgxEevdxlNmUn6be uvMLLuBaMU0rUCYn7WiC9lovOl0CBnJeYK5LFt0ZMg= Received: from smtpclient.apple (unknown [43.245.196.50]) by gzga-smtp-mta-g1-1 (Coremail) with SMTP id _____wDnj4S6D+FlgpNtDg--.51423S2; Fri, 01 Mar 2024 07:14:03 +0800 (CST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Hao Ge Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2] mm/vmstat: Add order's information for extfrag_index and unusable_index Date: Fri, 1 Mar 2024 07:13:51 +0800 Message-Id: References: <20240229104013.5ed8c1ca9c2dbd0bd5fb571f@linux-foundation.org> Cc: Hao Ge , linux-mm@kvack.org, linux-kernel@vger.kernel.org In-Reply-To: <20240229104013.5ed8c1ca9c2dbd0bd5fb571f@linux-foundation.org> To: Andrew Morton X-Mailer: iPhone Mail (21D61) X-CM-TRANSID:_____wDnj4S6D+FlgpNtDg--.51423S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7uw1xZFyrWFW5XFyrurWDtwb_yoW8Xw4Up3 yUKF18trs8Ary7Aws29F4rJr12y34DGF1UJFZ8Zr1UGr15AF15tF1ktryFvFsFqr4DG340 yr1FqryUKryDAFDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zi_cTdUUUUU= X-CM-SenderInfo: 5jhkt0qwryqiywtou0bp/1tbiyQOTFmV4ICdtBgAAs+ > On Mar 1, 2024, at 02:40, Andrew Morton wrote:= >=20 > =EF=BB=BFOn Thu, 29 Feb 2024 22:14:43 +0800 Hao Ge wrot= e: >=20 >> Current cat /sys/kernel/debug/extfrag/extfrag_index and >> /sys/kernel/debug/extfrag/unusable_index is not friendly to userspace. >>=20 >> We should add order's information so that users can clearly understand >> the situation of each order at a glance like pagetypeinfo. >>=20 >> before: >> cat /sys/kernel/debug/extfrag/extfrag_index: >> Node 0, zone DMA32 ...... ...... ...... ...... >> Node 0, zone Normal ...... ...... ...... ...... >>=20 >> cat /sys/kernel/debug/extfrag/unusable_index: >> Node 0, zone DMA32 ..... ..... ..... ..... >> Node 0, zone Normal ..... ..... ..... ..... >>=20 >> after: >> cat /sys/kernel/debug/extfrag/extfrag_index: >> Extfrag index at order: 0 1 2 3 >> Node 0, zone DMA ...... ...... ...... ...... >> Node 0, zone Normal ...... ...... ...... ...... >>=20 >> cat /sys/kernel/debug/extfrag/unusable_index: >> Unusable index at order: 0 1 2 3 >> Node 0, zone DMA ..... ..... ..... ..... >> Node 0, zone Normal ..... ..... ..... ..... >>=20 >=20 > This may break existing parsers of this file. >=20 > And that would be allowed if these files were under debugfs. But > they're under sysfs/debug, where the rules are less clear. >=20 > Still, it's unclear to me that the benefit is worth this risk. What do > others think? Thank you for your reply. This is something I didn't expect. I think it's be= tter to keep it in its original condition to avoid compatibility issues with= some tools.=