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)
Thu, Jul 9, 7:42 AM
Unknown Object (File)
Wed, Jul 8, 6:41 AM
Unknown Object (File)
May 24 2026, 11:48 PM
Unknown Object (File)
May 24 2026, 11:48 PM
Unknown Object (File)
May 19 2026, 11:11 PM
Unknown Object (File)
May 18 2026, 4:24 PM
Unknown Object (File)
May 6 2026, 10:40 PM
Unknown Object (File)
May 3 2026, 5:26 PM
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.