Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4068691rwo; Mon, 24 Jul 2023 23:26:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlGZUhKswV1X7AIzA2gf3DXi2ksSP94Fb+sx00IziGCOAnClc0Prf5VCKCXSqudRkrLB48hu X-Received: by 2002:a17:906:142:b0:99b:4378:a5aa with SMTP id 2-20020a170906014200b0099b4378a5aamr12653001ejh.49.1690266364595; Mon, 24 Jul 2023 23:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690266364; cv=none; d=google.com; s=arc-20160816; b=DimOycro4cPUF419gGwPLjhqmM4HZQBY2UeErEc36EPIlbxv+udpWq7T9YGJIhGkLh 3INCtbjMyyJb4HfiGque93MQErMcd4El6sWriO5fnlOqGeYC38Jb276Yany2klw3waM2 DKKH0Gw4/+A0BAn2rPy6K0LIfde/UDbsribq2P5UKZ9Sbh4PU7RE3Jh+laWQVtKWOuS/ UKqnQ8pi1JLEgR6yabKlvSgkCc5ZZqRW2yG0Ye1kE6sVMW1tg0jV8ouFgkx+SEwC5KSx GJ7eztptvlgh0JfBLsdF8RN4k7UtZTVPm6KmURc5M+GVpzpsXUKIKG9mTyX9r3+GB3Je 7j6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Iff00GoXaDH4cb1D/MrDupG+dzFdTmhxdlQCFPsloUg=; fh=zvS/JgDfqM130EKGXmbJiOUxBxQNfv9Q6FJpSSwbJnw=; b=MyzL+Yu0eFQGwcDOC9WxgPa9fO5og4JbP4K2j6VMpXvz3UDY6C130Emzb/Rg11KPt/ RKynwbbYPH7qTsHl3VJh09z6TjYT1jFReffYH5Sx84Zc9WeVgY2bTbSZo7VMZpPliV+b jsDt/GTPfMW22C+1uPKP+cTriRNncRto/LBMJxReVHrGukFwL2l/1xhmv8k8cxfd76mY 3T3g2kvnaYTdqsASie7Jr1/ytdi1AY6qEBH2VXwrld07iyU7fvDo3voPtk+ao/ZGJrH6 nI8Q51uTxvQoYEggJJ2+HBwTCXBBDq/XCwzVYrTrD/Jwgx/iZ+4ovA2q0+N6BWabCGPV kcag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QlD7W3Ww; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a1709061c0c00b00991f9e2a81asi7789446ejg.238.2023.07.24.23.25.40; Mon, 24 Jul 2023 23:26:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QlD7W3Ww; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231395AbjGYGH4 (ORCPT + 99 others); Tue, 25 Jul 2023 02:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbjGYGHy (ORCPT ); Tue, 25 Jul 2023 02:07:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBBAE10E5; Mon, 24 Jul 2023 23:07:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 60FA161549; Tue, 25 Jul 2023 06:07:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17930C433C8; Tue, 25 Jul 2023 06:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690265272; bh=g1caD9CrbR3LwJeOeh9fQXcDn7BjKUbUaJjDJVl9M7E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QlD7W3Wwt32cIbOtX7m31Rqe01XgCM1QR4umfbVEgKtJ8KHz/H9F9XbeKH6Hfta5I tVipI5y51fg4rSCaNsTt3DWQPuUmOz5pMrX9NKS8Kh72woVGRyoDdS42QH+6J0QF7k HVKBYLI7HUSwZApcG06ComH69NMZuj/ciA0NvbYXIqOZX3m6ZZfpn1gb+3c+oaiz04 9fMzkRPZM4eu1ov7VGp7oRTlRUrYOdEoll+1lW92CJh8uBQDm7d8LQozNmbX9yLGQg IZ35ydjMZqw7/4hOlHqz3dqIBxdRzVPWUS5o512vFArgCKJRaFay/PNVr8ziTm+FH9 Z4k9PnWe3XPYw== Date: Tue, 25 Jul 2023 09:07:46 +0300 From: Mike Rapoport To: Usama Arif , Jonathan Corbet Cc: songmuchun@bytedance.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, fam.zheng@bytedance.com, liangma@liangbit.com Subject: Re: [External] Re: [PATCH] docs: mm: Fix number of base pages for 1GB HugeTLB Message-ID: References: <20230207114456.2304801-1-usama.arif@bytedance.com> <463c960e-1d3b-edc0-edbb-d5ecbf7fc3b1@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <463c960e-1d3b-edc0-edbb-d5ecbf7fc3b1@bytedance.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (adding Jon) On Mon, Jul 24, 2023 at 03:05:29PM +0100, Usama Arif wrote: > > > On 08/02/2023 09:51, Mike Rapoport wrote: > > On Tue, Feb 07, 2023 at 11:44:56AM +0000, Usama Arif wrote: > > > 1GB HugeTLB page consists of 262144 base pages. > > > > > > Signed-off-by: Usama Arif > > > > Acked-by: Mike Rapoport (IBM) > > > > > --- > > > Documentation/mm/vmemmap_dedup.rst | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/Documentation/mm/vmemmap_dedup.rst b/Documentation/mm/vmemmap_dedup.rst > > > index a4b12ff906c4..689a6907c70b 100644 > > > --- a/Documentation/mm/vmemmap_dedup.rst > > > +++ b/Documentation/mm/vmemmap_dedup.rst > > > @@ -1,3 +1,4 @@ > > > + > > > .. SPDX-License-Identifier: GPL-2.0 > > > ========================================= > > > @@ -17,7 +18,7 @@ HugeTLB pages consist of multiple base page size pages and is supported by many > > > architectures. See Documentation/admin-guide/mm/hugetlbpage.rst for more > > > details. On the x86-64 architecture, HugeTLB pages of size 2MB and 1GB are > > > currently supported. Since the base page size on x86 is 4KB, a 2MB HugeTLB page > > > -consists of 512 base pages and a 1GB HugeTLB page consists of 4096 base pages. > > > +consists of 512 base pages and a 1GB HugeTLB page consists of 262144 base pages. > > > For each base page, there is a corresponding ``struct page``. > > > Within the HugeTLB subsystem, only the first 4 ``struct page`` are used to > > > -- > > > 2.25.1 > > > > > > > Hi, > > Was just reading vmemmap_dedup.rst for something and realized that its still > 4096 pages for 1G, maybe this patch got missed? > > Thanks, > Usama -- Sincerely yours, Mike.