mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* How to detect multi-core and/or HT-enabled CPUs in 2.4.x and 2.6.x kernels
@ 2006-12-27 14:16 Martin Knoblauch
  2006-12-27 14:24 ` Arjan van de Ven
  2006-12-27 14:37 ` Jan Engelhardt
  0 siblings, 2 replies; 14+ messages in thread
From: Martin Knoblauch @ 2006-12-27 14:16 UTC (permalink / raw)
  To: linux-kernel

Hi, (please CC on replies, thanks)

 for the ganglia project (http://ganglia.sourceforge.net/) we are
trying to find a heuristics to determine the number of physical CPU
"cores" as opposed to virtual processors added by enabling HT. The
method should work on 2.4 and 2.6 kernels.

 So far it seems that looking at the "physical id", "core id" and "cpu
cores" of /proc/cpuinfo is the way to go.

 In 2.6 I would try to find the  distinct "physical id"s and  and sum
up the corresponding "cpu cores". The question is whether this would
work for 2.4 based systems.

 Does anybody recall when the "physical id", "core id" and "cpu cores"
were added to /proc/cpuinfo ?

Cheers
Martin

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-12-27 20:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-27 14:16 How to detect multi-core and/or HT-enabled CPUs in 2.4.x and 2.6.x kernels Martin Knoblauch
2006-12-27 14:24 ` Arjan van de Ven
2006-12-27 14:40   ` Martin Knoblauch
2006-12-27 15:13     ` Arjan van de Ven
2006-12-27 15:22       ` Gleb Natapov
2006-12-27 15:38         ` Arjan van de Ven
2006-12-27 15:41         ` Martin Knoblauch
2006-12-27 15:53           ` Arjan van de Ven
2006-12-27 15:51         ` Martin Knoblauch
2006-12-27 16:09           ` Arjan van de Ven
2006-12-27 17:14             ` Bernd Eckenfels
2006-12-27 17:52             ` Martin Knoblauch
2006-12-27 19:58               ` Siddha, Suresh B
2006-12-27 14:37 ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®