Skip to content

perf(supervisor): shared-supervisor cost measurement harness #5956

Backlog

Description

@EmilienM

User Story

From the scale test in #5660: I run shared supervisor pools on Kubernetes and need per-sandbox cost numbers (threads, fds, sockets, memory) captured the same way before and after each fix, so the PR series in #5660 carries evidence rather than assertions.

Description

Add a repeatable measurement harness for per-sandbox supervisor cost at a given sandbox count.

Context

Parent: #5660 (PR 0 of the split in the build-plan comment there). Groundwork for the thread fix. The per-thread comm dump also answers which the 4th idle thread per sandbox is.

Definition of Done

  • Test-gated /proc/self census helper in openshell-supervisor (threads, thread names, fds, sockets, RSS), for the baseline test and the later thread-count assertions; not shipped in the production binary
  • #[ignore]d baseline test in the sandbox_instance_host test rig counting cost at N instances (N parameterized; precedent: proxy_performance_baseline)
  • Scale Helm overlay raising supervisor.pool.maxInstancesPerMember to 256, pinned across runs (automated coverage: helm lint and render only)
  • kind-based script creating N sandboxes and capturing the census out-of-band (kubectl debug --target=supervisor reading /proc/1 directly), results under a stable path
  • Before-numbers posted here from main at the highest locally feasible N, including per-thread comm names

Activity

  1. added
    state:triage-needed
    on Nov 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

    state:triage-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions