Re: CPUID - how to determine number of physical cores?
Posted: Mon Jul 25, 2011 5:47 am
Hi all,
I would like to do some comments regrading some things previously said by Brendan.
Please correct me if I interpreted something wrong.
Kind regards.
I would like to do some comments regrading some things previously said by Brendan.
I am afraid; it’s not that simple There are some multi-core processors with no HT support (Intel Pentium D, Intel Pentium Dual-core, Intel Core 2 Duo, Intel Core 2 Quad).Brendan wrote: If the HTT flag is clear then it's an old single-core CPU without hyper-threading. In that case "logical_CPU_bits = 0" and "core_bits = 0" and you're done.
I guess you meant that LAPIC ID shouldn’t be confused with “ACPI ID” and not APIC ID (as LAPIC ID and APIC ID is the same thing).Brendan wrote: decided that Logical APIC ID (which shouldn't be confused with the "APIC ID") and the "Destination Format Register" would be hardwired; and that "Logical Destination
On the 2 last levels, you’re mentioning NUMA domains. On an SMP system, there is not possibility of having NUMA domains, so I guess what have you described applies only on NUMA system and not on SMP ones.Brendan wrote: For complete CPU topology, there's 4 levels:
Which logical CPU within a core
Which core within a chip
Which chip within a NUMA domain
Which NUMA domain
Please correct me if I interpreted something wrong.
Kind regards.