* Hyperthreading and physical/logical CPU identification
@ 2002-04-29 18:31 Andrew Theurer
2002-04-29 22:41 ` Martin J. Bligh
0 siblings, 1 reply; 8+ messages in thread
From: Andrew Theurer @ 2002-04-29 18:31 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Hyperthreading and physical/logical CPU identification
@ 2002-04-29 19:40 Grover, Andrew
2002-04-29 19:59 ` Andrew Theurer
2002-04-29 23:14 ` Jauder Ho
0 siblings, 2 replies; 8+ messages in thread
From: Grover, Andrew @ 2002-04-29 19:40 UTC (permalink / raw)
To: 'Andrew Theurer', linux-kernel
> From: Andrew Theurer [mailto:habanero@us.ibm.com]
> 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?)
Well the two alternatives are, either A) turning on hyperthreading enabled
the two virtual processors or B) turning on hyperthreading somehow enabled
the other two processors, right?
I would think B would be highly unlikely.
Anyone else who actually has HT hardware care to comment? ;-)
Regards -- Andy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hyperthreading and physical/logical CPU identification
2002-04-29 19:40 Grover, Andrew
@ 2002-04-29 19:59 ` Andrew Theurer
2002-04-29 22:20 ` J.A. Magallon
2002-04-29 23:14 ` Jauder Ho
1 sibling, 1 reply; 8+ messages in thread
From: Andrew Theurer @ 2002-04-29 19:59 UTC (permalink / raw)
To: Grover, Andrew; +Cc: linux-kernel
> > 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?)
>
> Well the two alternatives are, either A) turning on hyperthreading enabled
> the two virtual processors or B) turning on hyperthreading somehow enabled
> the other two processors, right?
>
> I would think B would be highly unlikely.
>
> Anyone else who actually has HT hardware care to comment? ;-)
>
> Regards -- Andy
Yes, those are the two alternatives. I agree B is unlikely, but honestly I
thought a 31% improvement from hyperthreading seemed unlikely as well.
Believe me, I am hoping situaiton A is the correct one!
-Andrew
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Hyperthreading and physical/logical CPU identification
@ 2002-04-29 20:41 Holzrichter, Bruce
0 siblings, 0 replies; 8+ messages in thread
From: Holzrichter, Bruce @ 2002-04-29 20:41 UTC (permalink / raw)
To: 'Andrew Theurer', Grover, Andrew; +Cc: linux-kernel
>
> Yes, those are the two alternatives. I agree B is unlikely,
> but honestly I
> thought a 31% improvement from hyperthreading seemed unlikely
> as well.
> Believe me, I am hoping situaiton A is the correct one!
>
> -Andrew
Though I don't have a test platform, from published results, and depending
on what application, 31% for Hyperthreading enabled is within the realm of
possiblity.
B.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hyperthreading and physical/logical CPU identification
2002-04-29 19:59 ` Andrew Theurer
@ 2002-04-29 22:20 ` J.A. Magallon
0 siblings, 0 replies; 8+ messages in thread
From: J.A. Magallon @ 2002-04-29 22:20 UTC (permalink / raw)
To: Andrew Theurer; +Cc: Grover, Andrew, linux-kernel
On 2002.04.29 Andrew Theurer wrote:
>
>> > 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?)
>>
>> Well the two alternatives are, either A) turning on hyperthreading enabled
>> the two virtual processors or B) turning on hyperthreading somehow enabled
>> the other two processors, right?
>>
I think you should post a more specific "this vs. that" comparison.
Guessing...
If you refer to:
- No hypethreading, box sees 2 processors, performance is 100%
- Hyperthreading active, box sees 4 processors, perf is _only_ 130%,
instead of 200%.
that is perfectly true. Each hyperthreaded pair of processors does
not perform like 2 independent ones, the share cache and other internal
things. So the usual performance improvement on a FOster Xeon is not
200%, but in the order of that 130% you get. Hyperthreading is like
'poor man' SMP.
But perhaps you alredy know all this and your question was following
other paths...
I will put my hands on a dual Xeon SuperMicro system, and will make
more tests, in a week or so...
Hope this helps.
--
J.A. Magallon # Let the source be with you...
mailto:jamagallon@able.es
Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre7-jam7 #1 SMP jue abr 25 00:19:56 CEST 2002 i686
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hyperthreading and physical/logical CPU identification
2002-04-29 18:31 Hyperthreading and physical/logical CPU identification Andrew Theurer
@ 2002-04-29 22:41 ` Martin J. Bligh
2002-04-30 17:00 ` Jack F. Vogel
0 siblings, 1 reply; 8+ messages in thread
From: Martin J. Bligh @ 2002-04-29 22:41 UTC (permalink / raw)
To: Andrew Theurer, linux-kernel
> 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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Hyperthreading and physical/logical CPU identification
2002-04-29 19:40 Grover, Andrew
2002-04-29 19:59 ` Andrew Theurer
@ 2002-04-29 23:14 ` Jauder Ho
1 sibling, 0 replies; 8+ messages in thread
From: Jauder Ho @ 2002-04-29 23:14 UTC (permalink / raw)
To: Grover, Andrew; +Cc: 'Andrew Theurer', linux-kernel
Well, you could always take CPUs out... :)
--Jauder
On Mon, 29 Apr 2002, Grover, Andrew wrote:
> > From: Andrew Theurer [mailto:habanero@us.ibm.com]
> > 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?)
>
> Well the two alternatives are, either A) turning on hyperthreading enabled
> the two virtual processors or B) turning on hyperthreading somehow enabled
> the other two processors, right?
>
> I would think B would be highly unlikely.
>
> Anyone else who actually has HT hardware care to comment? ;-)
>
> Regards -- Andy
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hyperthreading and physical/logical CPU identification
2002-04-29 22:41 ` Martin J. Bligh
@ 2002-04-30 17:00 ` Jack F. Vogel
0 siblings, 0 replies; 8+ messages in thread
From: Jack F. Vogel @ 2002-04-30 17:00 UTC (permalink / raw)
To: Martin J. Bligh, Andrew Theurer, linux-kernel; +Cc: cleverdj
On Monday 29 April 2002 03:41 pm, Martin J. Bligh wrote:
> > 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?
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.
--
Jack F. Vogel
IBM Linux Solutions
jfv@us.ibm.com (work)
jfv@Bluesong.NET (home)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-04-30 16:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-29 18:31 Hyperthreading and physical/logical CPU identification Andrew Theurer
2002-04-29 22:41 ` Martin J. Bligh
2002-04-30 17:00 ` Jack F. Vogel
-- strict thread matches above, loose matches on Subject: below --
2002-04-29 19:40 Grover, Andrew
2002-04-29 19:59 ` Andrew Theurer
2002-04-29 22:20 ` J.A. Magallon
2002-04-29 23:14 ` Jauder Ho
2002-04-29 20:41 Holzrichter, Bruce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox