LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Interpreting lshw output and CPU count vs hyperthreading (https://www.linuxquestions.org/questions/linux-newbie-8/interpreting-lshw-output-and-cpu-count-vs-hyperthreading-729504/)

kkoene 05-30-2009 08:55 AM

Interpreting lshw output and CPU count vs hyperthreading
 
I need to get a CPU count vs core count for licensing auditing. I am running lshw on Red Hat Enterprise Linux ES release 4 (Nahant Update 8)

Here is the output from running lshw -C cpu:

lshw -C cpu
*-cpu:0
description: CPU
product: Intel(R) Xeon(TM) MP CPU 2.80GHz
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: 15.2.5
slot: CPU socket #0
size: 2133MHz
capacity: 2133MHz
width: 32 bits
capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
configuration: id=4
*-logicalcpu:0
description: Logical CPU
physical id: 4.1
width: 32 bits
capabilities: logical
*-logicalcpu:1
description: Logical CPU
physical id: 4.2
width: 32 bits
capabilities: logical

My question is "are the logical cpu's a representation of hyperthreading or is this cpu a dual core processor?

Thanks for any help.

ouain 05-31-2009 05:59 PM

alternate way to get the information
 
I don't know the exact answer to your question, but you will find it with cat /proc/cpuinfo. After this, you shouldn't have any doubt left.

An hyperthreaded cpu will show two entries with the same core id and the same physical id. A multicore cpu will show several entries with the same physical id, but different core ids (also it indicates in cpu cores that it has several cores). And of course, different cpus will have different physical ids.


All times are GMT -5. The time now is 01:07 PM.