Repository navigation
Document the realtime budget and the zero RLIMIT_RTTIME kill - #16624
mauseJavier wants to merge 1 commit into
Conversation
[High impact] The reviewed diff reaches a wide range of desktop features and system setup. The documentation appears safe to merge, with a non-blocking correction needed for the checks after the workaround. Findings
SummaryAdds
Reviews (1) · Last reviewed commit: "Document the realtime budget and the zer..." · Reviewed by Greptile |
| grep 'Max realtime timeout' /proc/"$(pgrep -x quickshell | head -1)"/limits | ||
| ``` | ||
|
|
||
| Both should report `200000`, or `unlimited` from the workaround below. A `0` in either place means every app launched from the menu is exposed. |
There was a problem hiding this comment.
Successful workaround looks broken
The non-root workaround only stops clients from applying the portal budget; the portal can still report 0. Saying both checks should report unlimited, and that either zero means apps remain exposed, makes a successful workaround look broken. Describe the results separately: the portal may still report 0, while the restarted shell should show unlimited.
| Both should report `200000`, or `unlimited` from the workaround below. A `0` in either place means every app launched from the menu is exposed. | |
| With `rtkit` installed and the portal and shell restarted, both checks should report `200000`. With the non-root workaround below, the portal may still report `0`, but the shell's limit should be `unlimited`. A `0` in the shell's limits means it still carries the zero budget. |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
Thanks for writing this up, @mauseJavier. This failure is hard to diagnose, and your reproduction matches what was later measured in #16824. I read
Nothing ran for this check. It is Markdown only, so I checked it by reading it against the repository. The second opinion came from Codex Medium and muse-wonder via pi (thinking high). Both found the same staleness and the unsafe install order, and I checked each point above against What happens next is up to you. The page could be reworked to describe what |
Adds
docs/realtime-priority.md: where the realtime budget comes from (rtkit-daemon→xdg-desktop-portal→libpipewire-module-rt), what a zero budget does toRLIMIT_RTTIME, and why that surfaces as randomSIGKILLs in apps launched from the shell.The failure mode is worth writing down because nothing reports it: the kernel sends the signal in the victim's own context, so there is no journal line naming a sender, no core dump,
systemd-oomdand the cgroup OOM counters stay at zero, and Chromium/Electron reportreason: 'killed', code: 9— the same9a crashed Chrome tab shows.Since
omarchy-shellis a PipeWire client, the zero limit is inherited by everything the launcher starts (and by what those apps start, a menu-launched terminal included), so browsers, editors and Electron apps die at random while keybinding-launched apps survive.The page also records the check (
busctlfor the portal budget,/proc/<pid>/limitsfor the shell) and the non-root workaround of keepingmodule-rtout of the client whenrtkitcannot be installed yet.Reproduced on Omarchy 4.0.6 (x86, Intel TigerLake, Hyprland/Wayland) with Google Chrome 156 and VS Code:
rtkitnot installed, portal answeredRTTimeUSecMax=0,MaxRealtimeTimeoutwas0forquickshell,chromeandcode, and Chrome tabs and VS Code windows died withkilled, code 9with no core and no OOM involved.Refs #16348, #12443, #9390. Related fix: #16353.