From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8B27C4167B for ; Tue, 28 Nov 2023 04:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=p42w7rMxK6Xf72f7UPLzPAN0QwM9WawdVSeLz/Pkpjc=; b=gjFt5viWVhPhpQ o1m0SoPIetKJdG/tlqwRUeG2REte6Qk4Bop0Sy2Yjr9hCY1Zjs5LvNvlC1JjW6JVb73NtlkyAEsCa FIvwllZO3qnfAU6JucMXzuJSC4uRQ+nGIxwieO+SsOPkWiGNb1vq9aVbKYrv+5Z6X+yt8hG7rE4v5 7jPxg2RGcelyt+Hu8ZFlxwvvxfOFc28qz2eHnCUPg9+EVgYZw8S6TC2Kqt+dBqidUjcro4T9rFeAv H8uuPQS0HLI2Kfet3OyDZYDMya/hJPGiGh5BDhvbzL04vdnnFpI2lqPqpdWvm25WjAVzHb+DVw9Qf AO+Xd/qnq5As2KsCmozA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7pLt-0041B2-0A; Tue, 28 Nov 2023 04:05:37 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7pLr-0041Au-1u for linux-arm-kernel@bombadil.infradead.org; Tue, 28 Nov 2023 04:05:35 +0000 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=9wOfKfUX3TH3E1LKOSPQ8crkusNA/WZ2sGV/FY6tU6E=; b=sjg/pnwlbXTgkJMCX/BSOJVCyZ v8qquO6PnPWQnuAlFF77pQ5yqVxBPvHuAC+TioLpsDXXhfpLdw2cQZ5o06bjW2W6s2urwrmPx3ZiG RpdKaQe5QOAoEkO7uJ2o8zJ0yxUVdsDoXcIZKrFiq2rQQ/brHkGD2Kmacbj0XuNUd3aLneWMUTaHH J5jX3H0hkRitJqwmIpg3I/VJWiDVwAYDOBuVVb6yZgsqXZCrcDN3YLtwd2J+QmLd23+sW8MMY20bn 29m3dwNa2OF805UdckypKnphj1BWwutsLkuxOvQndYcqKCt5DHxLmXo4vLIOI9NF1UU1NwB611/Q1 T92ZMrQg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1r7pLj-00C1Bx-4g; Tue, 28 Nov 2023 04:05:27 +0000 Date: Tue, 28 Nov 2023 04:05:27 +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> <26c361bc-6d87-4a57-9fae-ef635c9039c7@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <26c361bc-6d87-4a57-9fae-ef635c9039c7@redhat.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 24, 2023 at 06:34:10PM +0100, David Hildenbrand wrote: > On 24.11.23 16:53, Matthew Wilcox wrote: > > > * 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. > > Very right, and because there will be a difference between 1024 x 64kB, 2048 > x 32 kB and so forth, we need new memory stats either way. > > Ryan had some ideas on that, but currently, that's considered future work, > just like it likely is for the pagecache as well and needs much more > thoughts. > > Initially, the admin will have to enable all that for anon either way. It > all boils down to one memory statistic for anon memory (AnonHugePages) > that's messed-up already. So we have FileHugePages which is very carefully only PMD-sized large folios. If people start making AnonHugePages count non-PMD-sized large folios, that's going to be inconsistent. > > am objecting to the use of the term "small THP" on the grounds of > > confusion and linguistic nonsense. > > Maybe that's the reason why FreeBSD calls them "medium-sized superpages", > because "Medium-sized" seems to be more appropriate to express something "in > between". I don't mind "medium" in the name. > So far I thought the reason was because they focused on 64k only. > > Never trust a German guy on naming suggestions. John has so far been my > naming expert, so I'm hoping he can help. > > "Sub-pmd-sized THP" is just mouthful. But then, again, this is would just be > a temporary name, and in the future THP will just naturally come in multiple > sizes (and others here seem to agree on that). I do not. If we'd come to this fifteen years ago, maybe, but people now have an understanding that THPs are necessarily PMD sized. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel