Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2993395ybf; Mon, 2 Mar 2020 20:33:00 -0800 (PST) X-Google-Smtp-Source: ADFU+vu0cwfMEFZhBZi/A8mU3GdaL1bVRKm7r00oocbwSn2tFmrM8B7MbDot64DPyucryGtjIyzj X-Received: by 2002:a05:6830:1f18:: with SMTP id u24mr1872141otg.99.1583209980012; Mon, 02 Mar 2020 20:33:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583209980; cv=none; d=google.com; s=arc-20160816; b=ZiThitYL/P7qTwfFIjHaiSs7a4cQVEoQ8HEjfdg+Y9WA/RlP6EJmqy+jl5gct+dAb3 I7KJHwo5RM7MLBo0uaicRXaWlLk4hiCKEeq3oVVutGhKVUkIJsPlJyhlMxJ8FkL2hYIN MRcmW0h/OM5fo2GI68FPXaKJELSzJyeTpy+q5cg6kEhpRNTVD78SQ+stoX0rIepRPE1n gM/TaynR8pxAoengyerCRMX8INOwJccAZ8buU5D+64oiJuafW1hPG23SEhxxk+52rG0Q UaTnOosVVMWljJKd7Vzf8NM0/eAf8R77tUrZsNtH1Srmj+2dNdTayw50SOqK7jck0o7L AA8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=G7PTv7USExYEn8kuZRYNfAsmaeP7hh+IuVMoTsdTys0=; b=UmR+tWKML+/TG1jPZwV4zj1OGvMq1asOfIGOTagvRQ9AamEPhpbkPQnacP4kNzJcNQ loLHw+TTNpY+TF4QqRe8bfl2FU43eSzV9+v7M7II5ScfsrkeFbhtAPUOyKaji7mQamPa zZJNxsVlt973U1VGKSEA0GJppK+tNmpdRRmFE4Yg6uwFHjxPLtXTiNY5UDykcshKBwAN ppTLTgX6wDuZ5qI/zfiSnn0qYu1rj8FxZdF5W3zGY51sCztSxzbIzY/YbKLg438vP10n MnPCIQV0Rj3MpD29wzfes8TWHMltpku69+TfnM3A/pVJbCsYqsrc/UZG3DYLdrQYt5Hz blMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HVv0BoVS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si7142363oti.311.2020.03.02.20.32.48; Mon, 02 Mar 2020 20:33:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HVv0BoVS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726990AbgCCEbY (ORCPT + 99 others); Mon, 2 Mar 2020 23:31:24 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:43114 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726859AbgCCEbX (ORCPT ); Mon, 2 Mar 2020 23:31:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583209883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=G7PTv7USExYEn8kuZRYNfAsmaeP7hh+IuVMoTsdTys0=; b=HVv0BoVSirTjsKnuQequpaiMqjxLkSz65Fn2sLod+QPL2gngbuSQTK8t9BcV5CvQ6+IPuc AN4NU0Mf5Fi3XTQN/sabcmr1guYcrzN65Zi8NbBPelMlWYwwwiJL2hQjy1HYI4PH4pMCyr 8ohf63MUO/1DM5LEkt+XNKsjdTq3cI8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-177-ATO5EeQENWy1aM7HvrAlrw-1; Mon, 02 Mar 2020 23:31:19 -0500 X-MC-Unique: ATO5EeQENWy1aM7HvrAlrw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 98B7D8017DF; Tue, 3 Mar 2020 04:31:17 +0000 (UTC) Received: from t490s (ovpn-116-88.phx2.redhat.com [10.3.116.88]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 301501001B2C; Tue, 3 Mar 2020 04:31:16 +0000 (UTC) Date: Mon, 2 Mar 2020 23:31:13 -0500 From: Rafael Aquini To: Andrea Arcangeli Cc: Will Deacon , Catalin Marinas , Mark Salter , Jon Masters , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Michal Hocko , QI Fuli Subject: Re: [PATCH 2/3] arm64: select CPUMASK_OFFSTACK if NUMA Message-ID: <20200303043113.GB94763@t490s> References: <20200223192520.20808-1-aarcange@redhat.com> <20200223192520.20808-3-aarcange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200223192520.20808-3-aarcange@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 23, 2020 at 02:25:19PM -0500, Andrea Arcangeli wrote: > It's unclear why normally CPUMASK_OFFSTACK can only be manually > configured "if DEBUG_PER_CPU_MAPS" which is not an option meant to be > enabled on enterprise arm64 kernels. > > The default enterprise kernels NR_CPUS is 4096 which is fairly large. > So it'll save some RAM and it'll increase reliability to select > CPUMASK_OFFSET at least when NUMA is selected and a large NR_CPUS is > to be expected. > > Signed-off-by: Andrea Arcangeli > --- > arch/arm64/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 0b30e884e088..882887e65394 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -955,6 +955,7 @@ config NUMA > bool "Numa Memory Allocation and Scheduler Support" > select ACPI_NUMA if ACPI > select OF_NUMA > + select CPUMASK_OFFSTACK > help > Enable NUMA (Non Uniform Memory Access) support. > Acked-by: Rafael Aquini