DashboardopencodePTY per-unit resource limits

PTY per-unit resource limits

Category: gotcha
Confidence: 1.00
ID: 01a07f7e-4ed5-7e62-9d4e-fe5601a5ab93
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 1
Source session: 0OJYWmHUobcuQ4y8f
Created: 2026-09-08 05:28:47
Updated: 2026-09-08 05:29:39

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 4 1h ago

Content

Trap: aggregate opencode-pty.slice limits and a global session count look sufficient, but sibling transient PTY cgroups share the slice, so one session can consume its entire memory/task allocation and starve others; CPU, I/O, storage, and network may also remain unbounded. Fix: retain aggregate limits and atomic capacity reservation, while assigning every transient unit independent memory/task ceilings plus appropriate CPU, I/O, storage, and network limits.

Move to: