Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2015 09:48:47 +0900
From:      Rui Paulo <rpaulo@me.com>
To:        "Pokala, Ravi" <rpokala@panasas.com>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, "lokadamus@gmx.de" <lokadamus@gmx.de>
Subject:   Re: detecting hyperthreading
Message-ID:  <70D59C1C-8047-4A80-A172-D7CB3D8679AE@me.com>
In-Reply-To: <D124DDBA.12F8B3%rpokala@panasas.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>

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

--
Rui Paulo






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70D59C1C-8047-4A80-A172-D7CB3D8679AE>