Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764805AbYCGTO1 (ORCPT ); Fri, 7 Mar 2008 14:14:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758395AbYCGTOK (ORCPT ); Fri, 7 Mar 2008 14:14:10 -0500 Received: from jbanks.dsl.xmission.com ([204.228.152.159]:37655 "EHLO mail.bakbone.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755595AbYCGTOJ (ORCPT ); Fri, 7 Mar 2008 14:14:09 -0500 From: Justin Banks Date: Fri, 7 Mar 2008 12:13:43 -0700 To: Bill Davidsen Cc: Justin Banks , "Miller, Mike (OS Dev)" , linux-kernel@vger.kernel.org Subject: Re: FW: Linux question Message-ID: <20080307191343.GB4703@bleen.domain.actdsltmp> References: <20080306203841.GA4282@bleen.domain.actdsltmp> <47D18CE1.7050206@tmr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47D18CE1.7050206@tmr.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 29 Bill Davidsen wrote > Justin Banks wrote: > > Miller, Mike (OS Dev) wrote > >> Is there a way in to limit the kernel to seeing only the cores on a > >> single processor and ignore all other processor cores (eg. leave > >> them in HALT)? > > > > Can't you just echo 0 into /sys/devices/system/cpu/cpuN/online where the > > /sys/devices/system/cpu/cpuN/topology/physical_package_id isn't the one > > you want to keep online? > > > Here's an interesting question, why isn't there an "online" file for > each CPU? I've noticed that as well, and I'm not sure. IIRC, on some systems I've seen there's an online file for every CPU, but on my laptop (2.6.22 Intel Mac) there isn't one for cpu0, just as in your example. -justinb -- Justin Banks BakBone Software justinb@bakbone.com -- 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/