HT detetct
Slawa Olhovchenkov
slw at zxy.spb.ru
Sat Feb 1 15:11:16 UTC 2020
On Sat, Feb 01, 2020 at 06:31:41AM -0800, David Wolfskill wrote:
> 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?).
kvm in driver or shell script?
c/c++ program.
> But the output of "sysctl kern.smp.threads_per_core" may be of interest
> or use in some of those contexts.
# sysctl kern.smp.threads_per_core
sysctl: unknown oid 'kern.smp.threads_per_core'
# sysctl kern.smp.threads_per_core
kern.smp.threads_per_core: 2
Hmm, like 12.1 and up.
OK, thanks!
More information about the freebsd-hackers
mailing list