Skip to contentSkip to conversation

Hyperthreading and physical/logical CPU identification

DISCUSSION Andrew Theurer 3 participants 3 messages Apr 29, 2002 – Apr 30, 2002

lore
Share & tools
lore
#0 lore raw

Hello all,

I would like to know if there is any way to confirm that I have hyperthreading enabled, and my P4 CPUs are hyperthreaded. Actually, from something like /proc/cpuinfo, I'd like to figure out if I am seeing 2/4 physical/logical processors, as a result from hyperthreading, or 4/4 physical/logical processors with no hyperthreading. I know, "If it's double the number of physical processors, well you have hyperthreading enabled." The problem is, I have 4 physical processors, but kernel.org kernels so far do not recognize all of them. 2.4.18 will find 3, while 2.5.11 will find only 2 (BIOS hyperthreading support off, no acpismp=force). However, on 2.5.11, if I enable hyperthreading (thru BIOS and acpismp=force, I see 4 processors.

I would very much like to believe that in this configuration, I am only running on 2 physical, 4 logical processors, but I am getting a 31% improvement (netbench) when hyperthreading is enabled. Thats why I want to confirm I am really only using 2 physical, 4 logical processors. Is there any way I can do this? (dmesg? /proc/cpuinfo?)

Thanks

Andrew Theurer

#1 lore raw
Quoted 5 lines

The problem is, I have 4 physical processors, but kernel.org kernels so far do not recognize all of them. 2.4.18 will find 3, while 2.5.11 will find only 2 (BIOS hyperthreading support off, no acpismp=force). However, on 2.5.11, if I enable hyperthreading (thru BIOS and acpismp=force, I see 4 processors.

When you say the kernel doesn't recognise all of the physical processors, do you mean it doesn't see them in the MPS/ACPI table, or that they fail to boot? Can you post your boot log?

I see you have a "us.ibm.com" email address ... is this machine an x440, one of it's smaller brethren, or something totally different?

M.

#2 lore raw
In reply to Andrew Theurer
Quoted 6 lines · Martin J. Bligh
Quoted 5 lines

The problem is, I have 4 physical processors, but kernel.org kernels so far do not recognize all of them. 2.4.18 will find 3, while 2.5.11 will find only 2 (BIOS hyperthreading support off, no acpismp=force). However, on 2.5.11, if I enable hyperthreading (thru BIOS and acpismp=force, I see 4 processors.

Quoted 6 lines

When you say the kernel doesn't recognise all of the physical processors, do you mean it doesn't see them in the MPS/ACPI table, or that they fail to boot? Can you post your boot log?

I see you have a "us.ibm.com" email address ... is this machine an x440, one of it's smaller brethren, or something totally different?

If it is the x440 then the problem is the xapic and you need James Cleverdon's summit patch for all processors to be seen and properly initialized. Email James or me if you need a pointer.

Signature · 4 lines
Jack F. Vogel
IBM  Linux Solutions
[email protected]  (work)
[email protected] (home)