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)
Thu, Sep 12, 9:58 PM
Unknown Object (File)
Sun, Sep 8, 9:37 AM
Unknown Object (File)
Sun, Sep 8, 4:20 AM
Unknown Object (File)
Sat, Sep 7, 6:24 PM
Unknown Object (File)
Sun, Sep 1, 5:32 PM
Unknown Object (File)
Fri, Aug 30, 6:11 AM
Unknown Object (File)
Thu, Aug 29, 8:02 PM
Unknown Object (File)
Jul 30 2024, 6:18 PM
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 Skipped
Unit
Tests Skipped

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.