Running zram alongside disk swap can cause LRU inversion - cold pages lock up fast RAM while active data spills to slow disk. This happens because Linux is unable to evict pages from zram to disk (zram is just a block device, not integrated into the broader swap ecosystem).
I suggest replacing zram with zswap because it would create a proper tiered memory layout: RAM -> compressed RAM -> swap. Unlike zram, zswap is integrated with the kernel's memory management subsystem, allowing it to distinguish between hot and cold data and automatically evict stale pages to disk when the compressed pool fills.
If my judgement is correct I'll likely be able to provide patches.
Reference: https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html
Running zram alongside disk swap can cause LRU inversion - cold pages lock up fast RAM while active data spills to slow disk. This happens because Linux is unable to evict pages from zram to disk (zram is just a block device, not integrated into the broader swap ecosystem).
I suggest replacing zram with zswap because it would create a proper tiered memory layout: RAM -> compressed RAM -> swap. Unlike zram, zswap is integrated with the kernel's memory management subsystem, allowing it to distinguish between hot and cold data and automatically evict stale pages to disk when the compressed pool fills.
If my judgement is correct I'll likely be able to provide patches.
Reference: https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html