Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp540135lqd; Wed, 24 Apr 2024 09:30:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5RPZDJtE7jgEMBvz+zgiCsi3T/mTYGwfon4UJHFCnJOGWAUT9F0K4g9sBYeq4fG5bOtotyc55YxeJOYHh9J6gRelkH9JdNVj5br/jyw== X-Google-Smtp-Source: AGHT+IEzT2E0tbK+8fgbK21z+jrIE0vaK/1siqWKwd6ENLDNvUpWZx5ju/LbElXhwD2GYrjz8xTM X-Received: by 2002:a17:90b:8ce:b0:2af:2ca6:f14b with SMTP id ds14-20020a17090b08ce00b002af2ca6f14bmr2586634pjb.0.1713976231879; Wed, 24 Apr 2024 09:30:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713976231; cv=pass; d=google.com; s=arc-20160816; b=d6a4I2nJlktrzIFyNDHTsAmeWzSVpvs0sCaKLaKMg74biOdGW+twoHeszjbxwQfaDU HUvNoi9VsyAil2xo1qvP+gWIFYW66MVtJHoXe6QzTdQ3OombZ/HSe4wObJyNuFSeS9DS qujm5V61EMzWQf50XegXWhCAxmjYnk8t4KvZnjuTk94w843LUrBYewOiRQI83f6bzJPJ 9AiPqmTyfJEGhUBHpRFN1lg1kZn6amC3Gvv30IBKiHJxw4Y70gnvQshDgYXMScUyiWws tRj38/03QCV5OFJaz/BKGeMtkVKeqhcJInRUivOtDZtMWbzY0nni7RPQPOWT77KqwrcJ k8dQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=jSeaEGRQ8F1CsZI2HaJ9BuNExNEc6Cm+h6xnz6hKmCA=; fh=l07ydw2xcDVod98imCn84650zU3zpX+6RRE9V2BjG84=; b=0w9DEpcAJSZLpGZlQBpZab/PU0upnYyHYojZYLaANHG4pz+yD2htl5HwZCAFZwHt5k /4tsYJ5m9zWzt0mJ3o2i1VB0u1dWF3dQkir5Ozj4DkbsHKeMexSwbb2fD8XUIch3GWvA ZVO516JhLoxqc8Gc67ZRpl5gNzrRYTRxudrLtdC57qzXxp6frPs4vDNqQ6C3U8AicVdv WIqGjuxhI/Cv/OqEjMe1EZ/Tnj+9Z6DyN7nRbcNwnl2xiSxdAwQnAd1ltojuxFFNqBAg JHFudbVWkndI5B7sdJrn71sp4lrJ15znZ+sDmgWBnHNUm0vaskq2MVW1jL29XkbiCx9l 0DrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=baoMUWEX; 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-157264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m10-20020a17090ade0a00b002abf98da692si10922988pjv.70.2024.04.24.09.30.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 09:30:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157264-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=@gmail.com header.s=20230601 header.b=baoMUWEX; 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-157264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157264-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 763F4B2A244 for ; Wed, 24 Apr 2024 15:56:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B702161308; Wed, 24 Apr 2024 15:55:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="baoMUWEX" Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 2EB7713DBB2 for ; Wed, 24 Apr 2024 15:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713974107; cv=none; b=n6esy72TuZnh7Bz4dlDt+blJYg6l7ij13249sRU6SoqaUueHWYMBsF5rf19bFhzIgRP7BUR5NoUiYeU6vzSTdg16Owgm67T3h+w1u9UA61M+3ET5sGElfTAfwSH1yekMQNrAp4Xs35yHFHgI/5vDdA4Dv/J7LHKDL0phlW+hXoM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713974107; c=relaxed/simple; bh=HsMZly62yk0LjIJdFSVMMZ+wh/E5GqErZg/3nEX6vN4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=lZQA52b7TV5nOEHv684rNE4R1iJenK6rRYOsw4rzygl6ZrXy5Z+ktTkp4thOlGa/rTFJp4kTzOrhLMu5HF8bgMx9vlUwvvtgZEvlBCkeUZKQM8fPq5yLlYRS3bvk5NU+SHDxqZY/fPeWg/8v87UkcU97kFyS9pGli2MB8NED9XI= 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=baoMUWEX; arc=none smtp.client-ip=209.85.208.173 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-lj1-f173.google.com with SMTP id 38308e7fff4ca-2ddc2ea2091so32188191fa.1 for ; Wed, 24 Apr 2024 08:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713974104; x=1714578904; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jSeaEGRQ8F1CsZI2HaJ9BuNExNEc6Cm+h6xnz6hKmCA=; b=baoMUWEXgw4BI7A2oVUcYwcjJA6/xe68U61DzoTIZxFdbdpe3QLRoTOVYlHgZx4/cK knSqFqyQfbm+XtWFsQXs5xT5i/saFwuvjcjc1fKr2JShktq3iK0e5//0lmKZj4HqWn8b FLRRvNY0aVdzogCQ7QQdXpnBYx4to7WH2aPNRnGaoAc0t42mvHeNA3HnEDZD9Dy5tqD+ 8P0mEekk6f0OlobZMz9ASkrFqyYL9XX1/laYdyJDQLll8N2j12bU2adCGV5Hzrdgru/F LZyzIuLkwss2ZssF48BonuYSICmWutEsdqW7rWN4a35n1xELB3owHwt4qOkIi0JHInPv tj/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713974104; x=1714578904; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jSeaEGRQ8F1CsZI2HaJ9BuNExNEc6Cm+h6xnz6hKmCA=; b=Vji6akldtctwRhzTDsPOB2Ra1gqEsS0Kgia2SMUEjZrNg56DExpZnna2cGOBCa6FZJ /CVNmPLFJl9zCk6CxdGg5u4Jn6FMod95/ljE8ruqirjYLMZM7veUT/hkvab8LFnE50kg m5X31E+uxezwD11ybiZjybmJNrzSMNByccQFpuTjylQlkca9Wha7hkkiLlasbxhRhNNQ sqHV6b/FtYo3Az31zN8WXqn0Wx3L/KK5pMb1CClCo7r+IvygVi07Eb54Seud+uE2lXh6 nfOZj5+0jEv2MSnxXPtkuZX1NUZDp24dBdVo0TioI4SmantZ4ZhXdETH10k8Mk7vhSv5 GPmQ== X-Forwarded-Encrypted: i=1; AJvYcCVefW/WlOoyYEZTkKzSxkrfz+4PiPJAvplyDmdrLUTgZ33l9sCWNEsu40MsR7OJFiqr/NeydNgeQUZeFroMBl9AWtA6ZQTIpEuCVPSs X-Gm-Message-State: AOJu0Yw0uYTfimSglcwofrVrHz5Zm5WCqAJhidDtz6fzymi+UWw6oKic m4c7fiikNkbW2sjrbhJwWovMXPYsmO6CaPvQBj8DhDHYY/D7pLAH/RRR6ZRYCaxGBNy+HaxOgWC 7Gnw9ZrPaAXn4isE8lILh7zjNWPE= X-Received: by 2002:a2e:9799:0:b0:2da:af46:2fb with SMTP id y25-20020a2e9799000000b002daaf4602fbmr1842270lji.15.1713974104091; Wed, 24 Apr 2024 08:55:04 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240424135148.30422-1-ioworker0@gmail.com> <11455268-d522-4b3a-8961-892e42cc50f0@arm.com> In-Reply-To: <11455268-d522-4b3a-8961-892e42cc50f0@arm.com> From: Lance Yang Date: Wed, 24 Apr 2024 23:54:53 +0800 Message-ID: Subject: Re: [PATCH 0/2] mm: introduce per-order mTHP split counters To: Ryan Roberts Cc: David Hildenbrand , akpm@linux-foundation.org, 21cnbao@gmail.com, baolin.wang@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 24, 2024 at 11:20=E2=80=AFPM Ryan Roberts wrote: > > On 24/04/2024 16:00, David Hildenbrand wrote: > > On 24.04.24 15:51, Lance Yang wrote: > >> Hi all, > >> > >> At present, the split counters in THP statistics no longer include > >> PTE-mapped mTHP. Therefore, we want to introduce per-order mTHP split > >> counters to monitor the frequency of mTHP splits. This will assist > >> developers in better analyzing and optimizing system performance. > >> > >> /sys/kernel/mm/transparent_hugepage/hugepages-/stats > >> split_page > >> split_page_failed > >> deferred_split_page > >> > >> Thanks, > >> Lance > >> --- > >> > >> Lance Yang (2): > >> mm: add per-order mTHP split counters > >> mm: add docs for per-order mTHP split counters > >> > >> Documentation/admin-guide/mm/transhuge.rst | 16 ---------------- > > > > We really have to start documenting these, and what the sementics are. > > I think the diffstat is backwards; the series definitely adds more lines = than it Good spot! I'll sort it out. Thanks, Lance > removes. And patch 2 is adding 16 lines of docs, not removing them. How a= re you > generating this? `git format-patch` should do it correctly for you. > > > > > E.g., is split_page_failed contained in split_page? Is deferred_split_p= age > > contained in split_page? > > > > But also: just don't call it "split_page". Drop the "_page". > > > > split > > split_failed > > split_deferred > > I guess we are back in "should we be consistent with the existing vmstats= " > territory, which uses split_page/split_page_failed/deferred_split_page > > But here, I agree that dropping _page is nicer. > > > > > ? > > >