RPi-Distro / raspi-config

Configuration tool for the Raspberry Pi
Other
570 stars 209 forks source link

[FR] Add option to use zram device for overlay upper #175

Closed henryptung closed 2 years ago

henryptung commented 2 years ago

This should be a mostly-drop-in replacement for tmpfs in the overlay script, creating a journalless ext4 partition (mounted with -o discard) on top of a zram device instead of the current tmpfs.

XECDesign commented 2 years ago

Would you happen to have any comparisons for boot times, CPU and RAM usage while doing things like installing large packages and using the browser?

henryptung commented 2 years ago

In retrospect, probably not a great idea. tmpfs already supports swapping, so a zram swap device + normal tmpfs essentially allows for uncompressed "caching" while still leveraging zram as needed (vs. direct zram, which would force compression on all reads/writes).

See https://serverfault.com/a/843816/340187