Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1208840rdh; Fri, 24 Nov 2023 07:23:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxRgsO1P/ZGKh1CeOx+8vIFYga/7CdRhGZWvSwseJhZs5FwCskHGfMBd2480Usqq6eITV2 X-Received: by 2002:a05:6a20:e687:b0:18a:dd1d:b1f7 with SMTP id mz7-20020a056a20e68700b0018add1db1f7mr3617649pzb.18.1700839424678; Fri, 24 Nov 2023 07:23:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700839424; cv=none; d=google.com; s=arc-20160816; b=JOQyp+2kXcqoCRY2A80z0EZPy0whBu3pWKr+eE39yAyVSRCl7qfli+/bFkDS7hX2wR Z4PZg9OdSixZuxry4FGENjHCrb4XWX+DywKpCOKxs37hMBixg7B3MaY/+ljk+g8adCSC oIKapDNVBttbcKTTLgtYiv55XA+KvrKqdRTWJam4ymQTVN5aGVCivV2d+YLjnwUDVqsg lVheXFHcddsapdyCWAW2EN1yWy6zDTL6sH36kLEp+Q/FoXPm3hG4mkmy9xFdOldX1B4Z HL7nnjQmLADv3dmMwnZ9TCLxoMV6CGdl73KbdQWHA/H+GcRofmq9UugFM9H2HOcMnI14 nclw== 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=xgpfuwKiNeAvP8r2s5OjgoEqFYvABSqvcc4cFzqqvP4=; fh=5ZsJydy5B6VGIioVN6b9dmuTqBbxmuGkJLEJS6Ke3NM=; b=yPf29a5pBmYgpRILCXum6HwN5NL+EXK1bJncbn61lmh9t8YZMNB2mUU3YJUobjK/jJ 6DdCJZg+n2kFfyV1ZsDQ9xRgbRBC4tXMGgqY+57+JY1aXYHxiicuUZeZHCSibKiOVbEi 4HrLAQQODeOWP5o94pJ2BePLbT59sUbVL6pitxDMg5WvUaM5HK3Wnbabh8KtehannfyX 4BDtkR8/qIy5SHVZtnL+p8XuAutsrGiWIHzoo8pDrKnMTH4frSTK15GGSv5OrJghA4UF /xfE9T8KYkai0fCAIg+s4nrCBW6JKnreHwyr27d9lyvL5hFY15JybySayRp8LO5797Ij lsXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id cn4-20020a056a020a8400b0057755b2f032si3840645pgb.542.2023.11.24.07.23.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 07:23:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 7EEFC80AFBBB; Fri, 24 Nov 2023 07:23:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345771AbjKXPXA (ORCPT + 99 others); Fri, 24 Nov 2023 10:23:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345599AbjKXPW7 (ORCPT ); Fri, 24 Nov 2023 10:22:59 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4255819B1 for ; Fri, 24 Nov 2023 07:23:05 -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 63AEF1063; Fri, 24 Nov 2023 07:23:51 -0800 (PST) Received: from [10.57.73.191] (unknown [10.57.73.191]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3B04D3F73F; Fri, 24 Nov 2023 07:23:02 -0800 (PST) Message-ID: <9379cf06-8f91-41ca-98dc-0f57b486952f@arm.com> Date: Fri, 24 Nov 2023 15:23:00 +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: Matthew Wilcox Cc: Andrew Morton , Yin Fengwei , David Hildenbrand , Yu Zhao , Catalin Marinas , Anshuman Khandual , Yang Shi , "Huang, Ying" , Zi Yan , Luis Chamberlain , Itaru Kitayama , "Kirill A. Shutemov" , John Hubbard , 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> From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Fri, 24 Nov 2023 07:23:41 -0800 (PST) On 24/11/2023 15:13, Matthew Wilcox wrote: > On Fri, Nov 24, 2023 at 09:56:37AM +0000, Ryan Roberts wrote: >> On 23/11/2023 15:59, Matthew Wilcox wrote: >>> On Wed, Nov 22, 2023 at 04:29:40PM +0000, Ryan Roberts wrote: >>>> This is v7 of a series to implement small-sized THP for anonymous memory >>>> (previously called "large anonymous folios"). The objective of this is to >>> >>> I'm still against small-sized THP. We've now got people asking whether >>> the THP counters should be updated when dealing with large folios that >>> are smaller than PMD sized. It's sowing confusion, and we should go >>> back to large anon folios as a name. >> >> I suspect I'm labouring the point here, but I'd like to drill into exactly what >> you are objecting to. Is it: >> >> A) Using the name "small-sized THP" (which is currently only used in the commit >> logs and a couple of times in the documentation). > > Yes, this is what I'm objecting to. > >> B) Exposing the controls for this feature as an extension to the existing >> /sys/kernel/mm/transparent_hugepage/* sysfs interface (note the interface never >> uses the term "small-sized"). > > I don't object to the controls being here. I still wish we didn't need > an interface to control them at all, but I don't have the time to become > an expert in anonymous memory and figure out how to make that happen. > >> If A) then this is easily solved by choosing another descriptive name and >> updating those places. Personally I think it would be best to continue to use >> "THP" since we are exposing the feature through that interface. Perhaps "large >> folio THP". > > I think that continues the confusion about the existing interfaces we > have which count THP (and mean "PMD sized THP"). I'd really prefer the > term "THP" to unambiguously mean PMD sized THP. I don't understand why > you felt the need to move away from Large Anon Folios as a name. > Because the controls are exposed in the sysfs THP directory (and therefore documented in the transhuge.rst document). It seems odd to refer to them as large anon folios within the kernel but expose them as as part of the THP interface. But I'm certainly open to the idea of changing the name in the commit logs and being careful to distance it from THP transhuge.rst if that's the concensus. I am opposed to moving/changing the interface though - that's actually what I thought you were suggesting.