Programtically tell diff between HT and real
Hello.
Is there a way to tell the difference between normal processors and HT enabled processors? That is, does the linux kernel know the difference and is there a way to to know the difference.
Thank you for your time.
Phy
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
Quoted 4 lines · Phy Prabab
Is there a way to tell the difference between normal processors and HT enabled processors? That is, does the linux kernel know the difference and is there a way to to know the difference.
Yah. Look at /proc/cpuinfo.
Virtual processors have different 'processor' values but the same 'physical id', while physical processors obviously have different values for both.
Robert Love
Quoted 5 lines · Robert Love
Yah. Look at
/proc/cpuinfo.Virtual processors have different 'processor' values but the same 'physical id', while physical processors obviously have different values for both.
Oh, and if you just want to see if a processor supports HT - the 'ht' flag is set in 'flags' in /proc/cpuinfo.
Robert Love
Quoted 5 lines · Robert Love
Quoted 2 lines · Robert Love
Yah. Look at
/proc/cpuinfo.
Quoted 7 lines
Quoted 3 lines
Virtual processors have different 'processor' values but the same 'physical id', while physical processors obviously have different values for both.
Oh, and if you just want to see if a processor supports HT - the 'ht' flag is set in 'flags' in
/proc/cpuinfo.
Not always true. I have a non-HT Pentium4, but I still have ht in my flags. The same goes for a couple of dual Xeon's I work on at school. Aparently Intel disabled the HT on a lot of Pentium 4 and Xeon chips, but left the HT flag behind. My system even has the additional IO-APICs too. Hence why everytime I boot a UP kernel, I get an 'unexpected IO-APIC' message.
Cheers,
David
So, if I understand correctly, there is no way to know definitively if a cpu is HT or not?
Thanks!
Phy
--- David van Hoose <[email protected]>
Quoted 32 lines · wrote:
Quoted 1 line · Robert Love
On Wed, 2004-06-16 at 13:56 -0400, Robert Love
Quoted 5 lines · wrote:
Quoted 5 lines
Yah. Look at
/proc/cpuinfo.Virtual processors have different 'processor'
values but the same
Quoted 1 line
Quoted 1 line
'physical id', while physical processors obviously
have different values
Quoted 4 lines
Quoted 1 line
for both.
Oh, and if you just want to see if a processor
supports HT - the 'ht'
Quoted 1 line
flag is set in 'flags' in
/proc/cpuinfo.Not always true. I have a non-HT Pentium4, but I still have ht in my
flags. The same goes for a couple of dual Xeon's I work on at school.
Aparently Intel disabled the HT on a lot of Pentium 4 and Xeon chips,
but left the HT flag behind. My system even has the additional IO-APICs
too. Hence why everytime I boot a UP kernel, I get an 'unexpected
IO-APIC' message.
Quoted 3 lines
Cheers,
David
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 2 lines · Phy Prabab
So, if I understand correctly, there is no way to know definitively if a cpu is HT or not?
I'd do both of the things I said: test for HT, and then look for another processor with the same physical id but a different processor value.
Robert Love
Quoted 4 lines · Robert Love
Quoted 2 lines · Robert Love
Yah. Look at
/proc/cpuinfo.
Quoted 9 lines
Quoted 3 lines
Virtual processors have different 'processor' values but the same 'physical id', while physical processors obviously have different values for both.
Oh, and if you just want to see if a processor supports HT - the 'ht' flag is set in 'flags' in
/proc/cpuinfo.Robert Love
processor : 0vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping : 7
cpu MHz : 2793.087
cache size : 512 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
^_______
bogomips : 5570.56
I would love to know how you turn in on! This is one of those "latest-and-greatest" Intel D865PERL mother-boards and I've even flashed the BIOS with the "latest-and-greatest".
Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
Note 96.31% of all statistics are fiction.
Quoted 8 lines · Richard B. Johnson
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid^_______bogomips : 5570.56
I would love to know how you turn in on! This is one of those "latest-and-greatest" Intel D865PERL mother-boards and I've even flashed the BIOS with the "latest-and-greatest".
The usual way is to enable HT in BIOS, and use a SMP enabled kernel.
Signature · 2 lines
Cheers, André Tomt
Quoted 6 lines · Andre Tomt
Quoted 5 lines · Richard B. Johnson
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid^_______bogomips : 5570.56
Quoted 6 lines
Quoted 3 lines
I would love to know how you turn in on! This is one of those "latest-and-greatest" Intel D865PERL mother-boards and I've even flashed the BIOS with the "latest-and-greatest".
The usual way is to enable HT in BIOS, and use a SMP enabled kernel.
It's a SMP kernel. There is no 'HT enable' in the BIOS setup. In fact, there is very little that can be set and, it's even very hard to convince it that I want to boot from a SCSI and not from the first disk it finds. One has to remove the battery to discharge the CMOS so it won't ignore the 'Del' key on startup. It's a very bad BIOS or a very bad board, I don't know which.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
Note 96.31% of all statistics are fiction.
Quoted 4 lines
Is there a way to tell the difference between normal processors and HT enabled processors? That is, does the linux kernel know the difference and is there a way to to know the difference.
Execute the CPUID instruction with EAX=00000001h. I think HT-enabled cpus should have bit 28 of the value returned in EDX set.
Signature · 4 lines
7:57PM up 134 days, 5:11, 1 user, load averages: 0.16, 0.18, 0.16 Every non-empty totally disconnected perfect compact metric space is homeomorphic to the Cantor set.