Skip to content

fix(box): new terminals no longer open with a systemd CPUAccounting warning - #116

Merged
sean-brydon merged 1 commit into
mainfrom
fix/box-cpu-accounting-warning
Oct 15, 2026
Merged

sean-brydon merged 1 commit into
mainfrom
fix/box-cpu-accounting-warning

Conversation

@pumfleet

Copy link
Copy Markdown
Contributor

On boxes with systemd 258 or later (seen on 259), every new tab printed:

D-Bus property CPUAccounting is deprecated, ignoring assignment: CPUAccounting=yes

It comes from the systemd-run --scope … -p CPUAccounting=yes that wraps each session (internal/box/scopes.go). --quiet doesn't hide it. CPU accounting is always on under cgroup v2, so the property did nothing, and berth's usage numbers read cpu.stat's usage_usec, which the cgroup has without it.

  • Drop -p CPUAccounting=yes from systemdScopes.Wrap (MemoryAccounting=yes stays).
  • Changelog entry under Unreleased.

Checked by hand on systemd 259: the old flags print the warning; the new ones don't, and the scope's cpu.stat (usage_usec) and memory.current are still there. go vet/go test weren't run locally (no Go toolchain on that box); CI covers them.

🤖 Generated with Claude Code

…arning

systemd 258 and later deprecate CPUAccounting= (cgroup v2 always counts
CPU time), and systemd-run printed "D-Bus property CPUAccounting is
deprecated" into every new pane, --quiet or not. Session scopes no longer
ask for it; cpu.stat's usage_usec is there without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
berth Ready Ready Preview Oct 15, 2026 12:37pm UTC
berth-docs Ready Ready Preview Oct 15, 2026 12:37pm UTC

Request Review

@sean-brydon
sean-brydon merged commit cebeb22 into main Oct 15, 2026
8 checks passed
@linear-code

linear-code Bot commented Oct 15, 2026

Copy link
Copy Markdown

ENG-6199

This branch was successfully deployed

2 active deployments
Preview – berth-docs — 8d2e8dcb Deployed Oct 15, 2026 by vercel[bot]
Preview – berth — 8d2e8dcb Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants