Skip to content

Allow host-managed agent slice memory policy without runtime MemoryHigh override #24708

Closed

Description

@kvnloo

The Linux agentScope implementation unconditionally calls systemctl --user set-property --runtime app-t3code-agents.slice MemoryHigh= MemoryMax=. These generated user.control drop-ins outrank administrator-managed user drop-ins. There is no configuration seam in agentSliceMemoryLimits or the set-property call to respect a host-wide resource budget or disable MemoryHigh reclaim throttling. On a shared desktop this can conflict with independent inference/agent budgets; MemoryHigh reclaim can livelock indexing/tool workloads instead of enforcing a predictable hard ceiling. Please allow an explicit host-managed policy mode (do not generate these two runtime overrides), or configurable high/max values including high=infinity. Preserve per-thread scope lifecycle/OOM handling. Source: apps/server/src/process/agentScope.ts, agentSliceMemoryLimits and cached systemd initialization. Reproduction: install a user drop-in with MemoryHigh=infinity and a smaller hard MemoryMax, then initialize an agent; show properties and runtime user.control files demonstrate the override. No private host identifiers or workload data are needed to reproduce.

Activity

  1. locked and limited conversation to collaborators on Oct 25, 2026
  2. converted this issue into a discussion #24757 on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions