detecting hyperthreading
Rui Paulo
rpaulo at me.com
Wed Mar 11 00:49:20 UTC 2015
On 11 Mar 2015, at 09:44, Pokala, Ravi <rpokala at panasas.com> wrote:
> Yeah. There's tons of info that could be scraped out of dmesg.boot, but
> actually doing that - let alone from C - is a pain. :-P
At my $DAYJOB, I wrote some code to detect the number of CPU sockets via topology_spec using expat (bsdxml library). It was probably less than 50 lines of code. Detecting HTT/SMT shouldn't be hard.
--
Rui Paulo
More information about the freebsd-hackers
mailing list