Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3795213rdh; Tue, 28 Nov 2023 04:16:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKwdmWxmu1tZXYE5Oo5tKS3CtEjGXd731ftmFio7fobRmL28XdqdIe+B9twm7hLSl3UxQl X-Received: by 2002:a05:6a20:244e:b0:18a:4895:8721 with SMTP id t14-20020a056a20244e00b0018a48958721mr16297995pzc.18.1701173776222; Tue, 28 Nov 2023 04:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701173776; cv=none; d=google.com; s=arc-20160816; b=upS+P7tXkvBVTi9lhTp8mIQTleDmN12alcCFilVl0hNxTbolzj5OaUTICJtlaTNInf Ra5QbxhUvgT/8/ABL5D8En7yB8PPESINWBB0GtA/BY3poIrmS6jBiszSMDfwzad7QywS EncfBgzCZ9PdKoeUqTjkbBxSnPQACAJ7GGN32uQxxPLFw72XO9lCTWYwUW7+fznPhlcS ez0/2EGUzcp0jpvGk1JVJGwxrjchdqOUVFySZSNL7ONIBn28Ty20+PgBfecPv2zHfgOH NHWfKLf9HCUQQOR/MvUJcztfR4XWTMBk/g5dCXIpSk5J2KNRRF5VgJH7bckEtv81NeU/ Y3qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=ifikt70MRDjBpGz3EujBK91avUGGg9+a9Kmp3OIe4Cg=; fh=eO9HPzBE78xEf85K5j9LbqC8iF2d9bG552s7iggNPRg=; b=l7w/hZj0Rn/zz4fBf9QThbtAjquTazfBpnjS97eJhrSA9CnPqRlQ42NwUmniMdicVF XohoKUZyBBWKt7Bk4eHAJ1+13vHj73Yt2j44y//L52WlKOjoNLId3BP9WZeeMIK6wW9u gbP25GV6SpDV7dkKEat4jE2JsKeon50BAkacFmgnLxo+7joNK7pikKlju3FJMvxWePI+ 89v8Ba77mWCFmBLlbxHRsEABh9ZzVzCKknZPJh8ZxL9QPJnDqo2V8GhL65MCDzRPrUas 73A8WEpHTI0yfVRhx5ziXvz0SqIQLhGgrYm/G381fYf4XVHCPHlm8rVMM6vBot7fsFrE jv4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a11-20020a056a000c8b00b006cb2db00287si12190190pfv.340.2023.11.28.04.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 04:16:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A7CBD8065325; Tue, 28 Nov 2023 04:15:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344627AbjK1MPe (ORCPT + 99 others); Tue, 28 Nov 2023 07:15:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344302AbjK1MPd (ORCPT ); Tue, 28 Nov 2023 07:15:33 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5104F183 for ; Tue, 28 Nov 2023 04:15:39 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E44DCC15; Tue, 28 Nov 2023 04:16:25 -0800 (PST) Received: from [10.1.33.188] (XHFQ2J9959.cambridge.arm.com [10.1.33.188]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E69273F73F; Tue, 28 Nov 2023 04:15:32 -0800 (PST) Message-ID: <58af512c-3d7d-4774-88f7-6336c9384b61@arm.com> Date: Tue, 28 Nov 2023 12:15:30 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH v7 00/10] Small-sized THP for anonymous memory Content-Language: en-GB To: David Hildenbrand , John Hubbard , Alistair Popple Cc: Matthew Wilcox , Andrew Morton , Yin Fengwei , Yu Zhao , Catalin Marinas , Anshuman Khandual , Yang Shi , "Huang, Ying" , Zi Yan , Luis Chamberlain , Itaru Kitayama , "Kirill A. Shutemov" , David Rientjes , Vlastimil Babka , Hugh Dickins , Kefeng Wang , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231122162950.3854897-1-ryan.roberts@arm.com> <9c8f6d2a-7ed8-45d2-9684-d77489bd99b8@redhat.com> <26c361bc-6d87-4a57-9fae-ef635c9039c7@redhat.com> <87sf4rppuc.fsf@nvdebian.thelocal> <51e6c9f1-e863-464b-b5f3-d7f60a7ebed6@arm.com> From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 28 Nov 2023 04:15:44 -0800 (PST) On 28/11/2023 08:48, David Hildenbrand wrote: > >>> >>> Agreed. We are bikeshedding here. But if we really can't swallow "small-sized >>> THP" then perhaps the most efficient way to move this forwards is to review the >>> documentation (where "small-sized THP" appears twice in order to differentiate >>> from PMD-sized THP) - its in patch 3. Perhaps it will be easier to come up with >>> a good description in the context of those prose? Then once we have that, >>> hopefully a term will fall out that I'll update the commit logs with. >>> >> >> I will see you over in patch 3, then. I've already looked at it and am going >> to suggest a long and a short name. The long name is for use in comments and >> documentation, and the short name is for variable fragments: >> >>       Long name:  "pte-mapped THPs" >>       Short names: pte_thp, or pte-thp > > The issue is that any THP can be pte-mapped, even a PMD-sized THP. However, the > "natural" way to map a PMD-sized THP is using a PMD. > How about we just stop trying to come up with a term for the "small-sized THP" vs "PMD-sized THP" and instead invent a name that covers ALL THP: "multi-size THP" vs "PMD-sized THP". Then in the docs we can talk about how multi-size THP introduces the ability to allocate memory in blocks that are bigger than a base page but smaller than traditional PMD-size, in increments of a power-of-2 number of pages.