Omarchy caps zram at 8 GiB and drops swappiness to 1, and DHH measures 162 ms frame stalls during local AI dropping to 17 ms (merged, next version)
Generating a song with a local model no longer has to freeze the desktop: the next Omarchy stops swapping out the compositor to keep model weights in cache.
Image: omacom/omarchy pull request #20033 (GitHub)
Running a local AI model on Omarchy could make the whole desktop stutter, even with RAM to spare. DHH merged a fix into the quattro branch on November 24, 2026 that retunes Omarchy’s swap and memory settings, and it is coming in the next version for every Omarchy machine: AMD, Intel or NVIDIA, with or without a disk swapfile.
The PR names two culprits. First, vm.swappiness=150 combined with vm.vfs_cache_pressure=50 made the kernel push live desktop and compositor pages out to swap so it could keep read-only model weights in the page cache. On a 120 Hz Intel Arc B390 laptop, generating a song swapped out about 400 MiB of desktop and Hyprland pages into zram, causing Wayland freezes of 125 to 162 ms, according to the PR. Second, an uncapped zram device (zram-size = ram, compressed with zstd) could spiral under memory pressure: mixed browser and AI pages compress at roughly 1.6 to 1.9:1 rather than 3:1, so zram ended up pinning over half the physical RAM while paying heavy compression latency.
The changes:
- zram is capped at
min(ram / 2, 8192)MiB, which the PR says bounds its worst-case physical RAM use to about 4 GiB, with disk swap kept as low-priority overflow. - Compression switches from
zstdtolzo-rle, which the PR describes as several times lower latency on mixed pages. vm.swappinessdrops to1, so the kernel drops clean file cache (model weights, build artifacts) before swapping live desktop memory, while zram swap still kicks in once RAM is really full.- The
vm.vfs_cache_pressure=50override is removed, returning to the kernel default of100.
Existing installs get the new settings through a migration. It applies the updated sysctls, resetting vfs_cache_pressure to 100 only if it is still at Omarchy’s old value of 50, and restarts the zram swap device if it is empty; otherwise it flags that a reboot is required.
The numbers in the PR come from live ACE-Step 1.5 song generation under desktop load (the PR cites Flowtunes with ACE-Step 1.5 as its example workload), measured on two specific machines, so treat them as those machines’ results rather than a general average. On the Intel Arc B390 laptop (dhh-dell-xps16, 30 GiB of RAM, zram only) with 18 GiB of desktop load, the worst Wayland frame went from 162.3 ms to 16.84 ms, with no frame over 25 ms across 4,817 frames, and the worst Hyprland IPC stall from 55.6 ms to 0.66 ms.
On an AMD Strix Halo machine (cph-b395, 31 GiB, disk swap plus zram, 60 Hz) with 27 GiB of desktop load and a 180-second song, the worst Wayland frame went from 117.6 ms to 25.32 ms. In an extreme 36 GiB memory overcommit, averaged over three runs, it went from 672 ms (923 ms at worst) to 26 to 41 ms, and the run finished in 22.4 s instead of 32.5 s.
A follow-up merged the same day goes further. PR #20048 keeps session.slice, where Omarchy runs Hyprland, Quickshell, PipeWire and the desktop portals, out of swap entirely and gives it five times the default CPU weight, while user apps and local models stay in app.slice. The PR reports wake-up latency under memory pressure falling from 275 ms to 1.7 ms on the Strix Halo machine and from 104 ms to 13.8 ms on the Arc B390 laptop. Both land alongside the new local models panel, so running a model and keeping a smooth desktop should finally go together.
