Received: by 10.223.185.116 with SMTP id b49csp3847978wrg; Tue, 6 Mar 2018 06:05:08 -0800 (PST) X-Google-Smtp-Source: AG47ELutkrlONnu4LIOWQ52ALrjn5CmYlXduYaSrkNQrEZIAu0Lju7+QKM6sTR5PcTbsnxwNXgE4 X-Received: by 10.101.83.3 with SMTP id m3mr9953492pgq.197.1520345108091; Tue, 06 Mar 2018 06:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520345108; cv=none; d=google.com; s=arc-20160816; b=bQq0j3GobK9ypTLRcqErLp9K+6T9kfA+YAcJb2D3qDX37DnbT1mZPpi6EZnykTlvNw 2QmZX0DqEkf4bHZ56CvduYDOlZ6iyqv7qwT/nzy167mGZg6zPmfV207zX0p27vZ4dvvU LJU9hjJ/bY8UPR2Fb7OaRmD1xzoITdrRoRel507LTKuRBd8zi1J++O/5ljkKShE8h9ZI VIbeeKy+MbwmKErMWZY/s+OarjVdQdCf/pAcGLxpEd84wcPLb5V1V/12nwTeJtx/RNP4 XAIm7JO6pWsUL4hs/E6Fk3/jLr0X2Y8sEefEmSXefY3w7tk79ATzWKF/cEUiVTkV8ePe Ytng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=0nbTwD/vpQb2BfuzJO8U5wQfmDbMkc29Ejj5gYYvXLM=; b=wt1ztYB8dG8yS9B5IBG4/68RZN3SjpqaBie+0V8riA/+6gsCXotQBSJgPWDswZv2GW TQpiFEpZ1ZNDozK3Anz4iaXOBG1IDV6cYjUKFLKHSsAbheGbBIsX/LpduhXgmga4oavB AVUPcZBkwV+f3pZUI+vq94xrrIHwtPyVyJScjLAFyGkq5QC/3V4CvOd4qx9kP1A9yG+p 3LbV/cnsUKwGZeHJwkn2M6AnltvE2Vyh32RdDdJrlI7YkzvUwWv72QmbMVLU4yMCp2jG Bqaha0BoG8LB9hIxN/4JkvQbmPbCAuXI0OxFb0ngbpsET1GSSPSv4olfsEhXwx3Cp4M3 csDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=nzgyL+Em; 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 w31-v6si11111098pla.315.2018.03.06.06.04.53; Tue, 06 Mar 2018 06:05:08 -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=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=nzgyL+Em; 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 S1753747AbeCFOCW (ORCPT + 99 others); Tue, 6 Mar 2018 09:02:22 -0500 Received: from mail-sn1nam01on0085.outbound.protection.outlook.com ([104.47.32.85]:36136 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753711AbeCFOCU (ORCPT ); Tue, 6 Mar 2018 09:02:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0nbTwD/vpQb2BfuzJO8U5wQfmDbMkc29Ejj5gYYvXLM=; b=nzgyL+EmtCsyFKYXtWfWZSA9NeHc0+LSPngjEl3jWO9UaAfBCfIO+p97FfTrkRAMS+lZVGIbYw++xXembCjQw9wlbQey1YmYRbzzXjZQ4qGG3P7rnD8IfBpZ37Rc0kemqgwhpdDZRyqSbEk17Iej5h3slyD+gkcWpp5G0PTUxOQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jan.Glauber@cavium.com; Received: from hc (88.67.129.238) by BN3PR07MB2497.namprd07.prod.outlook.com (2a01:111:e400:7bbf::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.12; Tue, 6 Mar 2018 14:02:17 +0000 Date: Tue, 6 Mar 2018 15:02:01 +0100 From: Jan Glauber To: Arnd Bergmann Cc: Catalin Marinas , Will Deacon , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH 2/2] arm64: defconfig: Raise NR_CPUS to 256 Message-ID: <20180306140201.GB7428@hc> References: <20180302143737.10788-1-jglauber@cavium.com> <20180302143737.10788-2-jglauber@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [88.67.129.238] X-ClientProxiedBy: AM5PR0102CA0010.eurprd01.prod.exchangelabs.com (2603:10a6:206::23) To BN3PR07MB2497.namprd07.prod.outlook.com (2a01:111:e400:7bbf::6) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c3aa167-f80b-4ed7-5b34-08d5836adf97 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BN3PR07MB2497; X-Microsoft-Exchange-Diagnostics: 1;BN3PR07MB2497;3:8RYAIbA7F6UUvr1zU78WuOpGAaLzPfjU38yNaa8xX4PTlFWfsRPw2yQPnoAXNnG/cFuaXhzVlgvlfayKD8QWmE6VVhZaDOcL4tlQvsIhugRnb0Nzw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IUhlbnt7xJtbnN6ddCUfxOy2shxCA3z30FoEB4uBnTXEv5nRmofKKEX6omm1cuuZF1roHiMHRDwpybq/RELKr5nkhbeXaRj9A07fxQOq+OQJgoLK1jby650ok4x0SaRQL7PP2L/NfaLSu42nCIxQI5E2oyYaKAYn1+eBPcXywRQ1zVcHEbFLsp6UZXLsxzrHQHDR5OMhCSRrQcgJ96VKwo2SVF7FVe8fWiRmSQrL0BDNIwnMNgYFdZHuv2/73mQ4AZ2x/LhGc7gEBrBjdapi1dnWAmuj815PqI6OEPYn5fC1DhRJom0p0YE5my0zvUydub+NpxrIAWyDw8=;4:fQhwuRKdMNGyWmzwSCJqjpS0P2OxP0xT+M3x/L8GdB04pPJTbRgUETVh5puCYvt23pXr9VWF4laQDoQ5PDLe5BkX5tSmW5iYmboGzwxuj/xE9WTTk6Ri1QmzLv5ZWx6pHVkoVAmGoV0cgQKupsrdHYE/hG6cMgZkYtRo8Nwyn3enSo2ArOvPMhnq3N1r9TSZlEyl4ZOGPDPJJZeb8TZNQOBIrCXiU/3vF9pM8Yf6KpCVrXkv2lIyujgSVnwqJAkvbtb5FItoRfWBseP+BJ8Tmdh1rTPApygK5CrbSIdLAXZNLXmI7pGHxWrUP/GQD397 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231220)(944501244)(52105095)(93006095)(6041288)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BN3PR07MB2497;BCL:0;PCL:0;RULEID:;SRVR:BN3PR07MB2497; X-Forefront-PRVS: 06036BD506 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(979002)(346002)(376002)(39380400002)(39850400004)(366004)(396003)(189003)(199004)(3846002)(305945005)(23726003)(6116002)(81156014)(81166006)(8676002)(6916009)(97736004)(7736002)(6666003)(2950100002)(2906002)(5660300001)(33656002)(42882007)(47776003)(1076002)(8936002)(66066001)(26005)(186003)(4326008)(53546011)(105586002)(25786009)(16526019)(33716001)(386003)(72206003)(55016002)(6496006)(53936002)(33896004)(76176011)(9686003)(52116002)(59450400001)(58126008)(16586007)(229853002)(54906003)(50466002)(478600001)(6246003)(106356001)(316002)(68736007)(18370500001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR07MB2497;H:hc;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR07MB2497;23:AOJD0PDBhYRb2mt46nYpbN8dl05DEHmg4IGrRA4yY?= =?us-ascii?Q?OqE8UY1zdDFtMxLu7yDZWxLZQen2hETKbLbQ08CRw6JsFuTaBGU4hD5v3caJ?= =?us-ascii?Q?crcKvf5EUIIMJeVOsoLkJ4JGpnjfFmXdXoXBuxhYI1Q92N9cuq+SkA77YBpR?= =?us-ascii?Q?QR65FcwT29uXN8YRK17CsJo0LgEu/YhXOaevoUgtW89/L/1HH2/sW70za4il?= =?us-ascii?Q?YHIatRNXMVijJ1gszgAXHuENjrrvRXxu/awy3JZ65jtQ9PethUpnY4rFpb9P?= =?us-ascii?Q?61YpDhGOx2tMSOIHdzjKTtrQzUyYOIyQ5pTrY0q3DpWuZAN1jdnWhK2O1/zE?= =?us-ascii?Q?LdlLGQ07904f2QuoBG0s2Zk/OXmw8MkfmZ59nLZXlfAdNy5p2Oy2AjWE6JRh?= =?us-ascii?Q?16LWFknLzsETkGcgbnSlHOx76lTPwXZ+N+dmYafJ2zFu0aUQDXGsQlqp5JGp?= =?us-ascii?Q?vbp7xtluwK8ygfjvU/f3rq0pme3mvBwD1I9XncUA6y9tiJuk/d/uE+CfdSHS?= =?us-ascii?Q?LYS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xUj/U8RXDMSyre4lFGSsyQBD00ViEQm6ScnZFW/r6GkSUgXyKWWl0OXl7/a3nYowoaX1SNUKvGGHgu1EecQdK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2018 14:02:17.3490 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3c3aa167-f80b-4ed7-5b34-08d5836adf97 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2497 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 06, 2018 at 02:12:29PM +0100, Arnd Bergmann wrote: > 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. That's what I have on those machines. I counted SMT as normal CPUs as it doesn't make a difference for the config. I've not seen SMT on ThunderX. The ThunderX2 number of 224 is already with 4x SMT (and 2 chips) but there may be other versions planned that I'm not aware of. > > 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). OK, that explains the default. My unverified assumption is that increasing the CPU masks wont be a noticable performance hit. Also, I don't think that anyone who wants performance will use defconfig. All server distributions would bump up the NR_CPUS anyway and really small systems will probably need to tune the config anyway. For me defconfig should produce a usable system, not with every last driver configured but with all the basics like CPUs, networking, etc. fully present. > 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. OK, I'll take a look. --Jan