From patchwork Tue Dec 17 08:55:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baolin Wang X-Patchwork-Id: 13911404 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 BD3A8E7717F for ; Tue, 17 Dec 2024 08:55:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 36CF28D0003; Tue, 17 Dec 2024 03:55:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 31C448D0002; Tue, 17 Dec 2024 03:55:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E4DB8D0003; Tue, 17 Dec 2024 03:55:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id F118B8D0002 for ; Tue, 17 Dec 2024 03:55:52 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7C919A0560 for ; Tue, 17 Dec 2024 08:55:52 +0000 (UTC) X-FDA: 82903842168.07.2B79BF9 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by imf30.hostedemail.com (Postfix) with ESMTP id 12B2D80009 for ; Tue, 17 Dec 2024 08:54:51 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=linux.alibaba.com header.s=default header.b=wzzcfwRe; dmarc=pass (policy=none) header.from=linux.alibaba.com; spf=pass (imf30.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.124 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734425722; a=rsa-sha256; cv=none; b=HEJNoCGSbdlHWpVm8Q+ZZV0o80N0OOp9Ne0N++q9amHVCOqChBW4Nja/dr4vDGpR0ENEKZ 0BwtW+qlndUbXn+f/3PyhRn6nY7pUpViZQjjmVFvnCwd5rZiDMoXhqsiLFtQm2mKUh0LTK Vewi0RT6JypcMLd8lB8d2YZEu1KVHGg= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=linux.alibaba.com header.s=default header.b=wzzcfwRe; dmarc=pass (policy=none) header.from=linux.alibaba.com; spf=pass (imf30.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.124 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734425722; 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=4A3j4D/qkXXSi7O+ZvvinsCXre0P2/UY3O6e9ysEeDU=; b=4biltRDEt9fNnfY/BNrNXz75IDKvfq4N27+YJ9ZiXUg0+yi6qaiCNkewXkhCO174mvFLPR JS/rLqeU1zMyllC9saDb2YQ1Vd+Iw1Z9PlQDwNqsOx7VYVayYX8flmoxsxMNpgZl3b5d+y 4tdR500Fnx19uaTB0luVX5opI3kS7+Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1734425746; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=4A3j4D/qkXXSi7O+ZvvinsCXre0P2/UY3O6e9ysEeDU=; b=wzzcfwRenA/b4qYb/ko3X9mw5sX7LrIo28KKsM7kI488ZyvBwxFmSL6UTJu0tGxphdhHWt6wN3uKR89d4rWLmlsAj8uejXLxYYcTvgSq/a0wI6Xrv07dZ4OG1eb84y1ftoHhCNglAIZ3ac045IhwthLa5VGs+OT6hYUtBJwizyc= Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0WLiDqOo_1734425744 cluster:ay36) by smtp.aliyun-inc.com; Tue, 17 Dec 2024 16:55:45 +0800 From: Baolin Wang To: akpm@linux-foundation.org Cc: baolin.wang@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] docs: mm: fix the incorrect 'FileHugeMapped' field Date: Tue, 17 Dec 2024 16:55:39 +0800 Message-Id: X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 12B2D80009 X-Stat-Signature: 4nz41gwn8eyepg5976zmgoxj8docxx13 X-Rspam-User: X-HE-Tag: 1734425691-548409 X-HE-Meta: U2FsdGVkX19SS0OsWvrlNeVeycVDoxQSiXpaN+0K7oMnyrP41wQGwtWvwTuObtqJPz4F9nATX9u44B55VuJFzVstehyK3GTwWiyg4er0e0Dn7l36XnO2+nvynkn1/CWaAkpqe6y2F12iwP4ZR35S/kIWZLaNeT07t0jtRId3RmeHwm2NzKUFrb5VlveIvqZAnFiMDoEwEcoCIxohuvPFEQD/2ndqTfFyGYoK2aqoCRqsQ/oEi+14EKBzOgLnFB7h7lYOiOittiJAVIUBIqjJdjqg2Wih5otmrXkF8BZLx62ZQr6EYLEVRoZejnhW6IFqx1ydUKcLcpHFef+c1NU1P1mtnikfrU5tTY1x0L5NhpYdUa9VadbfLmtAHC8U08t5RIJITmbg7gkVFZTUVnJlhQb/8jIi4Lr+1G64WuyGzGo+1Eotx+xTY/mM8865Q6cU90HhPFhrnep1j1UzNxUNaI9uxEkY1zHi4BteQrCAiUSh2wbrqN7B3HO1aWWe6i1d9K6/3jI2MTAuiOceBC0Sq2p3TSRWsJDcUB4ESkt7Aw4XoBGhWTUEpLy4t+p5Iilc9U7+NRiORH+n/ljn6uDImVBtGHElhYlbJSF9Ku8c9b5msOp3gfTBpcjYiLW7vJ8jlSonkYKj82dparWSq56B9Jyqy6D9vB5VfHC50y6HPnescDr/cniS6k9mSfxZt/0RkC1C56GgMCWwj4hj436wTjn+REDYLTQruUPB7/b93v72q1MeSmqotez8SaHAtaPomS+1dNzbiDGGrEe5kyWeF8CuQp2qhaGOQRQRa1LaWfpBG8SXiQEUkEizLGdP3s9YmQWnwopvzpEw2TgyyY/zdeVcIlisNAj8USzveSpiE278BXXT6+jGqmW104hV+Rzg6MqzpLeopTAA+8syjLKs+uaMef5ZRXWQHVKS0ow1jFxi4UxpOq2FeYTSOmJLstmETb20xhgJbOC90cwIy9x 6ZliG6cC k/BSoT6sv3EHKa/Hy6bmlM06H/GEmVYYgADKdx9UWHDcb2TNHPoLgHehyUfdh/+BLUEG0d7LyxBrJ+zjZC84cPkSE1sfMVHoR1pwVrLYkbuhjWK/0FDItjx4Fjj0cOyWU56GB8NF+cc6cVA1PMbAmYUbb+3Lld0h2fP8BaAY7DpUhjw0aCToosyudXPdkTfRp+FOxbUqoM81cnRRrHt3058LwzgWUlrcPRZqW X-Bogosity: Ham, tests=bogofilter, spamicity=0.336330, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The '/proc/PID/smaps' does not have the 'FileHugeMapped' field to count the file transparent huge pages, instead, the 'FilePmdMapped' field should be used. Fix it. Signed-off-by: Baolin Wang Acked-by: David Hildenbrand --- Documentation/admin-guide/mm/transhuge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/mm/transhuge.rst b/Documentation/admin-guide/mm/transhuge.rst index 156a03af0a88..dff8d5985f0f 100644 --- a/Documentation/admin-guide/mm/transhuge.rst +++ b/Documentation/admin-guide/mm/transhuge.rst @@ -466,7 +466,7 @@ AnonHugePmdMapped). The number of file transparent huge pages mapped to userspace is available by reading ShmemPmdMapped and ShmemHugePages fields in ``/proc/meminfo``. To identify what applications are mapping file transparent huge pages, it -is necessary to read ``/proc/PID/smaps`` and count the FileHugeMapped fields +is necessary to read ``/proc/PID/smaps`` and count the FilePmdMapped fields for each mapping. Note that reading the smaps file is expensive and reading it