Sorry, me being dumb - I confused the words for zram and zswap - I was refering to go either zram or swapfile. Sorry!
I can only encourage you to try zram. I have the same amount of RAM like you, 64 GB. And I am happy with zram since a long time. I configured 16 GB zram size.
https://wiki.archlinux.org/title/Zram
In section 2.3 this wiki page also shows how to improve performance by changing some sysctl parameters.
So, after testing it in VM I succesfully changed from the swapfile to ZRAM. System seems as snappy as before, but now my Swap is really sufficient - TY all VM!
For anyone who finds this via search, the following is done on your own risk:
zgrep CONFIG_ZSWAP_DEFAULT_ON /proc/config.gz
sudo nano /etc/default/grub
zswap.enabled=0
sudo grub-mkconfig -o /boot/grub/grub.cfg
systemctl reboot
cat /proc/cmdline
cat /sys/module/zswap/parameters/enabled
sudo swapoff /swap/swapfile
sudo umount /swap
sudo nano /etc/fstab
remove BOTH swap lines with '#'
brfsassistant remove @swap
sudo rm -rf /swap
systemctl reboot
sudo pacman -S zram-generator
sudo nano /etc/systemd/zram-generator.conf
[zram0]
#zram-size = ram / 2
zram-size = 16384
compression-algorithm = zstd
swap-priority = 100
fs-type = swap
sudo systemctl daemon-reload
sudo systemctl start systemd-zram-setup@zram0.service
swapon
zramctl
sudo /etc/sysctl.d/99-vm-zram-parameters.conf
vm.swappiness = 180
vm.watermark_boost_factor = 0
vm.watermark_scale_factor = 125
vm.page-cluster = 0
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.