You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: "Overloaded" warning is a false positive when an app waits in io_uring (e.g. Ghostty) #44899
T3 Code shows the "Equipo sobrecargado" (overloaded) warning, saying agents are slow because work is waiting on disk reads/writes, while the disk is idle. The warning is driven by Linux I/O pressure (PSI), and that pressure comes from Ghostty idling in io_uring, not from real disk activity. Agents are not actually slowed down.
Related: the pressure-stall reporting design in #25918.
Steps to reproduce
On Linux 6.x/7.x, close every Ghostty window and run watch -n2 head -1 /proc/pressure/io. It stays near 0%.
Open one Ghostty window (default async-backend = auto, which uses io_uring) and leave it idle.
Within ~30 s, some avg10 climbs to ~77% and T3 Code shows the overloaded warning.
kill -STOP <ghostty pid> makes the pressure drop, kill -CONT brings it back, and closing Ghostty clears it.
Expected behavior
No overloaded warning when the disk is idle and agents are not waiting on real I/O.
Actual behavior
The warning appears and stays as long as any Ghostty window is open. During the reproduction, the NVMe disk wrote only about 1–3 MB every 2 s, with no request queue, and threads spent about 0.3 s in real block I/O wait per 10 s across the whole system.
Why
Ghostty's io and renderer threads sleep in io_uring_enter (io_cqring_wait) with a request in flight, so the kernel counts that idle wait as iowait and it shows up in PSI io. Any app using io_uring this way can trigger the warning. This is known upstream and Ghostty won't change it: maintainers call the reported I/O pressure "a lie" (ghostty-org/ghostty#9474, ghostty-org/ghostty#10700), and libxev only has an open opt-in PR (mitchellh/libxev#216, mitchellh/libxev#258).
Suggestion
Don't rely on PSI io alone. Before showing the warning, also check real disk activity, for example utilization or in-flight requests from /sys/block/*/stat or /proc/diskstats.
Impact
A false alarm that sends users looking for a disk problem that doesn't exist. It is likely common on Linux, since Ghostty is a popular terminal and uses io_uring by default.
Workaround
Set async-backend = epoll in the Ghostty config and restart Ghostty.
A fix for this was proposed in #44970, but when the reported steps were run in the real app the problem did not appear.
What was run on c1cce2e8c6, the commit before this change:
Connected both clients and waited for startup pressure to settle. Opened one idle Ghostty window using its default io_uring backend for 100 seconds, switched to epoll for 160 seconds, then closed it. Also ran an idle default-shell window for 100 seconds and reopened it for approximately 146 seconds. Sampled PSI and whole-disk counters and recorded both clients. Neither commit displayed the overloaded warning. Default-shell samples peaked at 28.22% I/O full avg60, below the 30% severe threshold; the epoll control returned below 1%.
How: Manual real-app comparison: separate dev servers and fresh databases, Chromium clients at 1280x800 with light theme, Linux 6.8.0-117-generic, real Ghostty 1.3.1 under Xvfb. Both clients observed the same host concurrently. No agents were running and no telemetry was mocked.
Could you share the exact steps, what you see, and the version and platform you are on? The pull request is closed for now; the fix is picked up again once the problem can be shown.
I can reproduce this on my machine. The banner reads " is overloaded. Work waits on disk reads and writes most of the time, so agents run slowly." It stays up while the machine is idle.
Versions
T3 Code v0.1.14-nightly.20261128.5385
Linux 7.2.15 (Arch / Omarchy)
Ghostty 1.4.0 on its default io_uring backend, running as a single-instance user service (--gtk-single-instance=true)
Measurements (machine idle, no agents running)
Signal
Value
/proc/pressure/io full
avg10 50.5%, avg60 57.0%, avg300 32.6% (over your 30% threshold)
io.pressure full in Ghostty's cgroup (app-com.mitchellh.ghostty.service)
avg10 99.2%, avg60 97.7%
procs_blocked in /proc/stat
2
Tasks in D state, all threads
none
NVMe io_ticks (/proc/diskstats)
about 25 ms of work in 3 s, so the disk is idle
Memory / CPU PSI
about 0
The two "blocked" tasks are Ghostty's renderer and io threads. Both are idle in io_cqring_wait. All of the system-wide I/O pressure comes from Ghostty's cgroup.
Why your run may not have shown it
Your run was on kernel 6.8 with Ghostty 1.3.1 and peaked at 28.22% full avg60. I'm on 7.2 with Ghostty 1.4.0 and get about 57% from a single long-lived Ghostty instance. The kernel version or the Ghostty version likely changes whether waiting in io_uring counts as iowait, so on 6.8 it stays just under the threshold.
Steps
Run Ghostty as a single-instance service (Omarchy's default) on a recent kernel.
Leave it idle and watch cat /proc/pressure/io and Ghostty's cgroup io.pressure.
T3 shows the overloaded banner even though the disk is idle.
Possible fix
Only treat I/O pressure as overload when the disk is also busy, judged from io_ticks in /proc/diskstats, or when there are real D-state tasks.
Another reproduction. The pressure stays well above the 30% threshold while the disk is idle, and the number of blocked threads goes up with every Ghostty tab.
Versions
T3 Code 0.1.14-nightly.20261128.5413
Linux 7.3.6-3-cachyos (Arch-based), btrfs on NVMe
Ghostty 1.4.0 (Arch package), default io_uring backend, running as a single-instance user service (--gtk-single-instance=true --initial-window=false)
Measurements (no agents running, disk idle)
Signal
2 surfaces
1 window with 8 tabs (measured 17 min after Ghostty restarted)
/proc/pressure/io full
avg10 72%, avg60 70%, avg300 68%
avg10 72.5%, avg60 72.8%, avg300 72.7%
io.pressure full in app-com.mitchellh.ghostty.service
—
avg300 79%
procs_blocked
4
16
Threads in io_cqring_wait
4 (2× renderer, 2× io)
16 (8× renderer, 8× io)
Tasks in D state
0
0
NVMe busy time (io_ticks)
~0
4 ms in 10 s (0.04%)
Memory / CPU PSI
~0
0
Each Ghostty surface (tab) adds one renderer and one io thread, and both wait idle in io_cqring_wait. procs_blocked is therefore exactly 2 × the number of tabs. The pressure percentage itself barely changes with the tab count, at about 70–73% with either 2 or 8 surfaces. Restarting Ghostty brings it straight back. Ghostty's cgroup carries the same pressure as the whole system.
Leaving Ghostty idle on kernel 7.x is enough to keep the banner up permanently. On 6.8 with Ghostty 1.3.1 (the earlier test), pressure stayed below the threshold.
Investigated and written by an LLM agent: claude (opus-5.5) via T3 Code. Measurements were taken on my machine, and the comment was posted at my request.
I see this too, on a second distro. The banner reads "Machine overloaded. Work waits on disk reads and writes most of the time, so agents run slowly." It stays up while the machine is idle.
Versions
T3 Code desktop 0.1.14-nightly.20261129.5425 (AppImage)
Fedora 45, KDE Plasma on Wayland, kernel 7.3.6-300.fc45.x86_64
Measurements (idle machine, no agents running, file indexer idle)
Signal
Value
/proc/pressure/io full
avg10 71.3%, avg60 76.7%, avg300 71.7% (threshold is 30%)
io.pressure full in Ghostty's cgroup
avg10 85.0%, avg60 89.4%
NVMe io_ticks (/proc/diskstats)
71 ms busy in 10 s (0.7%), 12 MiB written
procs_blocked in /proc/stat
2
Tasks in D state, all threads
0
Memory / CPU PSI some avg60
0.00% / 0.25%
The 2 "blocked" tasks are Ghostty's renderer and io threads. Both are in state S inside io_uring_enter (syscall 426 in /proc/<tid>/syscall). T3 Code's own processes also hold io_uring rings, but their cgroup shows almost no io pressure.
A possible reason for the failed repro: it ran on Linux 6.8 with Ghostty 1.3.1 and peaked at 28.22% full avg60, just under the threshold. On 7.2 and 7.3 with Ghostty 1.4.0, two of us now see 57% and 77%. The kernel and Ghostty versions look like they matter.
To check on an idle machine:
Open one Ghostty window and leave it idle for about a minute.
Compare head -2 /proc/pressure/io with the whole-disk busy time. Read field 13 of /proc/diskstats twice, a few seconds apart.
Read grep procs_blocked /proc/stat and check that no thread is in D state.
A fix for this was proposed in #44970, but when the reported steps were run in the real app the problem did not appear.
[...] Neither commit displayed the overloaded warning. Default-shell samples peaked at 28.22% I/O full avg60, below the 30% severe threshold; the epoll control returned below 1%.
Another reproduction. This one isolates the variable behind the failed repro: I'm on the same Ghostty 1.3.1 as the maintainer's test, but on kernel 7.0, and the pressure is far above the threshold. So the kernel version decides it, not the Ghostty version.
Versions
T3 Code 0.1.14-nightly.20261129.5452 (desktop, .deb)
Ubuntu 24.04.5 LTS, kernel 7.0.0-42-generic, NVMe
Ghostty 1.3.1, default io_uring backend (no async-backend set), single-instance user service (--gtk-single-instance=true --initial-window=false)
Activity
juliusmarminge commentedon Nov 28, 2026
A fix for this was proposed in #44970, but when the reported steps were run in the real app the problem did not appear.
What was run on
c1cce2e8c6, the commit before this change:Connected both clients and waited for startup pressure to settle. Opened one idle Ghostty window using its default io_uring backend for 100 seconds, switched to epoll for 160 seconds, then closed it. Also ran an idle default-shell window for 100 seconds and reopened it for approximately 146 seconds. Sampled PSI and whole-disk counters and recorded both clients. Neither commit displayed the overloaded warning. Default-shell samples peaked at 28.22% I/O full avg60, below the 30% severe threshold; the epoll control returned below 1%.
How: Manual real-app comparison: separate dev servers and fresh databases, Chromium clients at 1280x800 with light theme, Linux 6.8.0-117-generic, real Ghostty 1.3.1 under Xvfb. Both clients observed the same host concurrently. No agents were running and no telemetry was mocked.
Could you share the exact steps, what you see, and the version and platform you are on? The pull request is closed for now; the fix is picked up again once the problem can be shown.
vivalareda commentedon Nov 28, 2026
I can reproduce this on my machine. The banner reads " is overloaded. Work waits on disk reads and writes most of the time, so agents run slowly." It stays up while the machine is idle.
Versions
v0.1.14-nightly.20261128.53857.2.15(Arch / Omarchy)1.4.0on its default io_uring backend, running as a single-instance user service (--gtk-single-instance=true)Measurements (machine idle, no agents running)
/proc/pressure/iofullio.pressurefull in Ghostty's cgroup (app-com.mitchellh.ghostty.service)procs_blockedin/proc/statDstate, all threadsio_ticks(/proc/diskstats)The two "blocked" tasks are Ghostty's
rendererandiothreads. Both are idle inio_cqring_wait. All of the system-wide I/O pressure comes from Ghostty's cgroup.Why your run may not have shown it
Your run was on kernel 6.8 with Ghostty 1.3.1 and peaked at 28.22% full avg60. I'm on 7.2 with Ghostty 1.4.0 and get about 57% from a single long-lived Ghostty instance. The kernel version or the Ghostty version likely changes whether waiting in io_uring counts as iowait, so on 6.8 it stays just under the threshold.
Steps
cat /proc/pressure/ioand Ghostty's cgroupio.pressure.Possible fix
Only treat I/O pressure as overload when the disk is also busy, judged from
io_ticksin/proc/diskstats, or when there are realD-state tasks.sliva0 commentedon Nov 29, 2026
Another reproduction. The pressure stays well above the 30% threshold while the disk is idle, and the number of blocked threads goes up with every Ghostty tab.
Versions
0.1.14-nightly.20261128.54137.3.6-3-cachyos(Arch-based), btrfs on NVMe1.4.0(Arch package), default io_uring backend, running as a single-instance user service (--gtk-single-instance=true --initial-window=false)Measurements (no agents running, disk idle)
/proc/pressure/iofullio.pressurefull inapp-com.mitchellh.ghostty.serviceprocs_blockedio_cqring_waitrenderer, 2×io)renderer, 8×io)Dstateio_ticks)Each Ghostty surface (tab) adds one
rendererand oneiothread, and both wait idle inio_cqring_wait.procs_blockedis therefore exactly 2 × the number of tabs. The pressure percentage itself barely changes with the tab count, at about 70–73% with either 2 or 8 surfaces. Restarting Ghostty brings it straight back. Ghostty's cgroup carries the same pressure as the whole system.Leaving Ghostty idle on kernel 7.x is enough to keep the banner up permanently. On 6.8 with Ghostty 1.3.1 (the earlier test), pressure stayed below the threshold.
To see the waiting threads:
+1 to gating the warning on real disk activity (
io_ticksin/proc/diskstats) or on actualD-state tasks. Here, IO pressure "full" was about 73% while the disk was busy 0.04% of the time. Upstream also considers this an accounting artifact. On LKML, Jens Axboe calls it "the useless iowait metric" (https://lkml.iu.edu/hypermail/linux/kernel/2604.0/01352.html).Investigated and written by an LLM agent: claude (opus-5.5) via T3 Code. Measurements were taken on my machine, and the comment was posted at my request.
0xKa commentedon Nov 29, 2026
I see this too, on a second distro. The banner reads "Machine overloaded. Work waits on disk reads and writes most of the time, so agents run slowly." It stays up while the machine is idle.
Versions
0.1.14-nightly.20261129.5425(AppImage)7.3.6-300.fc45.x86_641.4.0(Fedora packageghostty-1.4.0-2.fc45), default io_uring backend, running asapp-com.mitchellh.ghostty.serviceMeasurements (idle machine, no agents running, file indexer idle)
/proc/pressure/iofullio.pressurefull in Ghostty's cgroupio_ticks(/proc/diskstats)procs_blockedin/proc/statDstate, all threadssomeavg60The 2 "blocked" tasks are Ghostty's
rendererandiothreads. Both are in stateSinsideio_uring_enter(syscall 426 in/proc/<tid>/syscall). T3 Code's own processes also hold io_uring rings, but their cgroup shows almost no io pressure.A possible reason for the failed repro: it ran on Linux 6.8 with Ghostty 1.3.1 and peaked at 28.22% full avg60, just under the threshold. On 7.2 and 7.3 with Ghostty 1.4.0, two of us now see 57% and 77%. The kernel and Ghostty versions look like they matter.
To check on an idle machine:
head -2 /proc/pressure/iowith the whole-disk busy time. Read field 13 of/proc/diskstatstwice, a few seconds apart.grep procs_blocked /proc/statand check that no thread is inDstate.enduity commentedon Nov 29, 2026
@juliusmarminge
Surely 28.22% is close enough to the 30% threshold to explain a warning being shown on real systems?
lgwacker commentedon Nov 29, 2026
Another reproduction. This one isolates the variable behind the failed repro: I'm on the same Ghostty 1.3.1 as the maintainer's test, but on kernel 7.0, and the pressure is far above the threshold. So the kernel version decides it, not the Ghostty version.
Versions
0.1.14-nightly.20261129.5452(desktop, .deb)7.0.0-42-generic, NVMe1.3.1, default io_uring backend (noasync-backendset), single-instance user service (--gtk-single-instance=true --initial-window=false)Measurements (idle machine, no agents running)
/proc/pressure/iofullio.pressurefull inapp-com.mitchellh.ghostty.serviceprocs_blockedio_cqring_waitrenderer, 2×io)Dstateio_ticks)#44917 and #44912 already gate the warning on real disk activity; that would clear it here, since the disk is busy 0.57% of the time.
Investigated and written by an LLM agent (Claude via T3 Code). Measurements were taken on my machine, and the comment was posted at my request.