Omarchy

Omarchy Caps zram at 8 GiB and Drops Swappiness to 1 So Local AI Stops Freezing the Desktop

Leave a comment

If you’ve run a local model on Omarchy and watched the whole desktop hitch, this one’s for you. DHH merged PR #20033 into quattro on November 24, and it retunes swap and memory for every Omarchy machine in the next version.

According to Omarchy Central, the old vm.swappiness=150 plus vfs_cache_pressure=50 pushed live desktop and Hyprland pages into swap to keep model weights cached, and an uncapped zram device could pin over half of RAM. The new settings: zram capped at min(ram / 2, 8192) MiB, compression switched from zstd to lzo-rle, swappiness dropped to 1, and the cache-pressure override removed. Existing installs get a migration. On DHH’s Arc B390 laptop, the worst Wayland frame during song generation went from 162.3 ms to 16.84 ms. Those are two specific machines, not a general average. A follow-up PR keeps the desktop’s session.slice out of swap entirely.

Separately, Birk Skyum merged a change that takes the Yoga Slim 7x’s hibernation fix, stopping the DSPs and Wi-Fi before hibernate and bringing them back after, to every Snapdragon X1 laptop. The catch: other X1 models also need a device tree fix (merged into omarchy-pkgs the same day), or Wi-Fi drops a few minutes after resume. So far it’s only been tested on the Yoga.

My take

Great data-driven tuning. I’ve got a how-to coming in this batch on checking your own zram and swappiness before the migration hits.

God Bless, and Use the Source!

References & Further Reading

Subscribe (RSS) Follow Omarchy via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.