Received: by 10.213.65.68 with SMTP id h4csp1099273imn; Wed, 21 Mar 2018 02:35:32 -0700 (PDT) X-Google-Smtp-Source: AG47ELuQ77rdzLfy5MGrGG7VWB3Rf+D77NufTKpgk0Jt/B4vs4bROl/px3Rl4thVyDPaxDD6hvG+ X-Received: by 10.99.96.193 with SMTP id u184mr14757153pgb.103.1521624932171; Wed, 21 Mar 2018 02:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521624932; cv=none; d=google.com; s=arc-20160816; b=1HMiFvApuwO10zE3eADx1R5P3gSgZu93ekOfLeFIi9FURd958Q+9guJ9MJa7Rbq27m iYKvptx8MFPcrt7vBolkvXb2s5goRiedFMMg76pcnOytjMOH0/J1bX4r95G8xeb8x0id Pqeb6k1BNxdesgZnNwUzpE/x5GlGstKkWdt7OMVuJn5ihGjaAvrBp9whpeEi7xGdWXJH Rdq76D8RKdJvi00mZ0wd15eDjbMQ2NgaZ0IwkSo7fKggpDLm1pJEeBe5ozyiiJzczsf5 vzgRlJl0VhYEMrOx1O2peaL3o2roHJlSA8VMh6FbQENmBHC2isT1gaHN0tQzIZD247iI jJ5A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=nONhFOUuFRHtl+biunNt0N+R0S9X+9Fr3t6jdleOjF0=; b=qTVt/CaNN/BBMVUk6zu0y94A+euIdijRH8YkJIzLK5IJ56kmqTPghiJerloQ27ZG7E Lj67CojRxtxVclelL1iJr0WWc5Z91F1HMV2yogHuQVAMxs+TCLBW6gN6NIxpeaqQwgVM X3rZG0OZRfVHkKjjh0KTCOyHktXfUkV+VTXnx2VfBfzXJ+iD68vdk0Cb3twhgmqHfIso qeDFmf5hsj69nQVPoblqHhaOaOmbp49z2Hq/+0Dm8SEyBp7DBTPVn7Fbw7n6efVjZjXn sAo1Av6COob/L4pXwYxLxRD8OdSzyt6px575IwKudRe3Du5R2yOF6kkaUOBw5vvp36SC anxg== ARC-Authentication-Results: i=1; mx.google.com; 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 k8si2761452pfi.3.2018.03.21.02.35.16; Wed, 21 Mar 2018 02:35:32 -0700 (PDT) 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; 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 S1751671AbeCUJeX (ORCPT + 99 others); Wed, 21 Mar 2018 05:34:23 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:9648 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751396AbeCUJeV (ORCPT ); Wed, 21 Mar 2018 05:34:21 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="38036085" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 21 Mar 2018 17:34:18 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id A367A48AE76B; Wed, 21 Mar 2018 17:34:19 +0800 (CST) Received: from localhost.localdomain (10.167.226.106) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 21 Mar 2018 17:34:18 +0800 Subject: Re: [PATCH 1/5] x86/smpboot: Add the missing description of possible_cpus To: Peter Zijlstra CC: , , , , , , , , , References: <20180320110432.28127-1-douly.fnst@cn.fujitsu.com> <20180320110432.28127-2-douly.fnst@cn.fujitsu.com> <20180320123712.GR4043@hirez.programming.kicks-ass.net> <20180321090826.GW4043@hirez.programming.kicks-ass.net> From: Dou Liyang Message-ID: <076196e1-c181-ba44-f912-61bd279b345b@cn.fujitsu.com> Date: Wed, 21 Mar 2018 17:34:12 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180321090826.GW4043@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="gbk"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: A367A48AE76B.AD230 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, At 03/21/2018 05:08 PM, Peter Zijlstra wrote: > On Wed, Mar 21, 2018 at 01:33:24PM +0800, Dou Liyang wrote: >> How about: >> >> possible_cpus= [s390,x86_64] Set the number of possible CPUs which >> are determined by the ACPI tables MADT or mptables by >> default. possible_cpus=n : n >= 1 enforces the possible >> number to be 'n'. >> While nr_cpus is also be set: nr_cpus=m, choice the >> minimum one for the number of possible CPUs. > > So what is the exact difference between possible_cpus and nr_cpus ? I the possible_cpus= can reset the number of possible CPUs, even bigger than 'num_processors + disabled_cpus', But nr_cpus= can't. > konw maxcpus= limits the number of CPUs we bring up, and possible_cpus > limits the possible_map, but I'm not entirely sure what nr_cpus does > here. > nr_cpus can limited the maximum CPUs that the kernel could support. Here is a double check in case of using them at the same time, even if I think just using possible_cpus= is enough. :-) Thanks, dou. > >