Omarchy’s next version caps zram and drops swappiness to 1 (see the news post in this batch). Whether you’re on Omarchy or plain Arch, here’s how to see what you’ve got and try the new values yourself. Nothing here is permanent until you write the config files.
1. See what you have now
zramctl # size, algorithm, data stored vs compressed
swapon --show # every swap device and its priority
sysctl vm.swappiness vm.vfs_cache_pressure
cat /etc/systemd/zram-generator.conf 2>/dev/null
If zramctl shows a DISKSIZE equal to your RAM and swappiness is high (Omarchy used 150), you’re on the old defaults.
2. Try the new swappiness live
sudo sysctl vm.swappiness=1
sudo sysctl vm.vfs_cache_pressure=100
That lasts until reboot. Use the machine the way you normally do, ideally with a local model running, and see if the stutters go away.
3. Make it stick
# /etc/sysctl.d/99-swap.conf
vm.swappiness = 1
vm.vfs_cache_pressure = 100
# /etc/systemd/zram-generator.conf
[zram0]
zram-size = min(ram / 2, 8192)
compression-algorithm = lzo-rle
Then reload with sudo sysctl --system and reboot so zram comes back with the new size. If you’re on Omarchy, you can also just wait for the update, since its migration does this for you. Doing both is harmless as long as the values match, but don’t leave a stray 99- file that overrides Omarchy’s later.
4. Watch it under load
watch -n2 'zramctl; free -h'
If the COMPR column stays well under DISKSIZE and the desktop stays smooth, you’re good.
Review before you install: read the release notes yourself, back up your config, and try new versions somewhere you can afford to break first.
God Bless, and Use the Source!