Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1941100rdb; Tue, 5 Sep 2023 09:21:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGh8DN3OD/ciGvTfRt24OiN2+MYefgsIYoDnbciS3ZyPcOy/a+pm6zF0mW0A79m/WNnPTlv X-Received: by 2002:aa7:d447:0:b0:523:3f45:5678 with SMTP id q7-20020aa7d447000000b005233f455678mr246853edr.31.1693930917452; Tue, 05 Sep 2023 09:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930917; cv=none; d=google.com; s=arc-20160816; b=qtE9opBvacXCljtwP18+tZNltabUDaeYoWr3vM9009DR8PgKiW5K+yL95lKc8O9yiB yLC41LYX2CJGxyenaJAyPMrxMbGYJ/7niUHrPUeesjkOJatDFqIe+jlWoBwiWeuNsqDj tQzU2fy8EsllPATGLbKjyHQahGNrnuHrLxEtMhOQucYIZnRXBy0s8pg/RUj5kWFWZKhG Ve48Raew49uaOikl8LKkTTRkdekmxhiqp2/fSS6C9HZ4AX9qI28D9peBCJqfci3y+Y96 SNsrRForJ1ATl0GlfRQhJJlaBIpM9RNzGPwNunc6SVzlKTCFpOJjsK2ZYmBZOLUSxcs0 /I7A== 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=BTmtDO+xBZOfoQMGxZ2QpE27NcKVMjWoTS63e1aA26k=; fh=DYTkh6MU1NMHCi1+rnkTsGQ+3ZBFElWrHJba3tx3raI=; b=bXqZOVGTOcBOGfIkdBGr/Oaqc7g1fEE/0gkjbfoORolKLwPrQbogTQv1fPn+0nL/Kh aZWj3RrodyUNqxyOG3fyQh6W170o35iNKSUwjHqWN+rpq+abc6Zi2z10qR6Trs9k9Vbv mOzAioDwxH0mXQMoR3EhfJNNq0tj7HzO5Yd9z4mdontYne48sS46Wu7rVwMrvDlsGqoI quA/7/YfwMOlcTOoYpiHiJ9yVdvwjzxSrmb6tUCIc9DJysmBgyXzF46XBWDlgJCKgTln 5WSW8FbZoDR+HeyCB+oVsbKegoUbTfh8JyllWsqlJVAOW8gUEjU9IBVvyAMjNpauAHXF sxEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jAhYpYq9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020aa7c24c000000b0052a3a7c9d2fsi7251915edo.465.2023.09.05.09.21.53; Tue, 05 Sep 2023 09:21:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jAhYpYq9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345722AbjHaM3t (ORCPT + 8 others); Thu, 31 Aug 2023 08:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231799AbjHaM3t (ORCPT ); Thu, 31 Aug 2023 08:29:49 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 817B719A for ; Thu, 31 Aug 2023 05:29:46 -0700 (PDT) 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=BTmtDO+xBZOfoQMGxZ2QpE27NcKVMjWoTS63e1aA26k=; b=jAhYpYq95b8S5ZQX9DMO8BVPEE BK5PM8iV2xU7p3qYU8bQn7a+iGSAI6iSCeA+soBPAYbx1mtfJQNqMmzs+f/SvbqUHbgq1jZ4m6Fdd 4398M+N049JigIdBj7+tH0A5SHgugl56okhVuoHt3OxbPZAAeD5HYy3J2cBESDiatT4GFnnqx5iEX duGznyfgDRqTqmz+YQNRibyuBwICNagI+O+ABmeUwHXvljcY2uAcyhOslLi+dSdKy44yz4hDYOWvd BuMz+MjcsiM9k4jbIs2kbRRzPTFS5A8FxFfGn6ps3HruAH0Fwqm6UtXRW/p3QBg+nRUksQFMZGO0j PoLA0KgA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qbgnc-001HfL-Um; Thu, 31 Aug 2023 12:29:25 +0000 Date: Thu, 31 Aug 2023 13:29:24 +0100 From: Matthew Wilcox To: David Hildenbrand Cc: "Huang, Ying" , Ryan Roberts , Andrew Morton , Yin Fengwei , Yu Zhao , Catalin Marinas , Anshuman Khandual , Yang Shi , Zi Yan , Luis Chamberlain , Itaru Kitayama , "Kirill A. Shutemov" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 3/5] mm: LARGE_ANON_FOLIO for improved performance Message-ID: References: <20230810142942.3169679-1-ryan.roberts@arm.com> <20230810142942.3169679-4-ryan.roberts@arm.com> <87v8dg6lfu.fsf@yhuang6-desk2.ccr.corp.intel.com> <5c9ba378-2920-4892-bdf0-174e47d528b7@arm.com> <87cyz43s63.fsf@yhuang6-desk2.ccr.corp.intel.com> <4e14730b-4e4c-de30-04bb-9f3ec4a93754@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4e14730b-4e4c-de30-04bb-9f3ec4a93754@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Thu, Aug 31, 2023 at 09:57:46AM +0200, David Hildenbrand wrote: > As raised in another mail, we can then discuss > * how we want to call this feature (transparent large pages? there is > the concern that "THP" might confuse users. Maybe we can consider > "large" the more generic version and "huge" only PMD-size, TBD) > * how to expose it in stats towards the user (e.g., /proc/meminfo) > * which minimal toggles we want > > I think there *really* has to be a way to disable it for a running system, > otherwise no distro will dare pulling it in, even after we figured out the > other stuff. > > Note that for the pagecache, large folios can be disabled and distributions > are actively making use of that. You can't. Well, you can for shmem/tmpfs, but you have to edit the source code or disable CONFIG_TRANSPARENT_HUGEPAGE to disable it for XFS.