Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1640038ybv; Sun, 23 Feb 2020 11:26:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzcoW9SXzjxXRSUt6QwLEUzR1q2NS7Z7AhksQudYxbNfJXvfztlEsEwdlIWj52PQt+NQ2UC X-Received: by 2002:a9d:268:: with SMTP id 95mr38189588otb.183.1582485960214; Sun, 23 Feb 2020 11:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582485960; cv=none; d=google.com; s=arc-20160816; b=G7npyljIYjQM7I/kXCLMXF6ZkoUbwYaT1VOFmO/eDxOgMi/yR1FcAuOCfbzwy2TpzQ sqxvYb6eiBV4cux4tV3Uf+Om/j2Jn7EUbOtRDAOnkJOyt1d3aDShy4yHqrFiujzBo+9X TiZ9kCXKKIi/S721x7Sg1Nles0FnL8Zge46zF4arSbUxMXDO2P7l3XFQVnV9Z62Mrzjr ZrOW/KITsQ7J4BqaLKmAjr5doJzUu0d9mHeVlYeDnuQiCJ1rU61TuHmx7hnFZ5wSI2GG cf0Zwk/IQBL42LmEHZDUFzue5po8Hc+CIKLSFg/M7kyfEJaAtUKoz5rsIf0/fyIMyxdg v/xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UU+BZ7vU0vNDbayPRMPpX1ixOqnikP7N9LBd4qlvCto=; b=CZnKGkbe5i4595eh07BspXLfakbtNmayrfU287HN6JwjQYnBGt/nu4rIiAn4KfRfc9 lcJb5ZKSXuDkDF4CpY5Btt2fOAm9MG7fBR7RAagdd6DDOH/HnHTCFzaW3UXZCE5GXKxV a8N1GBParlo3KVAHRIx7snW1X9eRdPj4hKpm54Xn64YHupf7r+BN6hRVHYAoLQwtMWRY 8JoI99lVDBQ5wapP/8qj0VniayZJ9zkBO9G3uJl9Xe68eUuv7Pq6qBYfunebNGRyoGgt qRxOD2DELiKXTtFLN3AZmND4c8M5SXb0JQMAN96/dXDlzllngWEizYo9a40TQ2/B3aby 0kmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J9fa1iSS; 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 r1si4861297otn.150.2020.02.23.11.25.46; Sun, 23 Feb 2020 11:26: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=J9fa1iSS; 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 S1727185AbgBWTZc (ORCPT + 99 others); Sun, 23 Feb 2020 14:25:32 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:30565 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727158AbgBWTZb (ORCPT ); Sun, 23 Feb 2020 14:25:31 -0500 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 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. =20