Re: Programmatically cache line

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Mon, 1 Jan 2018 06:52:37 +0000
On 1 Jan 2018, at 05:09, Adrian Chadd <adrian.chadd_at_gmail.com> wrote:
> 
> On 30 December 2017 at 00:28, Konstantin Belousov <kostikbel_at_gmail.com> 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?
>> 
>> There are, all of them are MD.
>> 
>> On x86, the CPUID instruction leaf 0x1 returns the information in
>> %ebx register.
> 
> 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
Received on Mon Jan 01 2018 - 05:52:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:14 UTC