LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Justin Banks <justinb@bakbone.com>
To: Bill Davidsen <davidsen@tmr.com>
Cc: Justin Banks <justinb@bakbone.com>,
	"Miller, Mike (OS Dev)" <Mike.Miller@hp.com>,
	linux-kernel@vger.kernel.org
Subject: Re: FW: Linux question
Date: Fri, 7 Mar 2008 12:13:43 -0700	[thread overview]
Message-ID: <20080307191343.GB4703@bleen.domain.actdsltmp> (raw)
In-Reply-To: <47D18CE1.7050206@tmr.com>

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

  reply	other threads:[~2008-03-07 19:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 19:33 Miller, Mike (OS Dev)
2008-03-06 19:51 ` Cyrill Gorcunov
2008-03-06 20:38 ` Justin Banks
2008-03-07 18:43   ` Bill Davidsen
2008-03-07 19:13     ` Justin Banks [this message]
2008-03-07 19:14     ` Andi Kleen
2008-03-08 17:07       ` Bill Davidsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080307191343.GB4703@bleen.domain.actdsltmp \
    --to=justinb@bakbone.com \
    --cc=Mike.Miller@hp.com \
    --cc=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: FW: Linux question' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).