3 ms·
Not crazy at all, very useful. https://en.wikipedia.org/wiki/Zram https://en.wikipedia.org/wiki/Zram https://wiki.gentoo.org/wiki/Zram https://wiki.gentoo.org
by LargoLasskhyfv 7y ago
Not crazy at all, very useful.
https://en.wikipedia.org/wiki/Zram https://en.wikipedia.org/wiki/Zram
https://wiki.gentoo.org/wiki/Zram https://wiki.gentoo.org/wiki/Zram
https://wiki.debian.org/ZRam https://wiki.debian.org/ZRam
Or Armbian, a Debian derivative for many RaspberryPi-like
ARM boards, where it helps avoiding trashing the usual sd-cards, and holds the logs, with different compression algorithms for /var/log, /tmp and swap.
Their script is here:
https://github.com/armbian/build/blob/master/packages/bsp/common/usr/lib/armbian/armbian-zram-config https://github.com/armbian/build/blob/master/packages/bsp/co...
I really like how this enables a tiny NanoPi Neo2 with one GB Ram booting from a 64GB SD-Card in an aluminum case with SATA-adapter and a 2,5" HDD mostly idling to draw only about 1W from the wall socket, while clocking up from about 400Mhz to 1,3Ghz if it needs to. It's not the fastest, but sufficient.