Page MenuHomeFreeBSD

vm_pageout: shrink pageout array
ClosedPublic

Authored by dougm on Aug 1 2024, 9:35 PM.
Tags
None
Referenced Files
F151099094: D46208.diff
Mon, Apr 6, 1:10 AM
Unknown Object (File)
Mon, Mar 30, 2:18 AM
Unknown Object (File)
Mon, Mar 30, 2:18 AM
Unknown Object (File)
Sun, Mar 29, 6:17 PM
Unknown Object (File)
Tue, Mar 17, 3:46 PM
Unknown Object (File)
Feb 25 2026, 2:51 AM
Unknown Object (File)
Feb 25 2026, 2:16 AM
Unknown Object (File)
Feb 8 2026, 10:46 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.