public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 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 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

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