Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2835793iof; Wed, 8 Jun 2022 13:06:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo4imHr4DGQMnG1YjZdS+TdgfP3sHTslpk3vtypuQT0C3LMRSEyPU0+qWuhhU8CW6KVK7a X-Received: by 2002:a17:903:c3:b0:163:bfde:eec3 with SMTP id x3-20020a17090300c300b00163bfdeeec3mr36392158plc.152.1654718804605; Wed, 08 Jun 2022 13:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654718804; cv=none; d=google.com; s=arc-20160816; b=sJvwRnUPvcXyAyZrXA0PPu9H8k4gouyemlwkxAhO934QVpBCSXaVjgT0KbT5RfJekd Wlj/Xy3jIoSnX8LlZAuiCHgP20q8yYkosWmuYqnebgZOFw7eeYaFOJmphirSZu1dhwt8 Dx2NDjbFcnyqaJFhkWkCK53OARBUqsHmVPtlQ8xqBV0DcZMzb96WHtzrXLijGvBeFre8 EARsgpm1qIAaF91KUMNIrRBw7nTq0O81WywFOrNdVJCu3HsETjn9VYK/zMvmvyewJNWo 1I6cw5oDLX6TefFdajWrRdFcIuEf+dHZ5gEdF4CTEzx0J12ftZAxiDz+LAZ+AD/AcBpj Q2Wg== 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=Zh6E1O/k4DCyLCNrPy8WRcNMDmgmQJh3yrbMqbEzUhs=; b=tUWqa4a2kulplLuzWeF1mECSrCPA/qR6SjQf6JXx7pUcr2fjeWn9iar62BD1UIZ6qm PH4ZzhE+P0DK+3SVOxobEiCLIvVKFH3aESeJnUSYic/aTrSOIuBO2unf7e1GwmOj64+o jC48WY5awTECHS0imyNPYUGB3jBJyRdNxjmbYTrc23vVmbXT3zbpoYWI4kTuxrymjwhS HN3GsMM7CJVEvbrFveQ5dnfNYwCvm2m9/TS231Kdw6sB5OuAbtcLw9rmIMhRYhks8Wlk egxha1AWeTrU/5ZieJ3geSCRi4PAW5pFNUHPy+xWXZYksxb6Ni1TzM5D3wfioCh/BbKl 1rrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=I7tvEA3+; 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 m12-20020a63580c000000b003c5f2c3ac7asi30601216pgb.28.2022.06.08.13.06.32; Wed, 08 Jun 2022 13:06:44 -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=I7tvEA3+; 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 S235671AbiFHTvp (ORCPT + 99 others); Wed, 8 Jun 2022 15:51:45 -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: 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,T_SCC_BODY_TEXT_LINE 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 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.