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)
Wed, Apr 15, 11:32 PM
Unknown Object (File)
Mon, Apr 13, 1:30 AM
Unknown Object (File)
Thu, Apr 9, 8:12 AM
Unknown Object (File)
Sun, Apr 5, 11:11 AM
Unknown Object (File)
Tue, Mar 24, 2:53 AM
Unknown Object (File)
Mon, Mar 23, 8:31 AM
Unknown Object (File)
Mar 18 2026, 1:30 AM
Unknown Object (File)
Mar 17 2026, 1:22 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36320
Build 33209: arc lint + arc unit