Jump to content

Talk:Zram

From ArchWiki

Any way to release memory after files getting removed from the zram devices?

I deleted all files in the zram devices, how to release the memory back to OS?

~ sudo du -sh /mnt/zram2

76K     /mnt/zram2



~ zramctl --output-all  

NAME       DISKSIZE   DATA  COMPR ALGORITHM STREAMS ZERO-PAGES  TOTAL MEM-LIMIT MEM-USED MIGRATED MOUNTPOINT

/dev/zram0      31G  25.5M  25.5M lzo-rle         6          0  25.5M        0B   191.8M       0B [SWAP]

/dev/zram1      31G 631.5M 125.5M lzo-rle         6     126512 127.1M        0B   140.4M       0B /tmp

/dev/zram2      31G   5.4G     3G lzo-rle         6     226672     3G        0B     3.9G    16.5K /mnt/zram2 Scybhe (talk) 02:36, 23 December 2024 (UTC)Reply

What file system did you use for the /dev/zram2? — Lahwaacz (talk) 13:16, 25 December 2024 (UTC)Reply
~ df -h -T
/dev/zram2     ext2       31G  4.2G   27G   14% /mnt/zram2
I am using zram generator and I also submited an issue here: https://github.com/systemd/zram-generator/issues/220 Scybhe (talk) 01:48, 26 December 2024 (UTC)Reply