Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp431915lqd; Wed, 24 Apr 2024 06:53:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgKL8RWvFhnafOEGbA/OOOr4jVVuPPGDqeiz7NobcZH8KVNHa+R/DSGrgaWlQP1+kXfSQ85jK4D+sGpoD3dNokrOjKeG+WqH0ewbtQVw== X-Google-Smtp-Source: AGHT+IENi1y68hCAhFwpjcbjSo1dIFKZhnVRwrL6Wcq9SsKaxju7mW+qmIaDZAdo/GwaR0BNu5y2 X-Received: by 2002:a05:620a:102f:b0:78a:51f7:e90d with SMTP id a15-20020a05620a102f00b0078a51f7e90dmr2714404qkk.56.1713966804006; Wed, 24 Apr 2024 06:53:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713966803; cv=pass; d=google.com; s=arc-20160816; b=lcroFxY/EA02qLas3ZB++dKPXSiEAzsCxLX1Os2bMmJM3pj4yBB0CubTbNDAKWFdFx Zb+5L/eWRZK6Ags6aaULgl6QA/SlB8rnnzX/6PT2Sxj8rSm7K8Lm8xvGEwMxWX0qPbLf jVR0gNBroF4YkXYk1sIAnVyZQYN+dhcABJrhiZs4gHj5C9UTp80kQ9NLy5Z+uq4oF0Yq dqhzLDFhabIKmky03Rl2TPc2H5JTekQ/utt6WXlTny6oulgbpXFUrwtxt5zFP4u3zXi/ elbn4d6XBCd2h2ncfjJ7qgeZeB3j150XQrypiYdnzQmPknfojg5fcxpDydEoBGtOhU69 n6cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8eSXSlkmErEctEhBOKS7ewxnrkbMKKDa4aGhbCp7pwQ=; fh=oM003BDRiZOQy5mOComVpTx/Q70N52PlSQMLptneTB4=; b=pVV1913CDCCIxrsrd051bmsWnlhxwmuZF7Ehz4ZXsL91Tz2/Bu55zUgnW1zaPhDU1Y gsJRZ5iEMSUpH4teWZ9zpoCODBXVs26nUBE9PrZzy/kvEtSclgg1FQ6w+jvUbqbFvGke hZk+MUNF6otm+U4UVy2vwgjgNKJfn6P59vG507ZnQeLJGXl4bKitJnmXDZhLFprUnfWt xSVGLguZi270b/LpzFVTqi4PowL4fWvFofsqMrdZ9gt+iIdN11wtdLrZxiKUHlLm9e53 9f7wJG8jTOgj7YfdaYvd7iH5A6Rluvdi9/BHjcfV+t/eeWstPIstLLEuDs9UvpUU4JM9 BUgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a2OjzLRa; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-157012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u4-20020ae9c004000000b0078a4137f778si14778630qkk.227.2024.04.24.06.53.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:53:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a2OjzLRa; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-157012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B9E481C214B5 for ; Wed, 24 Apr 2024 13:53:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E530815E211; Wed, 24 Apr 2024 13:53:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a2OjzLRa" Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 D702B15E1E2 for ; Wed, 24 Apr 2024 13:53:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713966782; cv=none; b=Pzg4458nzbvhazlN8LuQ8MIg2+BPWNawA9+cfFx72Jkboyqc9u83/FQ7F/0W86VPxovsreCKT2uXGovkOgiWLIVsYaeqqGbfcF02XQsTdqHHOrsrMcIN8l4fh+7TDpXdhSeuzo3N8RlsRr5ZW7191EkM+TMOHJCEhvV1fTOLnYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713966782; c=relaxed/simple; bh=cnUuGQO+at3umXaTHjxDsTD3dVrilSiLZ6MuBVufiso=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Lko8KR+BIV1TggVdx+nJclc5xvgUMGN+Xs0GMlNWJpUafJ7aV6ZAnfiqK3fYq1VgLnh6yK4E8KQHEBdNHOQEhDDDgR848MvSO48+sucU+Loyqv06F4KwdqPG3pWSlixnvBlMeY4fBw3gV17Db9LUrb196GAjYd8DmbPmBA0pYgQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a2OjzLRa; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1e9ffd3f96eso20274045ad.3 for ; Wed, 24 Apr 2024 06:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713966780; x=1714571580; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8eSXSlkmErEctEhBOKS7ewxnrkbMKKDa4aGhbCp7pwQ=; b=a2OjzLRaG4CNb0Zy9lK4lycKRvbn2lknZCsmsIckRcfixWI1KYSwRFiLYEhmp7p+kN vbAeyStuZqPkFoaLak+CoTxHaQvzJ3O6xwO88Fg2ZMZvwwACrSbQe54+UbwsU0Za0gVE fzQ4kpsXgFWcZil1uJ5nxhFekDYmXoJCcbTe4pU1ZCbmk0LqWUsZU8eZ9RQaCB4H/yUt g5dV9lR5bvN3ShcCQRXurWEE5Daowq4aa0f0P2dZDm1Z6NJm6VVqtqTdLPdkzJrnsC6q ATslqz2twzkG9Ei8v2cAHFrfG+T00PQ47WnTqzPBVPocR+YFsolnzN1kPGBZh92l+uvP nG/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713966780; x=1714571580; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8eSXSlkmErEctEhBOKS7ewxnrkbMKKDa4aGhbCp7pwQ=; b=RNAeVdLWLOWmGBC1RTh6OgbkzjDve6UbY39dd3bO7sa/5RNiQnFw42jzsvhgUjge5u O57LF44cM24dKpDJhwHX/CewlneHIexIz6J0WSYEN2qiPin0CJIBdPBr8CtptvXRyyyy mrhT8RDTIMYtr3e0UEiB3H7e+wBZEXaSMkLn6AFL0KbHENr7OE4xrMzL4hvs8cMINH5N lnIHDuO3FwBk18ogSqTz7uziKfX2YllCXkfZlYudndvKN9gEZqzoPfjsrknmxkpnexhV e580jOjWnLD4H+0y0tbxnMjQjtPhQzlHKyfkenBWE8SaIpeFAZrOcos43nSzetULyLe4 +dFg== X-Forwarded-Encrypted: i=1; AJvYcCXiESFWMhfq1Vm5YjTKc79cJVFMxKTHu68zTVqJeSsjGpIdApgb1DaVAGS6zIBjvxDonCUphwZ0mN8ZJ8SXQ6lYEX8Dh3gvDs0AaS7E X-Gm-Message-State: AOJu0YzYYV1YBeWwstdXzk5W/1nYlHjjGlVIQY04zgqGaXhaoS+6Sqql qW3rHlXtFel+IC7qmIokko51Gz3L39m2qHkoYJg3XlnotVAtBAIV X-Received: by 2002:a17:902:ecd2:b0:1ea:9596:11eb with SMTP id a18-20020a170902ecd200b001ea959611ebmr406501plh.60.1713966780250; Wed, 24 Apr 2024 06:53:00 -0700 (PDT) Received: from LancedeMBP.lan ([112.10.240.252]) by smtp.gmail.com with ESMTPSA id c6-20020a170902d48600b001e89c729843sm11140235plg.228.2024.04.24.06.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:52:59 -0700 (PDT) From: Lance Yang To: akpm@linux-foundation.org Cc: 21cnbao@gmail.com, ryan.roberts@arm.com, david@redhat.com, baolin.wang@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Lance Yang Subject: [PATCH 2/2] mm: add docs for per-order mTHP split counters Date: Wed, 24 Apr 2024 21:51:48 +0800 Message-Id: <20240424135148.30422-3-ioworker0@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20240424135148.30422-1-ioworker0@gmail.com> References: <20240424135148.30422-1-ioworker0@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 + 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. + +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 -- 2.33.1