chimera-linux / cports

Chimera ports collection
BSD 2-Clause "Simplified" License
169 stars 105 forks source link

zram unit implementation #243

Open nekopsykose opened 1 year ago

nekopsykose commented 1 year ago

examples:

https://github.com/vaeth/zram-init
https://github.com/systemd/zram-generator

kernel:

https://www.kernel.org/doc/html/next/admin-guide/blockdev/zram.html

nekopsykose commented 1 year ago

system units aside, a cli example:

# modprobe zram num_devices=1 # /dev/zram{0,1, ...}
# zramctl --algorithm zstd --size 8G /dev/zram0
# mkswap /dev/zram0
# swapon /dev/zram0 # instead of swap, one can also mount this to /tmp for compressed tmpfs, etc