Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2016 08:25:18 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Alexey Dokuchaev <danfe@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, svn-src-head@FreeBSD.org
Subject:   Re: svn commit: r297558 - in head/sys: kern sys x86/x86
Message-ID:  <57034C3E.6080404@FreeBSD.org>
In-Reply-To: <20160405011446.GA41944@FreeBSD.org>
References:  <201604041609.u34G9TCd022548@repo.freebsd.org> <20160405011446.GA41944@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/04/2016 04:14, Alexey Dokuchaev wrote:
> On Mon, Apr 04, 2016 at 04:09:29PM +0000, Andriy Gapon wrote:
>> New Revision: 297558
>> URL: https://svnweb.freebsd.org/changeset/base/297558
>>
>> Log:
>>   new x86 smp topology detection code
>>   
>>   Previously, the code determined a topology of processing units
>>   (hardware threads, cores, packages) and then deduced a cache topology
>>   using certain assumptions.  The new code builds a topology that
>>   includes both processing units and caches using the information
>>   provided by the hardware.
> 
> Good work!  On a related note, would it make it easier/possible to start
> thinking about if FreeBSD can export CPU cache information into userland?

Yes, this was somewhere in the long to-do list in the commit message :-)

> Some applications want these bits...  Linux exports them via sysconf(3),
> back in 2003 bms@ proposed preliminary design [1] and suggested sysctl(3).
> 
> ./danfe
> 
> [1] https://lists.freebsd.org/pipermail/freebsd-hackers/2003-October/003604.html
> 


-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57034C3E.6080404>