On 12/4/20 1:32 PM, Sreyan Chakravarty wrote:
On Sat, 5 Dec 2020, 2:57 am Samuel Sieb, <sam...@sieb.net <mailto:sam...@sieb.net>> wrote:

    I think you missed the point about it being *fast*.  Swapping in RAM is
    orders of magnitude faster than swapping to disk, even SSD.

I thought swap was supposed to be used when you were running low on RAM. Then it kind of makes intuitive sense that the swap will be on disk and not ram.

Why block RAM by ZRAM Swap? Why not just keep it free?

zram doesn't take up any significant amount of RAM until it's needed. Then it compresses the swapped data blocks. I see that I've misconfigured something and ended up with two zram swaps active, so I have almost 17GB of zram defined on my 12GB laptop. Currently there is 9GB of swapped data using just over 2GB of RAM. So even if I used the entire 17GB of zram swap, my system would probably still be ok.

# zramctl
NAME       ALGORITHM DISKSIZE  DATA  COMPR  TOTAL STREAMS MOUNTPOINT
/dev/zram1 lz4             5G    5G   1.3G   1.4G       4
/dev/zram0 lzo-rle      11.6G  3.8G 931.8M 968.5M       4 [SWAP]
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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/users@lists.fedoraproject.org

Reply via email to