From owner-freebsd-current@freebsd.org Mon Jan 1 06:52:43 2018 Return-Path: Delivered-To: freebsd-current@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 F0980EAE8EE for ; Mon, 1 Jan 2018 06:52:43 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (xvm-110-62.dc2.ghst.net [46.226.110.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "theravensnest.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 93B6D1A0B for ; Mon, 1 Jan 2018 06:52:42 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from pc26.home (ABordeaux-656-1-1-174.w90-38.abo.wanadoo.fr [90.38.32.174]) (authenticated bits=0) by theravensnest.org (8.15.2/8.15.2) with ESMTPSA id w016qbSw061665 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 1 Jan 2018 06:52:38 GMT (envelope-from theraven@FreeBSD.org) X-Authentication-Warning: mail: Host ABordeaux-656-1-1-174.w90-38.abo.wanadoo.fr [90.38.32.174] claimed to be pc26.home Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Programmatically cache line From: David Chisnall In-Reply-To: Date: Mon, 1 Jan 2018 06:52:37 +0000 Cc: Konstantin Belousov , blubee blubeeme , FreeBSD current Content-Transfer-Encoding: quoted-printable Message-Id: <08038E36-9679-4286-9083-FCEDD637ADCC@FreeBSD.org> References: <20171230082812.GL1684@kib.kiev.ua> To: Adrian Chadd X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jan 2018 06:52:44 -0000 On 1 Jan 2018, at 05:09, Adrian Chadd wrote: >=20 > On 30 December 2017 at 00:28, Konstantin Belousov = wrote: >> On Sat, Dec 30, 2017 at 07:50:19AM +0000, blubee blubeeme wrote: >>> Is there some way to programmatically get the CPU cache line sizes = on >>> FreeBSD? >>=20 >> There are, all of them are MD. >>=20 >> On x86, the CPUID instruction leaf 0x1 returns the information in >> %ebx register. >=20 > Hm, weird. Why don't we extend sysctl to include this info? It would be nice to expose this kind of information via VDSO or similar. = There are a lot of similar bits of info that people want to use for = ifunc and, SVE is going to have a bunch of similar requirements. David