Omarchy keeps the desktop alive under memory pressure on 64 GiB+ machines
A new boot-time cap on app-graphical.slice reserves 11 GiB for the desktop on big-RAM hosts, and DHH’s stress tests go from 54 kernel OOM kills to zero. Coming in the next version.
Image: omacom/omarchy pull request #20437 (GitHub)
Omarchy’s memory tuning has been built around 8 to 16 GiB laptops, and DHH just found out what happens when you push a 125 GiB workstation to the wall. The answer on stock Omarchy was not pretty: the whole desktop got wiped out. His fix, merged on November 27, 2026 as PR #20437, is coming in the next version.
The root cause ties back to the 8 GiB zram cap Omarchy adopted earlier this week. According to the PR, that cap means zram shrinks to 12.5% of RAM or less at 64 GiB and about 6% at 128 GiB. Parallel workloads across 8 to 32 threads allocate at 8 to 30+ GB/s, so they fill all 8 GiB of zram in under a second, faster than systemd-oomd‘s polling loop can react.
DHH’s benchmarks ran on his dhh-hp-zbookultra (AMD Ryzen AI Max+ PRO 395, 125 GiB RAM, 32 threads) with a live Hyprland desktop. On stock Omarchy, a compressible 140 GiB ramp with 8 workers at 8 GB/s triggered 54 kernel OOM kills, taking out Hyprland, Quickshell, PipeWire and D-Bus. An unthrottled incompressible burst of 135 GiB at 28+ GB/s caused a 6-minute lockup and lost SSH and Tailscale.
With the fix in place, the same compressible ramp produced zero Hyprland or Quickshell faults and a hyprctl p95 response of 9.5 ms. The incompressible burst finished in 7.56 seconds total, with zero kernel OOM kills, zero allocation failures and a hyprctl p95 of 10.5 ms. The desktop simply stayed responsive while the runaway workload got contained.
The mechanism is small. A new omarchy-high-memory.service only runs on hosts with ConditionMemory=>=56G, which catches 64 GiB+ machines while never even forking a process on smaller laptops. Once per boot it calls omarchy-apply-high-memory, which caps MemoryMax on app-graphical.slice so that 11 GiB stays reserved outside it: 8 GiB for worst-case uncompressed zram plus about 3 GiB for the session, system services and kernel reserves. Because it is computed at every boot, it follows RAM upgrades automatically.
Local AI users don’t pay for it. DHH explains that app-graphical.slice and app-models.slice are siblings, so omarchy-local-ai models stay completely uncapped. He checked this on a DGX Spark with 121.9 GiB of memory, where capping the broader app.slice instead would have OOM-killed a large model. Browsers, terminals, editors and terminal-launched builds are the ones that get contained. Anyone who wants different limits can override or mask the cap in /etc/systemd/user/app-graphical.slice.d/ or ~/.config/systemd/user/app-graphical.slice.d/.
The benchmark results combine this change with PR #20426, merged the same day after testing on a 16 GiB machine. That one gives the session slice a soft MemoryLow=768M protection: on stock, the session lost up to 460 MiB under pressure, with Hyprland and Quickshell taking 30 to 160 major faults. It also tightens the systemd-oomd pressure limit from 50% over 20 seconds to 60% over 10 seconds, which DHH says cuts incompressible stall freezes “roughly in half”.
And when something does get killed, Omarchy will now say so clearly: PR #20446 replaces the misleading “Process crashed: chrome” toast with an “Out of memory” notification such as “Closed Google Chrome to free memory”, and hides follow-up crash toasts for 15 seconds.
All numbers come from DHH’s own testing on his workstation, plus the Spark check, so your mileage will vary with your hardware. But for anyone running big builds or local models on a 64 GiB+ Omarchy box, the next version should stay usable when RAM runs out.
