HT detetct

David Wolfskill david at catwhisker.org
Sat Feb 1 14:31:44 UTC 2020


On Sat, Feb 01, 2020 at 05:26:14PM +0300, Slawa Olhovchenkov wrote:
> No other way to detect HT CPU but from kvm get cpu_apic_ids and from
> kvm get cpu_present[] and check .cpu_hyperthread?
> ....

Not sure what context you have here (driver? shell script? other?).

But the output of "sysctl kern.smp.threads_per_core" may be of interest
or use in some of those contexts.

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
McConnell's Senators are covering up their whitewash of Trump's malfeasance.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20200201/be2f35be/attachment.sig>


More information about the freebsd-hackers mailing list