Page MenuHomeFreeBSD

Evaluate the real size of the sblk_zone.
ClosedPublic

Authored by kib on Oct 13 2017, 3:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 9 2024, 2:39 AM
Unknown Object (File)
Dec 20 2023, 5:15 AM
Unknown Object (File)
Dec 19 2023, 10:13 AM
Unknown Object (File)
Nov 29 2023, 11:51 PM
Unknown Object (File)
Nov 24 2023, 9:26 AM
Unknown Object (File)
Nov 23 2023, 10:05 PM
Unknown Object (File)
Nov 6 2023, 7:04 PM
Unknown Object (File)
Oct 31 2023, 12:24 PM
Subscribers

Details

Summary

This allows to not waste some small amount of memory, if available.

Submitted by: ota@j.email.ne.jp
PR: 221356

Diff Detail

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

Event Timeline

I think that the change is fine, but it needs a comment. Otherwise, this is going to look awfully strange to someone who isn't familiar with the inner works of UMA.

This revision is now accepted and ready to land.Oct 13 2017, 3:37 PM
This revision now requires review to proceed.Oct 13 2017, 3:50 PM
alc added inline comments.
sys/vm/swap_pager.c
546–548 ↗(On Diff #33958)

"Often uma_zone_reserve_kva() cannot reserve exactly the requested size. Account for the difference when calculating swap_maxpages.

This revision is now accepted and ready to land.Oct 13 2017, 4:05 PM
This revision was automatically updated to reflect the committed changes.