[Bug 214425] [drm][amdgpu][TTM] Page pool memory never gets freed
bugzilla-daemon at kernel.org
bugzilla-daemon at kernel.org
Sat Oct 15 16:14:02 UTC 2022
https://bugzilla.kernel.org/show_bug.cgi?id=214425
--- Comment #4 from Rafael Ristovski (rafael.ristovski at gmail.com) ---
For what its worth, the following horrible incantation managed to release 2+GB
of TTM buffers on one of my machines, after I purposefully ran a VRAM intensive
game:
> for i in {1..1000}; do cat /sys/kernel/debug/ttm/page_pool_shrink; done
This seems to be the only sysfs mechanism to cause the memory to get released,
and as of now I am not aware of a... better and mainly "cleaner" alternative.
Newer kernel versions seem to feature
https://www.kernel.org/doc/html/next/admin-guide/mm/shrinker_debugfs.html,
which might be a better alternative, but I have not tested it yet, and its
usage is not exactly clear to me.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the dri-devel
mailing list