Dashboardopencode-loreopencode.service diagnostic cgroup cont…

opencode.service diagnostic cgroup contamination

Category: gotcha
Confidence: 1.00
ID: 01a0a5ee-eecb-73db-9f9b-277912ff9608
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 0aUYcTSjThOuETAW6
Created: 2026-09-15 16:38:14
Updated: 2026-09-15 16:38:14

Content

Trap: treating changes in memory.events, PSI, reclaim, or swap during diagnosis as pure OpenCode workload evidence looks right because the assessment is read-only. Fix: check /proc/self/cgroup first; diagnostics launched inside opencode.service share its memory accounting and can trigger reclaim, so use snapshots as bounded evidence and never infer an uncontaminated event rate.

Move to: