Skip to content

Instantly share code, notes, and snippets.

@TBog
TBog / zram info
Last active February 25, 2021 08:49 — forked from voyeg3r/zram.sh
How enable zram module on kernel (debian lik distro)?
from
https://www.phoronix.com/forums/forum/software/mobile-linux/1086709-zram-will-see-greater-performance-on-linux-5-1-it-changed-its-default-compressor/page3
There has been this zram-config script in the wild for over 7 years that for some reason has been emulated and copied blindly with no actual reference to the kernel docs or thought as it would seem.
If you just need some free RAM, you can restrict crocesses to a certain amount of it using:
systemd-run --user --scope -p MemoryLimit=500M firefox &
disown -r
Hide console output