Page MenuHomeFreeBSD

linuxkpi: Fix the shrinker scan target
ClosedPublic

Authored by markj on Jan 18 2021, 5:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 17, 7:28 AM
Unknown Object (File)
Aug 31 2026, 5:12 PM
Unknown Object (File)
Aug 27 2026, 10:01 AM
Unknown Object (File)
Aug 24 2026, 4:13 PM
Unknown Object (File)
Aug 23 2026, 4:22 PM
Unknown Object (File)
Aug 22 2026, 12:44 PM
Unknown Object (File)
Aug 21 2026, 11:57 AM
Unknown Object (File)
Aug 15 2026, 4:53 PM

Details

Summary

Use the number of items scanned to control the duration of the shrink
loop. Otherwise, if a consumer like TTM is not able to free the number
of items requested, we'll just keep looping. This more closely matches
the behaviour of the out-of-tree implementation.

I'm not sure that it makes sense to scan until we've visited roughly
every object in the pool, but this at least fixes some nasty hangs I'm
seeing with amdgpu when the system runs out of free pages.

Diff Detail

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