Page MenuHomeFreeBSD

Fix zone and keg alignment as well as boot pages calculations on numa.
ClosedPublic

Authored by jeff on Jan 5 2020, 11:53 PM.
Tags
None
Referenced Files
F111955866: D23046.id66394.diff
Mon, Mar 10, 7:17 PM
Unknown Object (File)
Sun, Feb 9, 8:16 PM
Unknown Object (File)
Feb 4 2025, 3:43 PM
Unknown Object (File)
Feb 1 2025, 8:55 PM
Unknown Object (File)
Jan 22 2025, 8:14 PM
Unknown Object (File)
Jan 22 2025, 1:14 AM
Unknown Object (File)
Nov 26 2024, 8:36 AM
Unknown Object (File)
Nov 10 2024, 2:00 PM
Subscribers

Details

Summary

While making NUMA amd64 w/o MD_SMALL_ALLOC boot I noticed a number of numa bugs but also weaker than required alignment. In practice the alignment of zones was actually dictated by the alignment of the per-cpu cache structure. This just clarifies existing behavior while simplifying code.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jeff added reviewers: rlibby, markj.
jeff set the repository for this revision to rS FreeBSD src repository - subversion.
sys/amd64/include/vmparam.h
79 ↗(On Diff #66394)

obviously not committing this.

This revision is now accepted and ready to land.Jan 6 2020, 12:10 AM
markj added inline comments.
sys/vm/uma_int.h
169 ↗(On Diff #66394)

Typo: terminology.

I think we used to define CACHE_LINE_SIZE to 128 on amd64 for this reason. I'm not sure when that changed.