Replace the lookup-remove loop in swp_pager_meta_free_all with a call to SWAP_PCTRIE_RECLAIM_CALLBACK, to eliminate repeated trie searches.
Details
Details
- Reviewers
rlibby kib - Commits
- rGd2acf0a44709: swap_pager: pctrie_reclaim_cb in meta_free_all
A kernel modified with this patch was flogged enough for it to do some actual swapping, with no obvious ill effects.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
So, the previous pindex tracking was totally unnecessary, we always tear down the whole tree, correct? From what I can tell, it looks like swp_pager_meta_build maintains a SWAP_META_PAGES alignment invariant for the keys, so we should never have been hopping over another entry anyway.