Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp454057rdh; Thu, 23 Nov 2023 08:18:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEY7QX+v9e99Ek5DKNNVcHyS3uNt0+srbnHrPkCZ9MGiE1qiSOqX7jmusw98UegBPAX9lbA X-Received: by 2002:a05:6a00:1f08:b0:6cb:a431:2d75 with SMTP id be8-20020a056a001f0800b006cba4312d75mr6467016pfb.7.1700756328230; Thu, 23 Nov 2023 08:18:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700756328; cv=none; d=google.com; s=arc-20160816; b=zZYJvh4dgbDYItVu3cu1HA9A/LzX/+907WVW3C2RsNZdE/kNa1LPvPdYYcHvk8WCXC j4D3CBnPGMUzldvR14qFu50gEx5I/4YpqdML2WVCOwtvBkCtcRIvo0glZCjXc24LTpN7 QzI9+ANhl/cslLJylI0Hj7rM/YhoYAZFb/7GfNRasDbZFOqAv1HOOJKKeqJFbAuEz2rt 2OF3MykEl8ADNtKbWCWqKgjSEBqZwwNbAvSEdcepM8H35eE2GbL9at28T0S+JqrVIhwY 3ABnl8EbjCdi7nFS+1IyzqzzSuvwi4a/v12PFrFrz3nMRR1Rs1iGY6ZYFVuZeHqsJs8u 24Zw== 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=NNXxUTG8R40OhSLEVqBzS0dsS0Q8Pyvv4LmU/l+X8xE=; fh=ZAX3GN6q2h9OnrDfPzfKJge/S90evt3pEHqOzE6w7g0=; b=jpsVFmB9pYQ4nQMF0re5E7lfcYf1lCqyRA4YukqRK3+vkRHCWeRjaTYvqeF8iD5pNI 0ID0EOUNz1S2+Bctq88fEq4rpIzC4oVSmznkoqAU/Y6GTbO788wYmdfvyNvxioJsV4oR AkHXV+fE0Lsugpn5FpRZHfphamLvWXj0vlq0SKfKNeCwC4TTqc84eEsuEq0jipV/IFw4 ohEMufGCQmk6S9MOhjqB/y1vCg+CtMWY8DHEtE5LvRbWtmOSGCgMfzj4EfYf0lmqEG1C QoIZ37nq+55WYW9T6w/VskwUBJju/OqaSKVH4A7ZS22FfPVYu1RLOk0SQ9c2KdasQ68i r92w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DTzQfIto; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u19-20020a63d353000000b005c2786b7e37si1583545pgi.385.2023.11.23.08.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 08:18:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DTzQfIto; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id B971581F8FF1; Thu, 23 Nov 2023 08:18:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbjKWQS3 (ORCPT + 99 others); Thu, 23 Nov 2023 11:18:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjKWQS3 (ORCPT ); Thu, 23 Nov 2023 11:18:29 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D5F41A4 for ; Thu, 23 Nov 2023 08:18:35 -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=NNXxUTG8R40OhSLEVqBzS0dsS0Q8Pyvv4LmU/l+X8xE=; b=DTzQfItoUoWrSdgivicSkvfHbk LuUFl8J3TpwDSmzjNwoL7SR5i10AH+GQj/0ABB152Vd0/Xu4FU6jZjLoHCq9b25WXyeQ+lcX8PtZs Ksqha9OpHt+USc2a2yA70A5n1LBpfihkLr+YDZLR95g3xb28rMij4zqgYDCFLA2ws3Fp2ND6WOB31 1rXaEUOY4NEI05mQyt8E+qAhw+qNs5k8YmJDN5dZ6w6J69cMAKRZIv8nIwHp2849WSKCOgzKK4bPv knCoYeilABV/xwstcKYlvqnD3EIKKmFEMEguPr2EyT3tnpjHAdBgUyoyRI0rA5a1GTg6zQ9U4op+c gJ/9F1rw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1r6CP6-007hXJ-21; Thu, 23 Nov 2023 16:18:12 +0000 Date: Thu, 23 Nov 2023 16:18: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> <7f76ee6c-f0e6-443b-bcff-3637895dec66@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f76ee6c-f0e6-443b-bcff-3637895dec66@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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 23 Nov 2023 08:18:45 -0800 (PST) On Thu, Nov 23, 2023 at 05:05:37PM +0100, David Hildenbrand wrote: > On 23.11.23 16:59, Matthew Wilcox wrote: > > On Wed, Nov 22, 2023 at 04:29:40PM +0000, Ryan Roberts wrote: > > > Note: I'm resending this at Andrew's suggestion due to having originally sent > > > it during LPC. I'm hoping its in a position where the feedback is minor enough > > > that I can rework in time for v6.8, but so far haven't had any. > > > > > > Hi All, > > > > > > 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 disagree. > > https://lore.kernel.org/all/65dbdf2a-9281-a3c3-b7e3-a79c5b60b357@redhat.com/ And yet: https://lore.kernel.org/linux-mm/20231106193315.GB3661273@cmpxchg.org/ "This is a small THP so we don't account it as a THP, we only account normal THPs as THPs" is a bizarre position to take. Not to mention that saying a foo is a small huge baz is just bizarre. Am I a small giant? Or just a large human?