Page MenuHomeFreeBSD

Fix keg_large_init() for internal zones
ClosedPublic

Authored by markj on Sep 12 2017, 2:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 25 2025, 5:36 PM
Unknown Object (File)
Nov 21 2025, 5:00 PM
Unknown Object (File)
Nov 20 2025, 11:39 PM
Unknown Object (File)
Nov 20 2025, 11:23 PM
Unknown Object (File)
Nov 20 2025, 11:21 PM
Unknown Object (File)
Nov 20 2025, 11:20 PM
Unknown Object (File)
Nov 20 2025, 11:19 PM
Unknown Object (File)
Nov 20 2025, 11:19 PM
Subscribers
None

Details

Summary

If an internal zone has an item size that is slightly smaller than a
multiple of the page size, we won't take the slab header size into
account when allocating items. Fix that by adjusting the keg's ppera in
this case.

Also take the slab header size into account when computing the number of
pages allocated for UMA at boot time.

Diff Detail

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