Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2015 01:12:57 +0000
From:      "Pokala, Ravi" <rpokala@panasas.com>
To:        Rui Paulo <rpaulo@me.com>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, "lokadamus@gmx.de" <lokadamus@gmx.de>
Subject:   Re: detecting hyperthreading
Message-ID:  <D124E46A.12F917%rpokala@panasas.com>
In-Reply-To: <70D59C1C-8047-4A80-A172-D7CB3D8679AE@me.com>
References:  <D12358C5.12F652%rpokala@panasas.com> <9F2E1411-B517-4BC8-AF61-BB15EE35083C@me.com> <D123957A.12F6CA%rpokala@panasas.com> <54FF1343.1020705@gmx.de> <D1246191.12F7D6%rpokala@panasas.com> <CAOjFWZ594OKAZ95ybegKiu%2BKr4-YeEZfJGVmv1obhxeZjVVbNA@mail.gmail.com> <D124DDBA.12F8B3%rpokala@panasas.com> <70D59C1C-8047-4A80-A172-D7CB3D8679AE@me.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----Original Message-----
From: Rui Paulo <rpaulo@me.com>
Date: 2015-03-10, Tuesday at 17:48
To: Ravi Pokala <rpokala@panasas.com>
Cc: Freddie Cash <fjwcash@gmail.com>, "lokadamus@gmx.de"
<lokadamus@gmx.de>, "freebsd-hackers@freebsd.org"
<freebsd-hackers@freebsd.org>
Subject: Re: detecting hyperthreading

>On 11 Mar 2015, at 09:44, Pokala, Ravi <rpokala@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D124E46A.12F917%rpokala>