Received: by 10.223.185.116 with SMTP id b49csp3796800wrg; Tue, 6 Mar 2018 05:14:06 -0800 (PST) X-Google-Smtp-Source: AG47ELto8mLBcn0zIifx9cKORnITHbL7NDn9fbwovHjFnOvxHQtESJJe3HAM6n/MUS/axd1E2gCq X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr16684703plx.420.1520342046755; Tue, 06 Mar 2018 05:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520342046; cv=none; d=google.com; s=arc-20160816; b=sBJqTPPR91n3Ie4vlZvWwUI7WvqmW5xq1IIuhqZpP/E0BB4wjBA0GbO4ByiX5zkW8m 5gTyzqm6sW5O76VbRYgYorOX0aFVzZRTaTjYsvKYthq8t+/Q8S1blCcPohEJDExxND5w lT2O+/6MrV9jevjeLtDzLzhWDH/v4Kt2Y47+gSsUws587OfzUAvyWNpW6zvFKRwdnC3H S7nje+X40gSOynkCZ4hTeGhIhr9COqWBfvrGPATbwlj27/+sCjdS9NAsvANlcmLRwuSF V3Kk+Ng0Gkg2BOQEtnCrKEjBQUNAWia0oRt9fNlASQgrK8HyRla2541otYhZWesNPw5p wTdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=G4PnEKH+ON8RaLOjh7CgU2/tFNKmUV0pfrpWolShpxg=; b=SGvTcJ7WkvPDIElaB8x+3uiZQ5S4OURkHTXJk4dnqko3DoxibyCB1x1w+9gxElMUoD s5URqUZ0y1kA014a3EpcrO4jNc8GwPrRwiLY9bZEkHMiQR+VaRZUw1z9CWC+G6xNGovK 5DH1Oc6886s68FsKzOXlS97Ve9EtQ90OdBURWkohORiVc0k3JPgG2bgHF5cD0Z07hTju Eq8MDNwrj764cnUNIoxod4nFxwrqwhDo2Fzkj8svvc4zEymvsmU9MdB4SDDramhvi+Sz 5haZsnS+DholPer8TUKOcMSnlX3A+bscmtltmUGegAFfRuZ6Lyl9WcUlyS9SgRkz8wx8 27QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=A0JE2wnh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h14si11969872pfd.404.2018.03.06.05.13.52; Tue, 06 Mar 2018 05:14:06 -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=fail header.i=@gmail.com header.s=20161025 header.b=A0JE2wnh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753682AbeCFNMb (ORCPT + 99 others); Tue, 6 Mar 2018 08:12:31 -0500 Received: from mail-io0-f169.google.com ([209.85.223.169]:42214 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859AbeCFNMa (ORCPT ); Tue, 6 Mar 2018 08:12:30 -0500 Received: by mail-io0-f169.google.com with SMTP id u84so21964801iod.9 for ; Tue, 06 Mar 2018 05:12:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=G4PnEKH+ON8RaLOjh7CgU2/tFNKmUV0pfrpWolShpxg=; b=A0JE2wnhHlhj5GMU/kCuNDWlr5sBueuODzj5vHHjiGVDnsvIXpsHdn0df+EI3dtNq7 yxkP6fxz9jQZj9r+MC5Rnr1Bm0xxwTSV8QBNO/r6nLXUgFjLjRRN3oBMGig6D3P2wKaX EQpLOKe3VlE1RHzl5MD38Cm9O1CVxKSBp4LefN2z1cum7JFA7E9owJ1gmAOgZPrCD0YL D8ryWtwKbtdsfhQwKe604Zwio3UVw7mPEdiG/+kG3GVSSQAtsphEbT7HBsfCrZodmWm9 vFpYkiTNZw+z9SeaKudELlFWeeNCSj021yygcMwp9PpM3RkIsO2T6wLgjTw3Ik/nT/E6 UkXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=G4PnEKH+ON8RaLOjh7CgU2/tFNKmUV0pfrpWolShpxg=; b=EwPou9OPLkmmEoztB8ABJHkrS0Zk1DpB3WnUmyz+8at4C7hXJ8dDoQTSC0HlQzfgr5 Q++amXaKbzGZvIf6LG9UInal5vkmGspmPqc57j3/KwwMNHAXg6RN61npsN6JPPi6TvPA +4zuS+Gpz22St7xkutbUnR4+k25UHUQWduCJr9xOVcxiwhLAlTdlrntKxoI2PWU1tFEJ +xAW/U6euar3q4Z5R9t/qgcZ+Frn7sHByCtXIROczrqE2FiWQ6jLm8o1prYPFaaGLm9o hyQr/DEZfqm3KWUFvN8n3EzSTv6tngC05JD2IkHHYZwFqWan0xuBqa6/68nQ/gfM79aC ZiwA== X-Gm-Message-State: AElRT7H0W7xW607zzg7p2IUKx+vQxKhC9VVMnXEZ/4BCCXIICbGh4fXc 4PILORQ+Cyo8OJ+E+t/v/slb5X/El+ZlsQvaW1s= X-Received: by 10.107.159.1 with SMTP id i1mr22827126ioe.0.1520341949565; Tue, 06 Mar 2018 05:12:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.34.71 with HTTP; Tue, 6 Mar 2018 05:12:29 -0800 (PST) In-Reply-To: <20180302143737.10788-2-jglauber@cavium.com> References: <20180302143737.10788-1-jglauber@cavium.com> <20180302143737.10788-2-jglauber@cavium.com> From: Arnd Bergmann Date: Tue, 6 Mar 2018 14:12:29 +0100 X-Google-Sender-Auth: 6Xc6kioZH0z6g8q7z8ACPZUJMQA Message-ID: Subject: Re: [PATCH 2/2] arm64: defconfig: Raise NR_CPUS to 256 To: Jan Glauber Cc: Catalin Marinas , Will Deacon , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 2, 2018 at 3:37 PM, Jan Glauber wrote: > ThunderX1 dual socket has 96 CPUs and ThunderX2 has 224 CPUs. Are you sure about those numbers? From my counting, I would have expected twice that number in both cases: 48 cores, 2 chips and 2x SMT for ThunderX vs 52 Cores, 2 chips and 4x SMT for ThunderX2. > Therefore raise the default number of CPUs from 64 to 256 > by adding an arm64 specific option to override the generic default. Regardless of what the correct numbers for your chips are, I'd like to hear some other opinions on how high we should raise that default limit, both in arch/arm64/Kconfig and in the defconfig file. As I remember it, there is a noticeable cost for taking the limit beyond BITS_PER_LONG, both in terms of memory consumption and also runtime performance (copying and comparing CPU masks). I'm sure someone will keep coming up with even larger configurations in the future, so we should try to decide how far we can take the defaults for the moment without impacting users of the smallest systems. Alternatively, you could add some measurements that show how much memory and CPU time is used up on a typical configuration for a small system (4 cores, no SMT, 512 MB RAM). If that's low enough, we could just do it anyway. Arnd