Hi,
i want replace my `swap` with `zram` and deactivate `zswap`
Install `zrame`:
sudo pacman -S zramen zramen-openrc
Detect installed service, enable, start and recheck:
sudo rc-service --list | grep zram
sudo rc-update add zramen default
sudo rc-service zramen start
sudo rc-status --servicelist -s | grep zram
Disable 'swap` if any
# find swap-partition
lsblk
# shwitch off swap, type here you partition e.g. /dev/sda3
sudo swapoff /dev/nvme1n1p3
# disable swap from `/etc/fstab` by typing # on front of swap UUID-Line
sudo nano /etc/fstab
Create zram-device, disable 'zswap" configure ZRAM:
modprobe zram num_devices=1
echo N > /sys/module/zswap/parameters/enabled
echo lz4 > /sys/block/zram0/comp_algorithm
echo 48G > /sys/block/zram0/disksize
mkswap --label zram0 /dev/zram0
swapon --priority 100 /dev/zram0
/etc/fstab
# ZRAM
UUID=9f46d511-1a3d-466c-a657-de92101e13b7 swap swap defaults 0 0
Disable `zswap` permanently (Kernelmodule Grub, rEFInd)