Shrink the zswap pool on memory pressure
configname: CONFIG_ZSWAP_SHRINKER_DEFAULT_ON
Linux Kernel Configuration
└─>Memory Management options
└─>Shrink the zswap pool on memory pressure
In linux kernel since version 6.8 (release Date: 2024-03-10)
If selected, the zswap shrinker will be enabled, and the pages
stored in the zswap pool will become available for reclaim (i.e
written back to the backing swap device) on memory pressure.
This means that zswap writeback could happen even if the pool is
not yet full, or the cgroup zswap limit has not been reached,
reducing the chance that cold pages will reside in the zswap pool
and consume memory indefinitely.
stored in the zswap pool will become available for reclaim (i.e
written back to the backing swap device) on memory pressure.
This means that zswap writeback could happen even if the pool is
not yet full, or the cgroup zswap limit has not been reached,
reducing the chance that cold pages will reside in the zswap pool
and consume memory indefinitely.