Determining CPU topology on multi-core CPUs

Paul Saab ps at freebsd.org
Sat Oct 8 01:31:22 PDT 2005


you want hyperthreading_cpus_mask

Joseph Koshy wrote:
> 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
> _______________________________________________
> freebsd-arch at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe at freebsd.org"
>
>   


More information about the freebsd-arch mailing list