Determining CPU topology on multi-core CPUs

Joseph Koshy joseph.koshy at gmail.com
Fri Oct 7 20:43:40 PDT 2005


On multi-core P4/HTT CPU packages I need to distinguish between
physically distinct CPUs in separate cores from HT CPU
(a.k.a., 'threads') pairs.

What is the best way a driver can obtain the CPU topology
of a system?

The bits in 'logical_cpus_mask'  do not distinguish between
multi-core and HT cpus.

--
FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy


More information about the freebsd-arch mailing list