I want to disable zswap and use zram. I hope this will make the mouse freezes less often.
Here is what I tried to disable zswap.
- Reinstall Qubes 4.1 with the default settings (Luks, ext4, and thin lvm).
- Update whonix-gw. Restart sys-whonix. Update fedora-34 template VM.
- Start Fedora-34 template VM and check the content of
/etc/default/grub
- I see that it points to two files:
/etc/default/grub.qubes
and/etc/default/grub.qubes-kernel-vm-support
. - I added a new line to
/etc/default/grub.qubes
:GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX zswap.enabled=0"
- Run
grub2-mkconfig -o /boot/grub2/grub.cfg
- Restart the Fedora-34 template VM
- Run
top
in the template VM. I still see the VM has 1GB swap.
That means I didn’t disable zswap in the template VM.
What is the correct way to disable zswap in Fedora template and AppVM?
Thanks.