lkml.org 
[lkml]   [2008]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: FW: Linux question
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


\
 
 \ /
  Last update: 2008-03-07 20:17    [W:0.137 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site