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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B1E3C43334 for ; Wed, 8 Jun 2022 19:51:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235674AbiFHTvq (ORCPT ); Wed, 8 Jun 2022 15:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234622AbiFHTvn (ORCPT ); Wed, 8 Jun 2022 15:51:43 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D227136E84 for ; Wed, 8 Jun 2022 12:51:42 -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=Zh6E1O/k4DCyLCNrPy8WRcNMDmgmQJh3yrbMqbEzUhs=; b=I7tvEA3+jYoN1tcr52ZiyNV/jy e6M7Ol0yCMQITuuaTrI2z3QK1k0Hp4oJpbEoYQW6eJeCG8HVEP0hVB+DqpEQOx1gDIivjOIUTr1RW Vy/gkl0wlffUTp+dG/2Icm5yzp1gz2xL6WknwUJq9KEhNh9yvXBHk0x1aeVrIMTFy6hrFN+o87EOo P3eag/CE0GD9mMv3dARWzEr5atGFN17FmRXU/2SEZfLRCHJ/SkGp/k0ufbdvMr0kSzQakpx8jav4i V6KCdevK8gxDl1oKe9LYvbQaQz1FU+PrbSKoHdh62zBQLOAisUicFi/HxX/lza1rghhLVEQLgIHD4 g4r7YplQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nz1iN-00CvOe-Qb; Wed, 08 Jun 2022 19:51:39 +0000 Date: Wed, 8 Jun 2022 20:51:39 +0100 From: Matthew Wilcox To: Linus Torvalds Cc: Ankur Arora , Linux Kernel Mailing List , Linux-MM , the arch/x86 maintainers , Andrew Morton , Mike Kravetz , Ingo Molnar , Andrew Lutomirski , Thomas Gleixner , Borislav Petkov , Peter Zijlstra , Andi Kleen , Arnd Bergmann , Jason Gunthorpe , jon.grimm@amd.com, Boris Ostrovsky , Konrad Rzeszutek Wilk , Joao Martins Subject: Re: [PATCH v3 00/21] huge page clearing optimizations Message-ID: References: <20220606202109.1306034-1-ankur.a.arora@oracle.com> <87k09s1pgo.fsf@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2022 at 08:49:57PM +0100, Matthew Wilcox wrote: > On Tue, Jun 07, 2022 at 10:56:01AM -0700, Linus Torvalds wrote: > > I worry a bit about the insanity of the "gigantic" pages, and the > > mem_map_next() games it plays, but that code is from 2008 and I really > > doubt it makes any sense to keep around at least for x86. The source > > of that abomination is powerpc, and I do not think that whole issue > > with MAX_ORDER_NR_PAGES makes any difference on x86, at least. > > Oh, argh, I meant to delete mem_map_next(), and forgot. > > If you need to use struct page (a later message hints you don't), just > use nth_page() directly. I optimised it so it's not painful except on > SPARSEMEM && !SPARSEMEM_VMEMMAP back in December in commit 659508f9c936. > And nobody cares about performance on SPARSEMEM && !SPARSEMEM_VMEMMAP > systems. Oops, wrong commit. I meant 1cfcee728391 from June 2021.