Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753038AbbKFFX7 (ORCPT ); Fri, 6 Nov 2015 00:23:59 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:26509 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869AbbKFFX5 (ORCPT ); Fri, 6 Nov 2015 00:23:57 -0500 From: Zhenzhong Duan Subject: Question with maxcpus= parameter. Reply-To: zhenzhong.duan@oracle.com To: rusty@rustcorp.com.au, ashok.raj@intel.com, LKML Cc: Feng Jin , Konrad Rzeszutek Wilk Organization: Oracle Message-ID: <563C3980.8060405@oracle.com> Date: Fri, 6 Nov 2015 13:24:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 893 Lines: 25 Hi Maintainers, Recently we faced an cpu online issue with maxcpus= parameter. We want to have 4 cpus onlined at bootup, test 3.8.13-stable on an 72 cpus env with maxcpus=4, I found more cpus than 4 are onlined. It's the udev scripts make them onlined. But below script exist for a long time. ACTION=="add", KERNEL=="cpu[0-9]*", RUN+="/bin/bash -c 'echo 1 > /sys/devices/system/cpu/%k/online'" maxcpu= parameter didn't take effect, so is this a kernel bug? Or that script should be removed? Btw: 2.6.39 works fine, I checked udev log, seems CPU ADD event is only sent for 4cpus. Why the difference between 2.6.39 and 3.8.13? thanks zduan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/