Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Feb 2020 18:11:12 +0300
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        David Wolfskill <david@catwhisker.org>, freebsd-hackers@freebsd.org
Subject:   Re: HT detetct
Message-ID:  <20200201151112.GA8012@zxy.spb.ru>
In-Reply-To: <20200201143141.GL1270@albert.catwhisker.org>
References:  <20200201142613.GA8028@zxy.spb.ru> <20200201143141.GL1270@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200201151112.GA8012>