This functionality is hardly useful to an user, it is mainly for more comfortable debugging, for example, to test new zswap allocator calling zpool_shrink from userspace.
--
Thanks,
Thanks,
Ananda Badmaev
09.06.2021, 13:48, "David Hildenbrand" <david@xxxxxxxxxx>:
On 02.06.21 11:27, Ananda Badmaev wrote:
- Added 'total_pages_reclaimed' stat to debugfs in zswap.
- Added ability to reclaim pages from zswap using debugfs.
- Added u64 reclaim counter to shrink_worker()--
I wonder how this is really useful from a user perspective. Wouldn't it
make sense to shrink automatically, e.g., when reclaiming memory because
low on free memory (OOM?)?
Thanks,
David / dhildenb