detecting hyperthreading

Pokala, Ravi rpokala at panasas.com
Wed Mar 11 01:13:06 UTC 2015


-----Original Message-----
From: Rui Paulo <rpaulo at me.com>
Date: 2015-03-10, Tuesday at 17:48
To: Ravi Pokala <rpokala at panasas.com>
Cc: Freddie Cash <fjwcash at gmail.com>, "lokadamus at gmx.de"
<lokadamus at gmx.de>, "freebsd-hackers at freebsd.org"
<freebsd-hackers at freebsd.org>
Subject: Re: detecting hyperthreading

>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.

That's a fair point. We currently don't have an XML parser linked to the
chunk of code I'm working in, but adding that wouldn't be too terrible if
it came to that.

Thanks,

Ravi



More information about the freebsd-hackers mailing list