Skip to content

[Bug]: "Overloaded" warning is a false positive when an app waits in io_uring (e.g. Ghostty) #44899

Description

@negativems

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.

t3_warning

Related: the pressure-stall reporting design in #25918.

Steps to reproduce

  1. On Linux 6.x/7.x, close every Ghostty window and run watch -n2 head -1 /proc/pressure/io. It stays near 0%.
  2. Open one Ghostty window (default async-backend = auto, which uses io_uring) and leave it idle.
  3. Within ~30 s, some avg10 climbs to ~77% and T3 Code shows the overloaded warning.
  4. 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.

psi_chart

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.

Version

0.1.14-nightly.20261128.5385

Environment

Arch Linux, kernel 7.3.6-arch1-1, Hyprland, Ghostty 1.4.0.

Activity

  1. juliusmarminge commented on Nov 28, 2026

    @juliusmarminge
    Member

    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.

  2. added
    needs more info
    on Nov 28, 2026
  3. vivalareda commented on Nov 28, 2026

    @vivalareda

    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

    1. Run Ghostty as a single-instance service (Omarchy's default) on a recent kernel.
    2. Leave it idle and watch cat /proc/pressure/io and Ghostty's cgroup io.pressure.
    3. 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.

  4. sliva0 commented on Nov 29, 2026

    @sliva0

    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.

    To see the waiting threads:

    for f in /proc/[0-9]*/task/[0-9]*/wchan; do grep -q io_cqring_wait "$f" 2>/dev/null && echo "$f $(cat ${f%wchan}comm)"; done

    +1 to gating the warning on real disk activity (io_ticks in /proc/diskstats) or on actual D-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.

  5. removed
    needs more info
    on Nov 29, 2026
  6. 0xKa commented on Nov 29, 2026

    @0xKa
    Contributor

    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
    • Ghostty 1.4.0 (Fedora package ghostty-1.4.0-2.fc45), default io_uring backend, running as app-com.mitchellh.ghostty.service
    • Disk: NVMe, btrfs on LUKS

    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:

    1. Open one Ghostty window and leave it idle for about a minute.
    2. Compare head -2 /proc/pressure/io with the whole-disk busy time. Read field 13 of /proc/diskstats twice, a few seconds apart.
    3. Read grep procs_blocked /proc/stat and check that no thread is in D state.
  7. enduity commented on Nov 29, 2026

    @enduity

    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%.

    @juliusmarminge

    Surely 28.22% is close enough to the 30% threshold to explain a warning being shown on real systems?

  8. lgwacker commented on Nov 29, 2026

    @lgwacker

    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)

    Measurements (idle machine, no agents running)

    Signal Value
    /proc/pressure/io full avg10 80.6%, avg60 84.7%, avg300 84.0% (threshold 30%)
    io.pressure full in app-com.mitchellh.ghostty.service avg10/avg60/avg300 ≈ 99%
    procs_blocked 4
    Threads in io_cqring_wait 4 (2× renderer, 2× io)
    Tasks in D state 0
    NVMe busy time (io_ticks) 57 ms in 10 s (0.57%)
    Memory PSI 0
    Setup Ghostty Kernel I/O full avg60
    Maintainer's repro 1.3.1 6.8 28.2% (no banner)
    This machine 1.3.1 7.0 84.7%
    Other reports here 1.4.0 7.2 / 7.3 57–77%

    #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions