Hmmm ...

/proc/cpuinfo on my desktop (2.4.3 kernel ... don't start with me!) :
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 2.20GHz
stepping        : 4
cpu MHz         : 2193.403
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_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 tm
bogomips        : 4377.80

From another box (running 2.4.9):
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 0
model name      : Intel(R) Pentium(R) 4 CPU 1800MHz
stepping        : 10
cpu MHz         : 1779.732
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_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
bogomips        : 3552.05


From one of our newer dual Xeons:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 7
cpu MHz         : 2799.258
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_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
bogomips        : 5583.66

Perhaps you can check for the ht flag as well as model/stepping? After all, you only need to determine cpu_num once on Linux. :)

[unless there's CPU hot-plug kernel code I'm not aware of... ]

Good luck!

Rick Mohr wrote:
I believe you are right.  I'm afraid that I just trusted the advice of
someone else when he said that the "ht" flag indicates
hyperthreading.  And as I had no plain P4's to check this against, it
seemed to be the right way.

After doing a google search, I got the impression that it is not easy to
tell whether there is hypertheading or not.  Is that the case?  That would
explain why this hasn't been added to ganglia.

Maybe I need to go back and simply make this some kind of configuration
option to be specified manually.

Sorry for the mix-up.

--Rick


On Wed, 23 Jul 2003, Brooks Davis wrote:


I'm pretty sure this won't work.  All P4's have the HTT flag, but many
of them have a void implementation which just reports that they have a
single logical CPU (IIRC, 533MHz FSB P4 (not Xeon) CPUs under 3.1GHz).
Additionaly, if Linux obeys the BIOS setting for HTT this won't even be
accurate for CPUs with more then one logical CPU.  I'm not sure if
that's the case or not.  I know FreeBSD currently ignores the BIOS
setting.

-- Brooks




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers



Reply via email to