Page MenuHomeFreeBSD

vm: Introduce {VM_ALLOC, PG}_NOFREE flags
ClosedPublic

Authored by bnovkov on Jul 14 2024, 1:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 12:52 AM
Unknown Object (File)
Mon, Nov 18, 10:21 PM
Unknown Object (File)
Sat, Nov 16, 8:04 AM
Unknown Object (File)
Oct 19 2024, 11:48 PM
Unknown Object (File)
Oct 12 2024, 6:55 PM
Unknown Object (File)
Oct 10 2024, 9:53 AM
Unknown Object (File)
Sep 25 2024, 7:34 AM
Unknown Object (File)
Sep 20 2024, 8:04 AM
Subscribers

Details

Summary

This patch adds two additional vm_page flags to distinguish pages that never get released while the system is running (e.g. UMA_ZONE_NOFREE slabs).
It also serves as a basis for implementing reservation-aware segregation of such pages.

Diff Detail

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

Event Timeline

markj added inline comments.
sys/vm/vm_page.h
460

This is only used for assertions, right? I'd maybe mention that in the comment, just in case we ever run out of bits for these flags and want to try and reclaim some.

This revision is now accepted and ready to land.Jul 21 2024, 4:48 PM
alc added inline comments.
sys/vm/vm_page.h
460

The apostrophe isn't necessary.

This revision was automatically updated to reflect the committed changes.