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)
Fri, Nov 8, 6:30 PM
Unknown Object (File)
Oct 3 2024, 5:39 AM
Unknown Object (File)
Oct 1 2024, 1:43 PM
Unknown Object (File)
Oct 1 2024, 8:41 AM
Unknown Object (File)
Sep 30 2024, 4:38 AM
Unknown Object (File)
Sep 27 2024, 11:15 AM
Unknown Object (File)
Sep 23 2024, 6:53 AM
Unknown Object (File)
Sep 22 2024, 5:53 AM

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