Skip to content

Commit eb3287d

Browse files
docs(server): agent slice weights need delegated cgroup controllers
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 829620c commit eb3287d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/server/src/process/agentScope.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ import * as ProcessRunner from "../processRunner.ts";
2121
const AGENT_SLICE = "app-t3code-agents.slice";
2222
// Owns every agent slice and competes with the server's unit or scope under app.slice.
2323
const AGENTS_PARENT_SLICE = "app-t3code.slice";
24-
// Low weights yield CPU and disk to the server only under contention. TasksMax
25-
// keeps agents below logind's 33% per-user task limit, leaving forks for the server.
24+
// Low weights yield CPU and disk to the server under contention, where the user manager
25+
// has those controllers: current systemd delegates cpu, rarely io. TasksMax keeps agents
26+
// below logind's 33% per-user task limit, leaving forks for the server.
2627
const AGENTS_PARENT_PROPERTIES = ["CPUWeight=10", "IOWeight=10", "TasksMax=25%"];
2728

2829
export function ownedAgentSlice(stateDir: string): string {

0 commit comments

Comments
 (0)