Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp526915lqd; Wed, 24 Apr 2024 09:11:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUy3KiKhDYB4WtvpIFVxNjkv00HZuImTAN0aECQTqY/3Gb3DoxifBEHdAQx8Z+ywwON/dqGF/Mm1DJx/lsM4IxdK6mN+uw7ypDmnBNr+g== X-Google-Smtp-Source: AGHT+IGNXOqFM5IrPCTb1qkiy1SjfFpyPCugWraDshegqPxI2z0L/l6OSLrmNTm1YBe2bkhrf548 X-Received: by 2002:a17:90a:5084:b0:2a6:217b:4492 with SMTP id s4-20020a17090a508400b002a6217b4492mr203120pjh.3.1713975075421; Wed, 24 Apr 2024 09:11:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713975075; cv=pass; d=google.com; s=arc-20160816; b=F6Bz3Ig4VMCI/L27chJ+bKfJe5FQNNyk557UcjT8kFyA6Kh7RKfRI+vly2jE5Fy08M GqFJ4b8/1vn3BVqdLTh/l1I18cDt6bp3Jz9o4dK/rw4x1DZuVPubHWjFKt/IY+qcxRVj n0AKMOGHx41f+cix5Qe8Ea2Q6G59ueLd6ZlpxwVv2kh/LrY1HVqQ2yqeJVZKrsqBYlc0 kyNpr6e0q2HXbhVHuZ92bmfG2NUVMA0tL8dHcm8chnT+eGbcaX+aJ8ipSC6Pa7xVp4Rw qPRMXJ/QJKI1AjJhzqR/ZKEZmEDLkFfzf2IXis2Qx88qaLE3v0uAWFmw9rG+pw9Jmom0 kYvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=fDOsMc73R7MiimUpJpZviuflRg4s2vDknSq57DatuzM=; fh=hMxBBCQBCbuxWWWqd/RUXoB/8W3Qr0rSNsaZDxZJv+4=; b=yB/ceL18rDdsxSSH2P68DlArBLh4Ga2S7d6eJO03CQ+AcCQaMQRki/U4UrW9fwLzj4 HXI0HXBI/TGKZ7O9qWiQUdAcCG+D/LFKgpxIgayPjASmsbcn1lO25V8LuE1d4jBpOTwl uOtHl+vXw3mEWRyL6+2IFBagP7E2LJDsIISFkJLwJeEbQYPi+Oel7/upzKiS9XwjrHDA KMwH5QNuP02K9a3GZeDH7w5euDBt6wj6RwDmMrcD5Mubj9O8fsV1vtjD79RqksZQK2uQ jAo3SoTccZttsZvlkreGLuq1L3PO45g2Q9/meZbxtz9Hjg3RWnpTjGVxwgE4YVGLNrah D51A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-157211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id kk3-20020a17090b4a0300b002af4fc1da69si1164054pjb.18.2024.04.24.09.11.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 09:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-157211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 BF5D0B2C4B9 for ; Wed, 24 Apr 2024 15:35:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3F8916190C; Wed, 24 Apr 2024 15:34:56 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A14D1607AD for ; Wed, 24 Apr 2024 15:34:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972896; cv=none; b=B3mDeMbH6Ynyz2z7+v6nAs37o/AgoWRvCtOn2Yp/0ID0tZnv4m+VdJNXY3sdL6/b0oBW5rk/NQk5Ci6z2KoaDrtZuMh9XnjIkLDY82TpOG1ou87qDGKucsFBVTcS2WDKc5cji2z0D3FFNH6q+zuHEFCR/ZeTraMElb4xWGLKxnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972896; c=relaxed/simple; bh=TttsruVEiGpEdTihSdZHPGzRR4e3nj8xOXWaY9wj/K4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=L4YDUGLQ47iHYgOsjxabxlImW5JymFXT3Y/08/cUVAubPbTe9nAlLAHpaYrnrDADQV+MIpMptVXrY4eR4aEUeQgb+bhD88uhQKmTlWsIKgcKucR+L8s3x+Sz6JG6NVvjn1g/F6JSV/2MONQ8k8D4kereGeaCkC8Mn4drSJKQDd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 329421063; Wed, 24 Apr 2024 08:35:19 -0700 (PDT) Received: from [10.1.25.156] (XHFQ2J9959.cambridge.arm.com [10.1.25.156]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A55A3F73F; Wed, 24 Apr 2024 08:34:50 -0700 (PDT) Message-ID: <0534d647-0753-4c34-943c-e705db1fbddd@arm.com> Date: Wed, 24 Apr 2024 16:34:49 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] mm: add docs for per-order mTHP split counters Content-Language: en-GB To: Lance Yang , akpm@linux-foundation.org Cc: 21cnbao@gmail.com, david@redhat.com, baolin.wang@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20240424135148.30422-1-ioworker0@gmail.com> <20240424135148.30422-3-ioworker0@gmail.com> From: Ryan Roberts In-Reply-To: <20240424135148.30422-3-ioworker0@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/04/2024 14:51, Lance Yang wrote: > This commit introduces documentation for mTHP split counters in > transhuge.rst. > > Signed-off-by: Lance Yang > --- > Documentation/admin-guide/mm/transhuge.rst | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/admin-guide/mm/transhuge.rst b/Documentation/admin-guide/mm/transhuge.rst > index f82300b9193f..35d574a531c8 100644 > --- a/Documentation/admin-guide/mm/transhuge.rst > +++ b/Documentation/admin-guide/mm/transhuge.rst > @@ -475,6 +475,22 @@ anon_swpout_fallback > Usually because failed to allocate some continuous swap space > for the huge page. > > +split_page > + is incremented every time a huge page is split into base perhaps "...successfully split into base..." to make it clear that this is only incremented on success. > + pages. This can happen for a variety of reasons but a common > + reason is that a huge page is old and is being reclaimed. > + This action implies splitting all PMD/PTE mapped with the huge page. What does it mean to "split all PTE"? It's already at its smallest granularity. Perhaps "This action implies splitting any block mappings into PTEs."? > + > +split_page_failed > + is incremented if kernel fails to split huge > + page. This can happen if the page was pinned by somebody. > + > +deferred_split_page > + is incremented when a huge page is put onto split > + queue. This happens when a huge page is partially unmapped and > + splitting it would free up some memory. Pages on split queue are > + going to be split under memory pressure. > + > As the system ages, allocating huge pages may be expensive as the > system uses memory compaction to copy data around memory to free a > huge page for use. There are some counters in ``/proc/vmstat`` to help