Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
Server: machine load warnings (apps/server/src/resourceTelemetry/HostResources.ts), web sidebar warning
Steps to reproduce
- Run the T3 server inside an LXC container (here a Proxmox VE 9 container on cgroup v2) whose root filesystem is on a disk that other guests or the host do not use.
- On the host, run heavy I/O against a different disk. For example, read a large file from a separate HDD:
sha256sum /path/on/other/disk/8GB.bin. - Inside the container, compare
/proc/pressure/iowith the container's own/sys/fs/cgroup/io.pressure. - Look at the sidebar, or at
machine.pressurefromt3_environment_read.
Expected behavior
The I/O warning should describe the machine that T3 runs on, which inside a container means the container's cgroup. Busy disks elsewhere on the host should not trigger it.
samplePressure already reads the server's own cgroup for CPU (cpu.max and cpu.stat) and memory (memory.max and memory.current), with the comment that the cgroup "is / inside a container". I/O should do the same: read ${cgroup}/io.pressure, or at least treat it as authoritative when it is readable and the server is inside a container.
Actual behavior
samplePressure reads /proc/pressure/io. Inside an LXC container this file is not namespaced and reports the whole host. The sidebar shows " is overloaded. Work waits on disk reads and writes most of the time, so agents run slowly." while the container itself is barely waiting on I/O.
Observed during one episode:
| Signal (read inside the container) | Value |
|---|---|
/proc/pressure/io full |
avg10 ~60%, avg60 ~55%, above the 30% threshold |
/sys/fs/cgroup/io.pressure full (the container's own) |
avg60 ~4.5% |
Per-process read_bytes/write_bytes in the container over 10 s |
under 0.1 MB/s in total |
| Host: the container's ZFS pool (NVMe mirror) | ~1% util |
| Host: an unrelated HDD read by a host process | ~85% util, ~170 MB/s |
When the host job finished, /proc/pressure/io dropped below 10% and the warning cleared. Nothing inside the container changed.
Impact
Every container deployment (LXC, Proxmox, and probably any runtime that does not virtualize /proc/pressure) shows a misleading "overloaded" banner whenever a neighbour or the host does heavy disk work, such as nightly backups, media copies or scrubs. Users go looking for a problem inside T3 that is not there. CPU and memory already account for the container's cgroup, so only I/O gives the wrong answer.
Version or commit
v0.1.14-nightly.20261128.5413; the same code is on main at 58a4e599 (HostResources.ts:336, ioFull: psiAverage(ioPsi, "full", "avg60")).
Environment
Proxmox VE 9.2 host, kernel 7.0.14-pve, unprivileged Debian 12 LXC container on cgroup v2, T3 server run directly (not under the agents slice).
Logs or stack traces
No response
Screenshots, recordings, or supporting files
No response
Workaround
None in T3. Ignore the I/O banner when the container's own /sys/fs/cgroup/io.pressure is low.
Related but distinct: #44899 (host PSI raised by idle io_uring waiters). The io_ticks check proposed there would not catch this case, because a host disk really is busy, just not one the container uses.
Activity