From mboxrd@z Thu Jan 1 00:00:00 1970 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 6604AC43334 for ; Thu, 16 Jun 2022 17:49:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DDDDE6B007E; Thu, 16 Jun 2022 13:49:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D8CFD6B0080; Thu, 16 Jun 2022 13:49:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C06286B0081; Thu, 16 Jun 2022 13:49:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A3BB46B007E for ; Thu, 16 Jun 2022 13:49:00 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 6A5386117B for ; Thu, 16 Jun 2022 17:49:00 +0000 (UTC) X-FDA: 79584834840.14.1C26F03 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by imf24.hostedemail.com (Postfix) with ESMTP id ADE4C18007D for ; Thu, 16 Jun 2022 17:48:59 +0000 (UTC) Received: by mail-pg1-f176.google.com with SMTP id e63so397264pgc.5 for ; Thu, 16 Jun 2022 10:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cbrfBk2owseXTl2TqGluY3ivP+501euUdLqfR5FVpCc=; b=F7+G3ESb9pcGIuGXoF2O/H03YvYsGpLhfNOWSQqYVP5yFLNGleH39xqFQ8cWIZuFho xg3heTbq6ePKtRc8GFH0juCyjezdh2hqyFjPBLzT9941kxHwTK7yLUeKVkiQKo6mDCxu se3LMMGqxW6HiTvu93X33WpwUBs73ecdVSU001ye3aHuc0r0loPqN+9Uj09NMTU9BWna ENe8DNgwYHvtpA6ITqyCZUYZN8mAOAXoWKj0lirO78K389Cubg2uLLRLQv4c9eITuXpW hzCgRhi/7HJwNubd85XqcCfY+TlKwnYPFZ+SI68tWv28Ig/OEhTEMpCtXj3Cf1NQPEVQ Vnzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cbrfBk2owseXTl2TqGluY3ivP+501euUdLqfR5FVpCc=; b=SgpKK4aIvyBh6aLVH7Vt79Sys7d2Yh6UMN9nGHfbi8/cWw0i2VM9CRV6VidlEeGwTD o98VQjTNwicrVRL2JOfGI/6FawiC8eoABLnKSmz/PhBlwzDFmh57Th5VaieJ6v1zsuuF XO0KFq8EytVutzJR1e+H5vn4YZCXKTM8uAAxWDl1S77MXdnuYw+DkxoJocH3Z/bzUDa7 zhepqd+u84mdzveK8yqRaYNADu0qsGnjfD+GvCb89zCFGHeP3btBkSEGTNSOWsOErCnM tvykdyY+FWckNNo8Lu8rF/b1Mxur70SiHkWvp6zTo2c0KBz4phAEvVZO1M1T1qEhJjAl OHVw== X-Gm-Message-State: AJIora9Bm8bVfQdBE2QnjiqYX1JP/gVZVA4Z+6zYntC3ZRiRoVqpWKK3 pjLFKoqUYCSaPTdrpVJXEcM= X-Google-Smtp-Source: AGRyM1vtFhWJ5FLzx5f3p3o/qmSs8NJRmjg3vyIZZSoaHxETIbvnT3f9vP9XDu44HCWoj/kKASXWTg== X-Received: by 2002:aa7:88cd:0:b0:51c:188e:fbeb with SMTP id k13-20020aa788cd000000b0051c188efbebmr5782611pff.81.1655401738804; Thu, 16 Jun 2022 10:48:58 -0700 (PDT) Received: from localhost.localdomain (c-67-174-241-145.hsd1.ca.comcast.net. [67.174.241.145]) by smtp.gmail.com with ESMTPSA id z21-20020a17090a8b9500b001e8520b211bsm1818289pjn.53.2022.06.16.10.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 10:48:58 -0700 (PDT) From: Yang Shi To: vbabka@suse.cz, kirill.shutemov@linux.intel.com, willy@infradead.org, zokeefe@google.com, linmiaohe@huawei.com, akpm@linux-foundation.org Cc: shy828301@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [v5 PATCH 7/7] doc: proc: fix the description to THPeligible Date: Thu, 16 Jun 2022 10:48:40 -0700 Message-Id: <20220616174840.1202070-8-shy828301@gmail.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20220616174840.1202070-1-shy828301@gmail.com> References: <20220616174840.1202070-1-shy828301@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655401739; a=rsa-sha256; cv=none; b=ao8IR/UbB0N4INoZJtlT71ugLGlwziH/gJ3pi8uX0Mosolbali1+8EIwF+C28/0hid0zL9 Y/t4Nron7RFAHOVjRevHIgYy6OQTSoGdivRaUYhFEasnEJ/7RNcwci/qgphBMzms9D+Ulh S+VIARjfrlkkcihPf9wpnJhgpDiC9rI= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=F7+G3ESb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf24.hostedemail.com: domain of shy828301@gmail.com designates 209.85.215.176 as permitted sender) smtp.mailfrom=shy828301@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655401739; 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:in-reply-to:references:references:dkim-signature; bh=cbrfBk2owseXTl2TqGluY3ivP+501euUdLqfR5FVpCc=; b=siGIiV1+aqEwGOiYtnQJYNCjXaPmD9Oao7PWV6bne4cOiqh1XFQ5lFia/X7X6M47Qppp7W LK/2iBCAu2frpDHowbuGJgMGHxxIxfdWOH6lR+tWAKEOtiNb/gr3hGhV+sw4LgEBAcA8EA zLkgSRKaL4j6UY4O9JNLebIEL1SeiIo= Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=F7+G3ESb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf24.hostedemail.com: domain of shy828301@gmail.com designates 209.85.215.176 as permitted sender) smtp.mailfrom=shy828301@gmail.com X-Rspam-User: X-Stat-Signature: sd7ryn1k17fe85kdccx68nxf18ip4wdi X-Rspamd-Queue-Id: ADE4C18007D X-Rspamd-Server: rspam08 X-HE-Tag: 1655401739-837713 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The THPeligible bit shows 1 if and only if the VMA is eligible for allocating THP and the THP is also PMD mappable. Some misaligned file VMAs may be eligible for allocating THP but the THP can't be mapped by PMD. Make this more explictly to avoid ambiguity. Reviewed-by: Zach O'Keefe Signed-off-by: Yang Shi --- Documentation/filesystems/proc.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 1bc91fb8c321..a5e41e636a1a 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -514,8 +514,10 @@ replaced by copy-on-write) part of the underlying shmem object out on swap. "SwapPss" shows proportional swap share of this mapping. Unlike "Swap", this does not take into account swapped out page of underlying shmem objects. "Locked" indicates whether the mapping is locked in memory or not. + "THPeligible" indicates whether the mapping is eligible for allocating THP -pages - 1 if true, 0 otherwise. It just shows the current status. +pages as well as the THP is PMD mappable or not - 1 if true, 0 otherwise. +It just shows the current status. "VmFlags" field deserves a separate description. This member represents the kernel flags associated with the particular virtual memory area in two letter -- 2.26.3