From owner-svn-src-all@freebsd.org Tue Apr 5 05:26:24 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 351B7B03DAC; Tue, 5 Apr 2016 05:26:24 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id EB1DD15FA; Tue, 5 Apr 2016 05:26:22 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id IAA21233; Tue, 05 Apr 2016 08:26:14 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1anJVG-0008Go-KW; Tue, 05 Apr 2016 08:26:14 +0300 Subject: Re: svn commit: r297558 - in head/sys: kern sys x86/x86 To: Alexey Dokuchaev References: <201604041609.u34G9TCd022548@repo.freebsd.org> <20160405011446.GA41944@FreeBSD.org> Cc: src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, svn-src-head@FreeBSD.org From: Andriy Gapon Message-ID: <57034C3E.6080404@FreeBSD.org> Date: Tue, 5 Apr 2016 08:25:18 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <20160405011446.GA41944@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2016 05:26:24 -0000 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