Page MenuHomeFreeBSD

uma: Permit specifying max of cache line and some custom alignment
ClosedPublic

Authored by olce on Oct 17 2023, 3:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 12 2024, 6:37 PM
Unknown Object (File)
Nov 30 2024, 4:05 AM
Unknown Object (File)
Nov 25 2024, 2:27 PM
Unknown Object (File)
Nov 25 2024, 11:52 AM
Unknown Object (File)
Nov 25 2024, 10:42 AM
Unknown Object (File)
Nov 22 2024, 10:03 PM
Unknown Object (File)
Nov 14 2024, 5:25 PM
Unknown Object (File)
Nov 14 2024, 5:01 PM
Subscribers

Details

Summary

To be used for structures for which we want to enforce that pointers to
them have some number of lower bits always set to 0, while still
ensuring we benefit from cache line alignment to avoid false sharing
between structures and fields within the structures (provided they are
properly ordered).

First candidate consumer that comes to mind is 'struct thread', see next
commit.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Oct 17 2023, 3:04 PM
This revision is now accepted and ready to land.Oct 17 2023, 3:46 PM
sys/vm/uma.h
306
kib requested changes to this revision.Oct 17 2023, 6:36 PM
This revision now requires changes to proceed.Oct 17 2023, 6:36 PM
olce marked an inline comment as done.
olce edited the summary of this revision. (Show Details)

Add missing parentheses in macro expansion.

This revision is now accepted and ready to land.Oct 19 2023, 11:58 AM