Page MenuHomeFreeBSD

Try reusing about-to-be-freed memory in swap_pager_reserve when desperate
Needs ReviewPublic

Authored by dougm on Jul 29 2019, 3:13 AM.

Details

Reviewers
alc
Summary

If swp_pager_getswapspace fails in swap_pager_reserve, there may be enough swap space waiting to be freed to save the day, or at least to survive another iteration, so try that. That also prevents a possible small swap space leak when we run out of swap space while we're holding some waiting to be freed.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

dougm created this revision.Jul 29 2019, 3:13 AM