Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp761222ybt; Wed, 17 Jun 2020 13:17:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb/43BXUh8wVhd3fSa8og3vb+XZHYtmVRI1NCoB9zM9hnzITjfZNHZZP2+nGT/jeeF/JM/ X-Received: by 2002:a05:6402:b79:: with SMTP id cb25mr884901edb.334.1592425053908; Wed, 17 Jun 2020 13:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592425053; cv=none; d=google.com; s=arc-20160816; b=NjpwjKQXcJWZtGD26UnSwua5oFa8p6lno4HLUIX1F+gdoikTNXYuN8Rw90jS73cv02 bYQdp5YXkrjUVzTaY2Jbq47yp42CMdvNhzJlBPoObrKM2znFsh3NcyJQ6quIhTkB4D+C HXYpjkrnzHzFPms8PuUBZcGgqqVuLhWiYdNlHHKur+zVmiMavG4TDpUZHRxX1XtDStgm ysQOjrNdfufLLvTdYyGk19frgXILc4CBS0fsm0o7zbxUt2yw8Ya2viQL2FF+hij3+jo8 /NksJXBBO9RLf7Fm8RbO248ELglBfslZnlFFX3DR9EpGDNAQe6U3ZhTY6mq0GUBM7Nih 7l5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=YPxK1DD2zZQtgApngtsrbQruDuRWnJ+BRTT+QSiyEXM=; b=LtkWpfNFhUNPwvSipioCRM8SexlkIhTJhpJYE4NvWyr/h5X7cRtHFFZ5q3DWGtJg/I 01YDBf193Tp745U4uDeahXLjGG+VcjgOrOxsMlZ8t260yXfD03ZWf3lpaJ9+ItwC4dXO UeY9Tc5rj46QEN7fcld6Isgno+88tkiCTx1N8aojIqn2EhNQnlKePN5NHlzwBERdye71 8HLNWlviOyFBhm9G8ASfu4IJnUy0Z2X0MAf29OZSGT4Fg0oa100pqC8xSNkrGw/jjZPr OvgZn/mht9D8fc3oPpHIg202myYnlR9cM+7iDvhVyAykf4U4OuRytaHnxSLiiC+kbdIQ S6Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id se5si434066ejb.205.2020.06.17.13.17.11; Wed, 17 Jun 2020 13:17:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgFQUPH (ORCPT + 99 others); Wed, 17 Jun 2020 16:15:07 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:57492 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbgFQUPH (ORCPT ); Wed, 17 Jun 2020 16:15:07 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R491e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07484;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0U.uEVD-_1592424896; Received: from localhost(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0U.uEVD-_1592424896) by smtp.aliyun-inc.com(127.0.0.1); Thu, 18 Jun 2020 04:15:03 +0800 From: Yang Shi To: kirill.shutemov@linux.intel.com, ziy@nvidia.com, akpm@linux-foundation.org, corbet@lwn.net Cc: yang.shi@linux.alibaba.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] doc: THP CoW fault no longer allocate THP Date: Thu, 18 Jun 2020 04:14:55 +0800 Message-Id: <1592424895-5421-1-git-send-email-yang.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 3917c80280c93a7123f ("thp: change CoW semantics for anon-THP"), THP CoW page fault is rewritten. Now it just splits pmd then fallback to base page fault, it doesn't try to allocate THP anymore. So it is no longer counted in THP_FAULT_ALLOC. Remove the obsolete statement in documentation about THP CoW allocation to avoid confusion. Cc: Kirill A. Shutemov Cc: Zi Yan Signed-off-by: Yang Shi --- Documentation/admin-guide/cgroup-v2.rst | 4 ++-- Documentation/admin-guide/mm/transhuge.rst | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index ce3e05e..d09471a 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -1356,8 +1356,8 @@ PAGE_SIZE multiple when read back. thp_fault_alloc Number of transparent hugepages which were allocated to satisfy - a page fault, including COW faults. This counter is not present - when CONFIG_TRANSPARENT_HUGEPAGE is not set. + a page fault. This counter is not present when CONFIG_TRANSPARENT_HUGEPAGE + is not set. thp_collapse_alloc Number of transparent hugepages which were allocated to allow diff --git a/Documentation/admin-guide/mm/transhuge.rst b/Documentation/admin-guide/mm/transhuge.rst index 6a233e4..b2acd0d 100644 --- a/Documentation/admin-guide/mm/transhuge.rst +++ b/Documentation/admin-guide/mm/transhuge.rst @@ -305,8 +305,7 @@ monitor how successfully the system is providing huge pages for use. thp_fault_alloc is incremented every time a huge page is successfully - allocated to handle a page fault. This applies to both the - first time a page is faulted and for COW faults. + allocated to handle a page fault. thp_collapse_alloc is incremented by khugepaged when it has found -- 1.8.3.1