From patchwork Wed Apr 24 13:51:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Yang X-Patchwork-Id: 13641892 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56BB1C4345F for ; Wed, 24 Apr 2024 13:52:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C9DB66B0205; Wed, 24 Apr 2024 09:52:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C4C736B0209; Wed, 24 Apr 2024 09:52:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B142C6B020B; Wed, 24 Apr 2024 09:52:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 8E4976B0205 for ; Wed, 24 Apr 2024 09:52:58 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id E422D1C1613 for ; Wed, 24 Apr 2024 13:52:57 +0000 (UTC) X-FDA: 82044566394.21.2B2430F Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by imf14.hostedemail.com (Postfix) with ESMTP id 2800110001B for ; Wed, 24 Apr 2024 13:52:55 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cKWQ8sOm; spf=pass (imf14.hostedemail.com: domain of ioworker0@gmail.com designates 209.85.214.181 as permitted sender) smtp.mailfrom=ioworker0@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713966776; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=DQTNzvf5GW9mOOhD2D/EI1Af/BZi/6EZJINWfEn3RP8=; b=JY4qcTI9DIfyJ7NtLXq7yJSurmi3PE9BhCr2sQNBzjcedtyRWQuFNeo2OQrl0RdgzmqnC/ 1ZjUH+w0QTRrM6tDZ0dT3plgtILmX5AEDx2vfzPOsznc3LY/llkX9hNYUTP/ZF3WAcqqIK XkP/aDc3NL5+aBB6wE3HrLbRuGL+Qzo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713966776; a=rsa-sha256; cv=none; b=7IXIjIxGrsQFxQ9I/QsXm0n1W9mygL/eg+bXHsOm1RciE5nCI2GPf7SW7ETxtBdcTUA5lm +RgAPjOBDi8IZFsiU2x2yAEcAUEoHabIcEwbZBBqVtedmPtODam3iC5lfUU9MpdArh3BxH sc+NpNoZ1mReyRsckEzBMK8OrFAyiGY= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cKWQ8sOm; spf=pass (imf14.hostedemail.com: domain of ioworker0@gmail.com designates 209.85.214.181 as permitted sender) smtp.mailfrom=ioworker0@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1e2b1cd446fso56748245ad.3 for ; Wed, 24 Apr 2024 06:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713966775; x=1714571575; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DQTNzvf5GW9mOOhD2D/EI1Af/BZi/6EZJINWfEn3RP8=; b=cKWQ8sOm2pxXyPJATt3TkVKdrEtIrmw8979wlsxdoYxdSx9I6TTsdJBKTU3fugtwNV dguIxjDo1gAQ3ljJWHKsMgxM1ttSBrTtvHMnrctqDvXWGLZVQBzCt7a+Sm3jpt7BBPXj 7LRRCb62DXUVTRQwQBJr4gVGu/m95kPMDXHBoWFAL6XSdNKdfg/xHgY6MhzppRq10f6b tUm/xOVksqrluXoRkiQ6hvbru7onFQOQs4UBuH7wSNxbZ3akLVr4aPn332TeDqBdno1f 1qqr6un4jaFkXfjYxB3NNcJJ2YRHtGvobdtJrT5L7BUBN1R2EgB23xwD+IHSwvM03T7u 8dhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713966775; x=1714571575; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DQTNzvf5GW9mOOhD2D/EI1Af/BZi/6EZJINWfEn3RP8=; b=s+5VSVxewKg0a//vIbqOFn70bhwhziaO8X2f9nIrQhOyB5zLvmFlek+EcCkH2G+Oi9 hGvvF+4O4+dzVyB28kS2MQwamuDavvqJc1I5Y6EoTfY6N/KVpKwj1gDCFkOJL0CZnHNd rKAcj20bRX+TY0WiYrqzomwhV8mCSo512MfWDeo5sdcQDfz+NTjZmKIuf4tmwBOvHs0J fBOdL9hm1sthnWOJZ/RLGmOYQdQjbj3r/TXGzmLfFgvfuV92uQsadWBvvEuBWAhequqr tw7lXUrQ2y4c/nPu0IwsUvLIJoAdTIVrzlyyu1MTdmPzv5gK4iJdjReQpNT5zJvT2RMs ciAw== X-Forwarded-Encrypted: i=1; AJvYcCXMymZCBIRDcxyvYeEiIK3UlWHcP8tD3oa7HZpfbQggxcKRNGDbETDaxfThRRVtTNglY1+AdfllCoOfpYvJ7Z+j+9c= X-Gm-Message-State: AOJu0YxtfDuxdDI4GmqYzFzRuzu6ctNpB1cU6uXcZAQv4mmKOQOgWT/Z M2NNxhuBuGiLF3kCLQYP+g+abN905GRYl6cP5K8S1BzdnsNsHvSG X-Google-Smtp-Source: AGHT+IH4PwCvrV2DDgiYRyPxda7sjbopLsIypSUYMZATJ4IXqnD+I8NdGBfVhJxpFt+DN9+GAsxeYQ== X-Received: by 2002:a17:902:d50e:b0:1e4:3ed8:e264 with SMTP id b14-20020a170902d50e00b001e43ed8e264mr3357855plg.43.1713966774830; Wed, 24 Apr 2024 06:52:54 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:52:54 -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 0/2] mm: introduce per-order mTHP split counters Date: Wed, 24 Apr 2024 21:51:46 +0800 Message-Id: <20240424135148.30422-1-ioworker0@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Stat-Signature: sn3duyohdan4niq4g8338x9pk1hzigp6 X-Rspamd-Queue-Id: 2800110001B X-Rspamd-Server: rspam06 X-Rspam-User: X-HE-Tag: 1713966775-146586 X-HE-Meta: U2FsdGVkX19XtM7+YnYeE8LS0poIaJNtZtN1qGxXAnL6X11txGM3O1PfbqDjkZIr+TgFhv4q2wbIAkrYvYnh1bWdo5zhbUV4QMyhpna1c8wX+bRkPdbr9sBCezYVppYgcC0Al/v1oqrAaaouJFWc8O7/NR5s2cGYE0BvTtA/ttBinDd33icAODLrlWcW/Eqsq7wpqvgsO/+mvOCcIaeiw3Q1HPtjAb4ArC2fpPJngjesvFvsyvEfNwTsF74bG1cv7NSWVPp7+efNyQf8gxb4qy2Alr5AJjhv47yFr44uXC0i9OC1pfiyDdAxJaXV35LB2d+y1A0fiaMdshqKtKfgBKrl+WAT5DpLdggF0SVequAx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ogofilter, spamicity=0.000383, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 ---------------- include/linux/huge_mm.h | 3 --- mm/huge_memory.c | 14 ++------------ 3 files changed, 2 insertions(+), 31 deletions(-)