Re: 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@xxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: FW: Linux question
    ... single processor and ignore all other processor cores (eg. leave ... them in HALT)? ... why isn't there an "online" file for each CPU? ...
    (Linux-Kernel)
  • Re: FW: Linux question
    ... single processor and ignore all other processor cores (eg. leave ... them in HALT)? ... you want to keep online? ... Justin Banks ...
    (Linux-Kernel)
  • Faulty CPU?
    ... panic cpu: 8 ... cpu 1 initialization complete - online ... [AFT2] ...
    (comp.unix.solaris)
  • Re: [patch] x86: Rendezvous all the cpus for MTRR/PAT init
    ... cpu - A modifying/adding a MTRR register ... change the state and before B comes completely online, ... MTRR update to all cpu's except B. ... This can lead to scenarios where during a dynamic cpu online, that logical cpu ...
    (Linux-Kernel)
  • Re: [PATCH] sched: fix cpupri hotplug support
    ... This patch is critical to fix a snafu in the root-domain/cpupri code. ... was traced to problems with the cpupri infrastructure in the scheduler: ... The end result would be an OOPS as the offline cpu ... The issue is that a cpu that is not online is being set to something other than INVALID in cpupri, so it comes up as a valid target during the various migration decisions. ...
    (Linux-Kernel)