HomeFreeBSD

libpthread: allocate rwlocks and spinlocks in dedicated cachelines

Description

libpthread: allocate rwlocks and spinlocks in dedicated cachelines

Reduces severe performance degradation due to false-sharing. Note that this
does not account for hardware which can perform adjacent cacheline prefetch.

[mjg: massaged the commit message and the patch to use aligned_alloc
instead of malloc]

PR: 272238
MFC after: 1 week

Details

Provenance
becker.greg_att.netAuthored on Jun 27 2023, 1:08 AM
mjgCommitted on Jun 27 2023, 11:56 AM
Parents
rG4a402dfe0bc4: VFS: Remove VV_READLINK flag
Branches
Unknown
Tags
Unknown