Omarchy’s new memory-pressure work got me looking at how close my own machines get to the wall. Linux has a built-in gauge for this called PSI (Pressure Stall Information), and it tells you more than free ever will.
1. Read the gauge
cat /proc/pressure/memory
You’ll see a some line (share of time at least one task was stalled waiting on memory) and a full line (all non-idle tasks stalled at once), averaged over 10, 60 and 300 seconds. Near zero is healthy. A full avg10 climbing into double digits is when the desktop starts to stutter.
2. Watch it live during a heavy job
watch -n1 cat /proc/pressure/memory
Kick off a big build or load a local model in another terminal and watch the numbers move.
3. See what systemd-oomd is watching
oomctl
journalctl -u systemd-oomd --since today
oomctl shows which cgroups oomd monitors and their pressure limits. The journal shows anything it killed.
4. Find the memory hog by cgroup
systemd-cgtop -m
Sorted by memory, so you can see whether it’s your browser, a build or a model eating RAM.
5. Check for slice caps
systemctl --user show app-graphical.slice -p MemoryMax -p MemoryLow
On a stock desktop this usually shows infinity. If you’re on a build with Omarchy’s new high-memory cap, you’ll see the number.
Notes
- Everything here is read-only.
- Per-cgroup pressure lives in
memory.pressurefiles under/sys/fs/cgroup/. - PSI also covers
cpuandioin the same folder.
God Bless, and May the Source Be with You!