Enable zram swap by default for some (or all?) devices
Some devices, like the librem 5 (and I've heard the PBP too, and probably the pinephone, and others?) benefit by having zram swap, at least I see swap being used on my L5 when I enabled it with zram after ~1 day of use. I think this becomes even more useful in low-memory situations.
$ free -m
total used free shared buff/cache available
Mem: 2992 1273 710 178 1007 1478
Swap: 747 182 565
I think it might be useful to have this enabled easily for other devices, possibly automatically with postmarketos-base-zram
that can supply a good default /etc/conf.d/zram-init
and depend on zram-init
?
Either it can be enabled automatically for all devices that have a UI installed (postmarketos-base-ui
dependency), or it could be enabled only for specific devices by having the device package depend on it. Some kernel config is necessary (pmbootstrap!2075 (merged)), so maybe doing it per-device once the kernel has the required config is the way to go.
Or maybe enabling it by default is a terrible idea (if you think so, explain!)
Thoughts?