From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 11 00:49:20 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 484C9837 for ; Wed, 11 Mar 2015 00:49:20 +0000 (UTC) Received: from st11p02mm-asmtp001.mac.com (st11p02mm-asmtp001.mac.com [17.172.220.236]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19BC4DA9 for ; Wed, 11 Mar 2015 00:49:19 +0000 (UTC) Received: from [10.17.5.24] (p31209-ipngn8001marunouchi.tokyo.ocn.ne.jp [153.214.94.209]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NL000LFKVLB9910@st11p02mm-asmtp001.mac.com> for freebsd-hackers@freebsd.org; Wed, 11 Mar 2015 00:48:51 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-03-10_08:2015-03-10,2015-03-10,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1503110008 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: detecting hyperthreading From: Rui Paulo In-reply-to: Date: Wed, 11 Mar 2015 09:48:47 +0900 Content-transfer-encoding: quoted-printable Message-id: <70D59C1C-8047-4A80-A172-D7CB3D8679AE@me.com> References: <9F2E1411-B517-4BC8-AF61-BB15EE35083C@me.com> <54FF1343.1020705@gmx.de> To: "Pokala, Ravi" X-Mailer: Apple Mail (2.2070.6) Cc: "freebsd-hackers@freebsd.org" , "lokadamus@gmx.de" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2015 00:49:20 -0000 On 11 Mar 2015, at 09:44, Pokala, Ravi 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