Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1132016pxp; Sun, 20 Mar 2022 07:05:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEi/+WwhQ77if3DA0is9sVpGrq80vpxYdVfWAtc60TFjhzZWzSzbZkCZ7lE9VUu4q7ou1b X-Received: by 2002:a50:c3cc:0:b0:419:1edf:c3b9 with SMTP id i12-20020a50c3cc000000b004191edfc3b9mr7620303edf.355.1647785116360; Sun, 20 Mar 2022 07:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647785116; cv=none; d=google.com; s=arc-20160816; b=0zeK1qs/3hVCRZftzVhr8O6lwWq5xFPFc1Y41sFHoglS9ycZF+ilrtbQpqD68sqxpo +/DG0EvEF7Fx9MMDAULJvxAnyCz+Ccq+JSI6RdZ+79571bT4O9TQ/GgPertmLHAkM+ZX fH62+NBJ/3kpkBMHGFgLFEpLzdgYtUOu44aQPXoJw7SNmUhncD1LowVyNW8qpIWC0fuy buWo11ipN9vCPEvn5QtQmUvc6rSlna9LjOBrJPAwZX/1Yy2RLEyNUgFLOCsUkmA4aF5H 88D7vfpSVnEdU50q8OX7bfSVDOy9QXQv07rsmPrHATS+Vehq7saPbU4/53BHttX/KI11 +bIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id; bh=acOKlHPcoYFtB7vn6OjB1Xy2zBOJWut5NzzNU/0r/3Y=; b=NArNjHXV1Ba5846ZsBhudLPdMrI6neO7uHYzSLum1l624J/q07Z5rKMGglQer5eULj 2zJ823Oyn3Cmh4eC1GhZeZxGCHj8vN5d4BnRFaBdVOAWkpbiMO4ZDT1f5serN8HLWkad hecczARpx5NhDRZP4Pj90Bg9EeHZDCkJb1G2CyYmLcBD7Nn9U0i4Gd/vrXD0NC9GWZDb y/WCJOvSmg564smkOAviDPkXzNE2OJ0+sa6bZ8gimouvNqmRkjHb88SUGdraARnnaRLO F6KJgBYcdni86r95z/dfQLQfnHsq6Qg8zKuvJHGDfmMwTm5kVUhusA5cRgqOn2gAxGb1 BewA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v15-20020a50954f000000b00418d80a5fb9si7215910eda.358.2022.03.20.07.04.50; Sun, 20 Mar 2022 07:05:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236015AbiCROtg (ORCPT + 99 others); Fri, 18 Mar 2022 10:49:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237826AbiCROsX (ORCPT ); Fri, 18 Mar 2022 10:48:23 -0400 Received: from imap2.colo.codethink.co.uk (imap2.colo.codethink.co.uk [78.40.148.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0378810505F for ; Fri, 18 Mar 2022 07:47:02 -0700 (PDT) Received: from cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net ([86.15.83.122] helo=[192.168.0.21]) by imap2.colo.codethink.co.uk with esmtpsa (Exim 4.92 #3 (Debian)) id 1nVDsT-0000OB-7s; Fri, 18 Mar 2022 14:46:53 +0000 Message-ID: Date: Fri, 18 Mar 2022 14:46:52 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH] RISC-V: Increase range and default value of NR_CPUS Content-Language: en-GB To: Anup Patel , Palmer Dabbelt , Paul Walmsley Cc: Atish Patra , Alistair Francis , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220317035542.272547-1-apatel@ventanamicro.com> From: Ben Dooks Organization: Codethink Limited. In-Reply-To: <20220317035542.272547-1-apatel@ventanamicro.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/03/2022 03:55, Anup Patel wrote: > Currently, the range and default value of NR_CPUS is too restrictive > for high-end RISC-V systems with large number of HARTs. The latest > QEMU virt machine supports upto 512 CPUs so the current NR_CPUS is > restrictive for QEMU as well. Other major architectures (such as > ARM64, x86_64, MIPS, etc) have a much higher range and default > value of NR_CPUS. What's the memory overhead for increasing this? -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius https://www.codethink.co.uk/privacy.html