On Mon, 2026-05-11 at 12:53 +0200, Benny Lyne Amorsen wrote:
> Patrick Dupre via users <[email protected]> writes:
> 
> > swapon
> > NAME       TYPE      SIZE  USED PRIO
> > /dev/zram0 partition   8G    8G  100
> > /dev/sda2  partition  16G 10.1G   -1
> > 
> 
> Combining zram and disk-based swap is generally not a good idea. What
> will happen is that zram will fill up with old unused pages which are
> never accessed (and therefore never swapped in), and then the
> actually
> used pages will be placed on disk. You are now in a situation with
> 8GB
> less memory than you had before, and your swap device is a slow disk
> instead of fast compressed memory.
> 
> zswap on the other hand discovers that certain pages have not been in
> use for a long time, and so it migrates them to disk without
> decompressing them. It will also notice that some memory pages are
> incompressible, and it will send those straight to disk.
> 
> The result is that with zswap, the recently used pages are in fast
> compressed memory, and stuff which has not been used for hours is
> on disk. As it should be.
> 
> https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html
> 

Fascinating article. I suggest people read the section on Fedora before
deciding to change.

poc
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to