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

(cherry picked from commit a6c0d801ca5934bb9b9cca6870ea7406d5db0641)

Details

Provenance
becker.greg_att.netAuthored on Jun 27 2023, 1:08 AM
mjgCommitted on Jul 5 2023, 12:34 PM
Parents
rG4c20e26e26ec: syscalls: fix modspecific_t stack content leak
Branches
Unknown
Tags
Unknown