Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7108742rwr; Tue, 2 May 2023 09:33:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4dAI7nv6jr+R6KAGgLay1Sxju41otfRjk49MD3ZLSl9QXoP3jQSeJ3+sX6/9ogkYvJxOov X-Received: by 2002:a17:90a:fe0e:b0:24e:69d:3470 with SMTP id ck14-20020a17090afe0e00b0024e069d3470mr6581436pjb.8.1683045228464; Tue, 02 May 2023 09:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683045228; cv=none; d=google.com; s=arc-20160816; b=W77YjhTLWdNSRVl5bkLI5RMyyMWcjfxKbHPc4LW7pApFN+SEmVib1P1boD0arh7eiF g3Bg135LctSp0aMrejWU0pK4XU2jof78eFT0h0eMj58TfHSbKuEvQPpFI2m2tbRvJ0Ir UTdzxmofSt+b6RwCPqPVUkDEtQ71NLYajPumIbWethSLDsuQwvS7dp5LBTooJLqm1u46 WXlIvmD+2WjVWBNJj3YJCu1tWFHnqGBJcSfX3KgrEi9uDOJMHWYK1P1bv19HtqhZZLli LeBTgW91/ZvrELFzQFK9yp2p/oPnEQ4OsQUq7/5Od7wOppmZFwjHqUTqDRAmjLmy4J/x fzHQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iwtd28bCWAjv6Bz6oYIaUWTDh8cI7ghrwwFz3YARe1M=; b=Oei7v6E3iZpsdfcVt5d7BXYI9m0SR+cljRSy6FDmy4OH1a1SrMf9ufZ0HzzMGbZqJG mkVVCX8kd/NpUMTbhPsFWo1G7ULlIU6k99DAq1sWnKv0GvvjDUUNEavFLOTbJ2eEyGiJ A7h07l3E+DdVk2C76cOQfM6/s9tWdwERRm5JCyhNPBm3vUu14BCA11pITWtwhEozqNPx ydpQeQ/ZYaRivobhEFVMnicPFyu6bI+fy2xEahKgmTAA/8jTuehJaJgXI/KUbMWhs25V 55lxKLdKhb8uXxvOcoDuCimz1RShBV+L4HVXIdmLNzO/+MuDR5wKk4OCZyArUi7N3x7e w19g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IdUjNmOE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a65448c000000b005075581074bsi30475523pgq.446.2023.05.02.09.33.33; Tue, 02 May 2023 09:33:48 -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=@kernel.org header.s=k20201202 header.b=IdUjNmOE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233647AbjEBQMa (ORCPT + 99 others); Tue, 2 May 2023 12:12:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233610AbjEBQM3 (ORCPT ); Tue, 2 May 2023 12:12:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDFAB211F for ; Tue, 2 May 2023 09:12:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 780BA61B63 for ; Tue, 2 May 2023 16:12:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C61AC433EF; Tue, 2 May 2023 16:12:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683043947; bh=BKP/NRP6Jh2ClPAIw8fJECtIwuk/nPYRuHSqf4IHEuQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IdUjNmOEWwlm2BPRV79WT1RROSt7DfOEcQK8/Fey6LK53l81rF9woUPh0Me7zzjMi IUcAzr9ylOXq6+JP/ZQygb76BVxnvZfP/TEEGRSBXkJ7RWssUNokajuPQbNFqAVUde ixLa7jx3mUB2vzAiOPTZn3/HkFxdrmqY3Y0Rl34S3561hnCTI8FoOTbsA5oRmQ1z9T 7PXzCXpEpC85Z/On9c3Zb60+PrmlJZ1r/+DGuiOJPBsJ7G24vMq+aZHxR14hepRtJW KyXEAywQ/Yya7tCEdBBYXn+eKf7roJ76jazgBtqSn9FdgfBnQ+p7hIaUjNa3NBwc6p a5JHgLBZACQvQ== Date: Tue, 2 May 2023 19:12:14 +0300 From: Mike Rapoport To: Marc Zyngier Cc: Justin Forbes , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jmforbes@linuxtx.org, Andrew Morton Subject: Re: [PATCH] Revert arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER Message-ID: References: <20230428153646.823736-1-jforbes@fedoraproject.org> <86pm7ihl0i.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86pm7ihl0i.wl-maz@kernel.org> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Tue, May 02, 2023 at 03:21:17PM +0100, Marc Zyngier wrote: > On Tue, 02 May 2023 15:07:41 +0100, > Catalin Marinas wrote: > > > > On Mon, May 01, 2023 at 04:24:38PM -0500, Justin Forbes wrote: > > > On Sat, Apr 29, 2023 at 11:02 PM Mike Rapoport wrote: > > > > Why the default MAX_ORDER was not acceptable on arm64 server machines but > > > > it is fine on, say, x86 and s390? > > > > I'm not asking how you made it possible in Fedora and RHEL, I'm asking why > > > > did you switch from the default order at all. > > > > > > Because the MAX_ORDER on aarch64 with 4K pages is more tuned to the > > > needs of the average edge client, not so much those of a server class > > > machine. And I get it, I would say well over 90% of the Fedora users > > > running aarch64 are indeed running on a rPi or similar with a small > > > memory footprint, and workloads which match that. But we do support > > > and run a 4K page size aarch64 kernel on proper server class hardware, > > > running typical server workloads, and RHEL has a lot more users in the > > > server class than edge clients. RHEL could probably default to 64K > > > pages, and most users would be happy with that. Fedora certainly could > > > not. The memory size of the machine or how heavy the workloads it runs have nothing to do with MAX_ORDER. Again, x86 and s390 are perfectly fine with MAX_ORDER == 10 ... > > I was talking to Marc Zyngier earlier and he reckons the need for a > > higher MAX_ORDER is the GIC driver ITS allocation for Thunder-X. ... but this indeed could be the reason to increase MAX_ORDER. > > I'm happy to make ARCH_MAX_ORDER higher in defconfig (12, 13?) if > > CONFIG_ARCH_THUNDER. Mobile vendors won't enable this platform. > > In any case, I'd like to know exactly *what* requires it. The only > platform I know would benefit from this is the old TX1, but this > machine is more a boat anchor than a real server. Yeah, if we'd knew what exactly requires such huge contiguous allocation, we probably could fix that and leave Kconfig alone. -- Sincerely yours, Mike.