physical processors or dual core or just HT

Alan McKinnon alan at linuxholdings.co.za
Mon Sep 11 11:35:43 UTC 2006


On Monday 11 September 2006 13:16, str tux wrote:
> Guys,
>
> How I will know whether I'm using real dual processors or it
> is a dual core or just a machine having Hyper Threading.
>
> Is there any commands?

cat /proc/cpuinfo

A dual core has 'core id' and 'cpu cores' or similar entries, HT 
has 'ht' in the flags line. For example, my 2GHz Centrino 
notebook:

alan at gentoo ~ $ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : Intel(R) Pentium(R) M processor 2.00GHz
stepping        : 8
cpu MHz         : 800.000
cache size      : 2048 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 clflush dts acpi mmx fxsr sse sse2 ss tm 
pbe nx est tm2
bogomips        : 1598.90

And one of the work servers (dual P4 HT):

[alanm at dot ~]$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 3
model name      : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping        : 3
cpu MHz         : 2801.152
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr 
pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht 
tm pbe pni monitor ds_cpl cid
bogomips        : 5603.94

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 3
model name      : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping        : 3
cpu MHz         : 2801.152
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr 
pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht 
tm pbe pni monitor ds_cpl cid
bogomips        : 5599.48

alan




More information about the ubuntu-users mailing list