Page MenuHomeFreeBSD

vm_pageout: shrink pageout array
ClosedPublic

Authored by dougm on Aug 1 2024, 9:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 21, 7:16 PM
Unknown Object (File)
Tue, Sep 16, 8:41 PM
Unknown Object (File)
Sep 9 2025, 8:11 PM
Unknown Object (File)
Sep 3 2025, 8:32 PM
Unknown Object (File)
Sep 2 2025, 11:25 PM
Unknown Object (File)
Sep 2 2025, 11:26 AM
Unknown Object (File)
Sep 2 2025, 8:25 AM
Unknown Object (File)
Sep 2 2025, 7:39 AM
Subscribers

Details

Summary

The array passed to vm_pageout_flush, and constructed in a middle-out fashion, can never use array element zero. Shrink the array by one, and reduce indices by one, to save that bit of stack space. In the vm_object version, make the accounting look more like the pageout version.

Based on an observation by @alc.

Diff Detail

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

Event Timeline

dougm requested review of this revision.Aug 1 2024, 9:35 PM
dougm created this revision.
This revision is now accepted and ready to land.Aug 1 2024, 11:32 PM
This revision was automatically updated to reflect the committed changes.