Programmatically cache line
David Chisnall
theraven at FreeBSD.org
Mon Jan 1 06:52:44 UTC 2018
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
More information about the freebsd-current
mailing list