Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032037AbbKFF7s (ORCPT ); Fri, 6 Nov 2015 00:59:48 -0500 Received: from mga03.intel.com ([134.134.136.65]:17657 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbbKFF7r (ORCPT ); Fri, 6 Nov 2015 00:59:47 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,250,1444719600"; d="scan'208";a="844394256" Date: Fri, 6 Nov 2015 01:57:56 -0500 From: "Raj, Ashok" To: Zhenzhong Duan Cc: rusty@rustcorp.com.au, LKML , Feng Jin , Konrad Rzeszutek Wilk , Ashok Raj Subject: Re: Question with maxcpus= parameter. Message-ID: <20151106065755.GA62424@otc-brkl-03.jf.intel.com> References: <563C3980.8060405@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <563C3980.8060405@oracle.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1382 Lines: 40 Hi Zduan do you know which distribution it is? This isn't a kernel bug. if you look at dmesg you should see how many CPUs were booted. But the sysfs files are created and the usermode script is bringing every cpu online. Tony mentioned this to me couple weeks ago when i was fixing another bug in maxcpus. I think you can safely remove the script and it should be fine. Cheers, Ashok On Fri, Nov 06, 2015 at 01:24:16PM +0800, Zhenzhong Duan wrote: > 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/