Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1232942rdh; Fri, 24 Nov 2023 07:54:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnJvsGYyS/yteYUtAni9F5DyIOmrDw897GqgaUtxizkW1SHzBeB1i33HD5ITta5hksIMXk X-Received: by 2002:a05:6a20:9585:b0:18b:cf49:b9d4 with SMTP id iu5-20020a056a20958500b0018bcf49b9d4mr3753575pzb.53.1700841258426; Fri, 24 Nov 2023 07:54:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700841258; cv=none; d=google.com; s=arc-20160816; b=DY3pKYOM2VCfI510ryeF8LkQSkPnrglafwl/7E00XQllmMSOjIH3WLrLjVy0EpAgEw 8ADkDwh4DNbs121dZK0D2RoMfh0i+ZcKMYyIzqBEEHrkdydiO6eSVUuSFGeHPYx+5rlC NNf0tO9rZaCkjzJfqqRnwddbKjz9qQv/LRMZWHfKR1HmYadKbAy8tNWObopDjCQGO1ta vRZutjimnWaS/wSrF5WKh8ICfUFC6nm1+d3Z0L/Xv9eeak4EzZSQnmkqt96JhFmIKy8e e9nyB7N2M4vA7GbAzfXyKFpQj4JNjoxE6MWUtURFLxEoE41ikRLncT+/EvGeaipoNg9s jl4g== 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=Yp/TRPnJUCRddcn2pwqpadteZMnyKo+3JgWlmsfeyA8=; fh=ZAX3GN6q2h9OnrDfPzfKJge/S90evt3pEHqOzE6w7g0=; b=gq3M3XEtmTWmmbHjLLYIo55NqI/gPeDLKLUcs2tqIm3oGk+7cJuUMaQOOVq1mnznvB BWC0v1INOUCbCMgYZsFA9woI0InUgmZlxVLaVtwdUkUombMFVsug23VpqperCdG3pUrD czdFiwqe/EDe5nOZTuTRZVCE2+Tj8sv/X7B19pewV5MNjWh6m2PeIwkAX3ASH4acSUrp vcOCCV6rL8EkxcWedMnfyIaQf4zGJ9IJYV9EJHyq39m/dkZSLPmQzVG7CBkciIu1G9a6 Ok8xlebWPNbkyLoRCF67qLSZVthiMMpBPClGWqEw8HVK2Edn/bYEZQG2kAAS4+sVnb5X nKsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hjzmSFaD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id 22-20020a630a16000000b00564c67e66fbsi3881262pgk.842.2023.11.24.07.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 07:54:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hjzmSFaD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BDDB8807E44E; Fri, 24 Nov 2023 07:54:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345902AbjKXPyA (ORCPT + 99 others); Fri, 24 Nov 2023 10:54:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345881AbjKXPx6 (ORCPT ); Fri, 24 Nov 2023 10:53:58 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67CF012B for ; Fri, 24 Nov 2023 07:54:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Yp/TRPnJUCRddcn2pwqpadteZMnyKo+3JgWlmsfeyA8=; b=hjzmSFaDj2EPMwg3j4Voli4wxk plO+mX85rqcIAExFojWw6zdP/4cQlZcoxhiqc/dZHaKeTy1dFmH6FGcUFX9UIh68Vtxk8ii3n/uqN /mW6X4/Asm/QMk7rs/H+oKD/H2s9KxNy2KiyIeq+6VMt+DrVDnyvF0UOpHMOmRfY9j4sI30NAaJsM KYPnt6dI6ZHzWFYk4hDSWR4ZfnhQryFDRZDI9fdi6YzGRsnbMly3QaU+KR3vL9cQefGVTXL2HADdz /uwm8AppmQCyNYeOvWJ4JC90e0208Tmwop3wGQi8w3dI+hBiJndFqYLAlKn+yFjFd8htpKXLT9b5f Rk61PzVA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1r6YUS-008icA-JD; Fri, 24 Nov 2023 15:53:12 +0000 Date: Fri, 24 Nov 2023 15:53:12 +0000 From: Matthew Wilcox To: David Hildenbrand Cc: Ryan Roberts , Andrew Morton , Yin Fengwei , 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 Subject: Re: [RESEND PATCH v7 00/10] Small-sized THP for anonymous memory Message-ID: References: <20231122162950.3854897-1-ryan.roberts@arm.com> <9c8f6d2a-7ed8-45d2-9684-d77489bd99b8@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9c8f6d2a-7ed8-45d2-9684-d77489bd99b8@redhat.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 24 Nov 2023 07:54:15 -0800 (PST) On Fri, Nov 24, 2023 at 04:25:38PM +0100, David Hildenbrand wrote: > On 24.11.23 16: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. > > I'll just repeat that "large anon folio" is misleading, because > * we already have "large anon folios" in hugetlb We do? Where? > * we already have PMD-sized "large anon folios" in THP Right, those are already accounted as THP, and that's what users expect. If we're allocating 1024 x 64kB chunks of memory, the user won't be able to distinguish that from 32 x 2MB chunks of memory, and yet the performance profile for some applications will be very different. > But inn the end, I don't care how we will call this in a commit message. > > Just sticking to what we have right now makes most sense to me. > > I know, as the creator of the term "folio" you have to object :P Sorry ;) I don't care if it's called something to do with folios or not. I am objecting to the use of the term "small THP" on the grounds of confusion and linguistic nonsense.