Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4780687rwb; Mon, 31 Jul 2023 12:05:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlEjVdQJvWBcvf68TUT7GxZFCEB0kxVLI56qSN8xouQIeakbGl3YWDLo1Tlm4aBIr2CqXL1l X-Received: by 2002:a17:907:7882:b0:99b:ed44:1a79 with SMTP id ku2-20020a170907788200b0099bed441a79mr595183ejc.3.1690830323938; Mon, 31 Jul 2023 12:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690830323; cv=none; d=google.com; s=arc-20160816; b=qFrUQlWCXp5ecimYt+j7PYSW8j+6mZbVPVGC4jzUv4iCkQMUnnUqhZi1S5VWK/87P/ MUDvzUbO8FxKNIKH14/ZvoapuRwr7l4ujGePmYNx3Oqw8dkS5cQ+6APF9vcFzZzaeLAl ALgIxqasqOiZZuHJGt4hiXQqHIZg09zu/iJZyNjnqnjq79f93fXpOsfL6t9paTTrJ6nf QnibDz+O377jz97QGfDtuKftVszRngQYT1EbDtWR+oBs5OHQmJcmaF6fNjcMIBnWH454 mMVrH416V7gLp3oKXGjvPOWPFoXMm2QdF46+Tk2KbcJNBWLNs/p/S/x9Ebyu02+fp4j7 bBZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=t76V9ls2c8xjoyYF1+jcwVKxcijch8MBGbQhBn9hxGw=; fh=tHv4ic7ev5AoQXVlnUoc4LuEPid9aE137GuQaWvWhPk=; b=zqJFq5l+m2akYPNYVLZqPNw/NX08hsbWep5eylLxJDab+nL20gCQGPG1lVCg9jJZja R99u5PIgOR/CMJUM9AnczPWrMqro6ogACwyoakyOcpTvLiM4Wy+jYJEjD2eWr2ijmg62 9YX86Dy5a+ISqAjXkNCUIzmoCQTTgO2lFmm0CcJ3mcO7S6T07YD9LUkjbiNQaaMavtHM rPoPX8PMEVEHefIpocozb5rf7smpSyNfTpCfv4RPhW12lMdop2D+qLqa5jLdUSTf2Ixa yaxNAGLjhcFmtSJkcI+dirYmAfCEl+iiX6kJj/37+vjwaSAlKkf9G5AlZh+wHTYpVEMy dpoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=Drrxwcs9; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u22-20020a170906951600b00992e0e54464si7579639ejx.254.2023.07.31.12.04.59; Mon, 31 Jul 2023 12:05:23 -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=@lwn.net header.s=20201203 header.b=Drrxwcs9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233324AbjGaQE3 (ORCPT + 99 others); Mon, 31 Jul 2023 12:04:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233256AbjGaQEV (ORCPT ); Mon, 31 Jul 2023 12:04:21 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F1DAE5D; Mon, 31 Jul 2023 09:03:55 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id C174E2B0; Mon, 31 Jul 2023 16:03:42 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net C174E2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1690819423; bh=t76V9ls2c8xjoyYF1+jcwVKxcijch8MBGbQhBn9hxGw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Drrxwcs9FW/rnfjzA2yYZS/QeTp9EeVUwtl1BDfo5uoEujoZJwIr+021ktZGUFEby AkxPt3Mh2L3jP5yS3rJh79rTd5BK2NkUJ3EdtePWQ6i9UkquULjhSMFZjz99Y4LzB8 8s4kZH8gZOhAMJwGvEgmAK7kK37ujBxfpqN+IRURceR6q5JPv94l045bK884PKo2U+ TOmeeWa3cZ3zoCUHrKKyz3e43kTI3dVMPP/xhG4OXbxG4McKzjRG5tqHTK5bCbzyi5 0RUAuUju49NSgqhZhaOPKzGtTAMs10UYh57oeahbpr3Tcmj7Jj5ewAYB5Xn2L9mC5e Cj3qjeoIjLUeA== From: Jonathan Corbet To: Mike Rapoport , Usama Arif 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 In-Reply-To: References: <20230207114456.2304801-1-usama.arif@bytedance.com> <463c960e-1d3b-edc0-edbb-d5ecbf7fc3b1@bytedance.com> Date: Mon, 31 Jul 2023 10:03:42 -0600 Message-ID: <87bkfsdq5d.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 Mike Rapoport writes: > (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? Dug out of the archives and applied, thanks. jon