Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5991552rwr; Mon, 1 May 2023 14:26:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ530woHojoQJtOnNIT2BIo3O0Qt2Hgd3JXLVPAB66WQIeSnzfBJ6Ek+pPBqNaMZfLDQLU7Y X-Received: by 2002:a17:902:e5c5:b0:1a9:a87d:be1 with SMTP id u5-20020a170902e5c500b001a9a87d0be1mr20981986plf.34.1682976384449; Mon, 01 May 2023 14:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682976384; cv=none; d=google.com; s=arc-20160816; b=KZV6JADKM8n7TZseIxoytbhn1g6JQumrmuXqQVqUBFEQ2Mkdu5xZgLZ3n3ZUgjJw/f Mg08pW0i0geAsl9XyX9eE0k9BSYso7OjRTi70uqk2h1cC+v2Xi4wKg9Zgo0yFVv3WcDN CunE2jf1uZ3tLFhnJrqlDr5AMUYTDva+vrLv/mz0ZqdLvc2tOx0aKd2sEyCk3nrWCLzm 3xZf+YuK0O+WQuc5yVnqlBqArDfgwFGGLD/rtTUveQA5oaGdONkdPb3chNxrllK73vGE OEJHTRXCnqkTrnbCm1Qt1PTZdv6B1L/D4lBhPemzs1KBHSaH5n92ADtz/uHhsM5PS07a yYoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :dkim-signature; bh=uRNEo4fec1ydGjEoS5W2dSAkWJWfTSd2Rg/x8kCWeCw=; b=GkQy65Nj9Zx2tmLXX8eynCXuQA1m0SEIQ4+wsf6AEN+ia2IY+cRqfZiHdbeKsYsqqP 0FOjc2FVWYFsBUT5+Kj1emapOEoPfWUwmq25yykaMTYuQWTEXuw4s9q1ZbFg6Ivu64rm ESdA4Xs4TlqQr5jzi1Jx/g6l62FxC+Ab2AHVMhpOMnL5KiATWZP8i1aXkN4/ExzYv82s YZqVj/YNEFLYRPuA5YXQJzcTrCnqlX7ic0hRpXj8pUrGiy8yBRazLxggk0lALajW4cNj 2vLf1OztciBXU32h3scn96LMVQc1xpS53rqnJp2qxHqRhT1wwbrU3XJtBBVyu3cn3XBJ hP+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxtx.org header.s=google header.b=OUSQA6fI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=fedoraproject.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a170902a3c900b001a67a19331dsi27473864plb.202.2023.05.01.14.26.11; Mon, 01 May 2023 14:26:24 -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=@linuxtx.org header.s=google header.b=OUSQA6fI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=fedoraproject.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232602AbjEAVZB (ORCPT + 99 others); Mon, 1 May 2023 17:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjEAVY7 (ORCPT ); Mon, 1 May 2023 17:24:59 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CDA0173C for ; Mon, 1 May 2023 14:24:55 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4f00c33c3d6so4004489e87.2 for ; Mon, 01 May 2023 14:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxtx.org; s=google; t=1682976293; x=1685568293; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=uRNEo4fec1ydGjEoS5W2dSAkWJWfTSd2Rg/x8kCWeCw=; b=OUSQA6fIHtatxzhqErSD6fXBZlTtHhxhdlTeRsqoyKQ/fWA7GNPWhb4hF1Xvl8GDQ+ OWWuax8mKfFIJpT3qLumqurqPkro8IZTcUxeJ2tVlQxrWgjoHyMmyIeCy89Ga30Sq0QP unNihkCb7ABu/13lUGYuTQJC860A906K5o7Uk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682976293; x=1685568293; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=uRNEo4fec1ydGjEoS5W2dSAkWJWfTSd2Rg/x8kCWeCw=; b=Aj/0SeYrRf93t3HAvYRCeghnJV/GcvGFcVil0536V2wyBnxZUp2rgYUN6EMisd/gzy uv7oo1cqbSBZtSHrW5W61KJvTTeGjDIAm+LaNZ9xv6PLTKXfCJq8+9DfWJTFmsGsvMoW KGMn9NIQNX4tnxZYcz/BKf/88p3ERtqnEhCpPzpMJ5DENNm2zTv+n+wJvhZvfhtzkO7Z b706QgPAgRlTPa1jndLjow82mMhIDjWBtIzBjHZJBxnxHjYNxCEuFbhZKEI0Obpl7HVE il6UfTos/zHRD+Q8tVoBtEvHoi/QQNb4IFF9slw7tNxy39V/NVDmCGH1U2Br6Tj/lyzM N96g== X-Gm-Message-State: AC+VfDxteFlQEtCd6N0AHstU/RrmeEvYOeoyUqjFfFWMEoG2Met4pQM/ oNsOC9FSvKDQA1JT9cYRbcy47YLqM8iGt/018llzbmlv X-Received: by 2002:ac2:4904:0:b0:4f0:da5:773f with SMTP id n4-20020ac24904000000b004f00da5773fmr4108367lfi.25.1682976293335; Mon, 01 May 2023 14:24:53 -0700 (PDT) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id o26-20020ac2495a000000b004eff4ea8dd3sm3461256lfi.76.2023.05.01.14.24.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 May 2023 14:24:51 -0700 (PDT) Sender: Justin Forbes Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-4efe8991bafso4035979e87.0 for ; Mon, 01 May 2023 14:24:50 -0700 (PDT) X-Received: by 2002:ac2:59ca:0:b0:4ec:89d3:a8a2 with SMTP id x10-20020ac259ca000000b004ec89d3a8a2mr4087163lfn.43.1682976290352; Mon, 01 May 2023 14:24:50 -0700 (PDT) MIME-Version: 1.0 References: <20230428153646.823736-1-jforbes@fedoraproject.org> In-Reply-To: From: Justin Forbes Date: Mon, 1 May 2023 16:24:38 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER To: Mike Rapoport Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jmforbes@linuxtx.org, Andrew Morton Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sat, Apr 29, 2023 at 11:02=E2=80=AFPM Mike Rapoport wr= ote: > > On Sat, Apr 29, 2023 at 05:42:11PM -0500, Justin Forbes wrote: > > On Sat, Apr 29, 2023 at 2:01=E2=80=AFPM Mike Rapoport = wrote: > > > > > > On Fri, Apr 28, 2023 at 06:01:30PM +0100, Catalin Marinas wrote: > > > > + Mike and Andrew > > > > > > > > On Fri, Apr 28, 2023 at 10:36:45AM -0500, Justin M. Forbes wrote: > > > > > While the ARCH_FORCE_MAX_ORDER changes clarified the descriptions= quite > > > > > a bit, the aarch64 specific change moved this config to sit behin= d > > > > > CONFIG_EXPERT. This becomes problematic when distros are setting = this to > > > > > a non default value already. Pushing it behind EXPERT where it wa= s not > > > > > before will silently change the configuration for users building = with > > > > > oldconfig. If distros patch out if EXPERT downstream, it still c= reates > > > > > problems for users testing out upstream patches, or trying to bis= ect to > > > > > find the root of problem, as the configuration will change unexpe= ctedly, > > > > > possibly leading to different behavior and false results. > > > > > > > > > > Whem I asked about reverting the EXPERT, dependency, I was asked = to add > > > > > > Nit: When > > > > > > > > the ranges back. > > > > > > > > > > This essentially reverts commit 34affcd7577a232803f729d1870ba475f= 294e4ea > > > > > > > > > > Signed-off-by: Justin M. Forbes > > > > > Cc: Catalin Marinas > > > > > --- > > > > > arch/arm64/Kconfig | 4 +++- > > > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > > > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > > > > index b1201d25a8a4..dae18ac01e94 100644 > > > > > --- a/arch/arm64/Kconfig > > > > > +++ b/arch/arm64/Kconfig > > > > > @@ -1516,9 +1516,11 @@ config XEN > > > > > # 16K | 27 | 14 | 13 | = 11 | > > > > > # 64K | 29 | 16 | 13 | = 13 | > > > > > config ARCH_FORCE_MAX_ORDER > > > > > - int "Order of maximal physically contiguous allocations" if E= XPERT && (ARM64_4K_PAGES || ARM64_16K_PAGES) > > > > > + int "Order of maximal physically contiguous allocations" if A= RM64_4K_PAGES || ARM64_16K_PAGES > > > > > default "13" if ARM64_64K_PAGES > > > > > + range 11 13 if ARM64_16K_PAGES > > > > > default "11" if ARM64_16K_PAGES > > > > > + range 10 15 if ARM64_4K_PAGES > > > > > default "10" > > > > > help > > > > > The kernel page allocator limits the size of maximal physic= ally > > > > > > > > The revert looks fine to me: > > > > > > > > Acked-by: Catalin Marinas > > > > > > > > For the record, the original discussion: > > > > > > > > Link: https://lore.kernel.org/r/CAFxkdAr5C7ggZ+WdvDbsfmwuXujT_z_x3q= cUnhnCn-WrAurvgA@mail.gmail.com > > > > > > I'm not really happy about this revert because MAX_ORDER is not somet= hing > > > that should be changed easily. > > > But since hiding it behind EXPERT would silently change lots of exist= ing > > > builds, I won't object. > > > > > > Still, I never got the answer _why_ Fedora/RHEL configs use non-defau= lt > > > value. Quite possible something else needs to be fixed rather than ha= ving > > > overgrown MAX_ORDER. > > > > I get that, but I also looked at the rest of the patch set. Nowhere > > else was "if EXPERT" added. Why wasn't it added to other > > architectures? Not that I am complaining, but aarch64 in particular is > > the one arch where, as a distro, we are trying to accommodate both > > Raspberry Pi, and server class machines. > > The patch was about dropping the ranges, not about adding EXPERT. So on > arm64 it was added because Catalin requested it, other arch maintainers > didn't. > > > It is the practicality of building a single kernel image that works > > along a large number of machines. The defaults are fine for smaller > > boards, and honestly the majority of aarch64 hardware in circulation. > > They are not acceptable for server class machines running those types > > of workloads. > > 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 wh= y > 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. At some point, we may consider adding another build so that we offer both 4K and 64K pages, but for now, this is where we are, and where we have been for years. Justin > > Justin > > > > > -- > > > Sincerely yours, > > > Mike. > > > > > -- > Sincerely yours, > Mike. >