CACHE_LINE_SIZE macro.
Warner Losh
imp at bsdimp.com
Mon Nov 5 16:49:24 UTC 2012
On Nov 5, 2012, at 9:23 AM, Eitan Adler wrote:
> On 4 November 2012 13:28, Rodney W. Grimes
> <freebsd at pdx.rh.cn85.chatusa.com> wrote:
>>
>> What ABI is exposing anything about cache parameters or may be come dependent
>> on such information?
>
> There has been some discussion recently about padding lock mutexs to
> the cache line size in order to avoid false sharing of CPUs. Some have
> claimed to see significant performance increases as a result.
Is that an out-of-kernel interface?
If we did that, we'd have to make it run-time settable, because there's no one right answer for arm and MIPS cpus: they are all different.
Warner
More information about the freebsd-mips
mailing list