From patchwork Sun Feb 23 19:25:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Arcangeli X-Patchwork-Id: 11399003 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D558792A for ; Sun, 23 Feb 2020 19:25:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A24E720656 for ; Sun, 23 Feb 2020 19:25:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="J9fa1iSS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A24E720656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 433516B0006; Sun, 23 Feb 2020 14:25:32 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 40A106B0007; Sun, 23 Feb 2020 14:25:32 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2F8FB6B0008; Sun, 23 Feb 2020 14:25:32 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0085.hostedemail.com [216.40.44.85]) by kanga.kvack.org (Postfix) with ESMTP id 191586B0006 for ; Sun, 23 Feb 2020 14:25:32 -0500 (EST) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id C868A824556B for ; Sun, 23 Feb 2020 19:25:31 +0000 (UTC) X-FDA: 76522370862.23.mom26_8788cc9c0984a X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,aarcange@redhat.com,,RULES_HIT:30026:30054,0,RBL:205.139.110.61:@redhat.com:.lbl8.mailshell.net-66.10.201.10 62.18.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:149,LUA_SUMMARY:none X-HE-Tag: mom26_8788cc9c0984a X-Filterd-Recvd-Size: 3165 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Sun, 23 Feb 2020 19:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582485930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UU+BZ7vU0vNDbayPRMPpX1ixOqnikP7N9LBd4qlvCto=; b=J9fa1iSSexq4fp6Im+CI0P3qIra6ecVrwwNWAKAuvNkLpJTSKN3kdGjXCAufrePjilpqLt bbYy3alUe7kO/O82o+8hGIUuMYGdoioR0K+QOGlPNiWakWIvLvofd9Yz1/5sQfIAOUUhXb oVIlWqbFhJHGDQpFtKcr/Cw45ctLwYM= 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-358-UwRa0Mr-NV2TRQOgVtHpPw-1; Sun, 23 Feb 2020 14:25:25 -0500 X-MC-Unique: UwRa0Mr-NV2TRQOgVtHpPw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1F85E184B121; Sun, 23 Feb 2020 19:25:24 +0000 (UTC) Received: from mail (ovpn-120-118.rdu2.redhat.com [10.10.120.118]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3A42F60BF1; Sun, 23 Feb 2020 19:25:21 +0000 (UTC) From: Andrea Arcangeli To: Will Deacon , Catalin Marinas , Rafael Aquini , Mark Salter Cc: Jon Masters , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Michal Hocko , QI Fuli Subject: [PATCH 2/3] arm64: select CPUMASK_OFFSTACK if NUMA Date: Sun, 23 Feb 2020 14:25:19 -0500 Message-Id: <20200223192520.20808-3-aarcange@redhat.com> In-Reply-To: <20200223192520.20808-1-aarcange@redhat.com> References: <20200223192520.20808-1-aarcange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 Acked-by: Rafael Aquini --- 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.