Repository navigation
Description
Problem or Motivation
RuntimeClass gvisor (#5431) has no overhead.podFixed, and nobody measured runsc against runc on the cluster. Open gVisor issue gvisor/gvisor#13777 reports that the CPU and memory limits of a pod do not hold under containerd 2.2 with systemd-cgroup. The nodes run containerd 2.3.7. Before the planner run Job (#4003), the in-cluster browser (#5356) or a runner Job sets runtimeClassName: gvisor, a measurement must show that the limits hold, and it must give the overhead of the sandbox.
The parent #2695 records on 2026-11-05: "Rejected: gVisor or Kata through a RuntimeClass". #5431 records the owner decision of 2026-11-13 to use gVisor (runsc). This item is the gate of that decision: no workload uses the class before this item is done.
Proposed Solution
Run a measurement after the infra repository installs runsc on one agent node and sets the node label node-restriction.kubernetes.io/gvisor=true:
- Pin both arms to the one labelled agent node with a
kubernetes.io/hostnamenode selector. Without it, theruncarm can go to the control-plane node, which has 48 CPUs. - Use one image by digest, and pull it on the node before the first timed run.
- Do at least 5 runs of each arm, interleaved, and drop the first run of each arm. Record the load of the node (the GPU and model pods on it) at each run.
- Measure the time from pod create to Ready and to completion, a CPU-bound task, a task with much file I/O (a git clone and a pytest run in the runner image), and the memory.
- Prove the limits in both arms: a CPU limit must throttle (
container_cpu_cfs_throttled_periods_total, or the wall time), and an allocation above the memory limit must end inOOMKilled. - Get
overhead.podFixedfrom the memory of the pod cgroup minus the working set of the container underrunsc. - Read the results from the Job logs (JSON on stdout) and from Prometheus. Do not use
kubectl exec. - Run in a dedicated namespace with a ResourceQuota,
activeDeadlineSecondsandttlSecondsAfterFinished, and delete the namespace at the end. - Start Chromium with
--headlessin therunscarm (the smoke test of feat(k8s): run a pinned Playwright browser server in namespace devops #5356). - Say whether results from an agent node apply to the control-plane node that runs the runner Jobs, because that node has no
runsc.
Then set overhead.podFixed in k8s/runtimeclass-gvisor.yaml, pin it with a test, and record the results in k8s/README.md.
Acceptance Criteria
- The measurement ran on the labelled node with the steps above, and a comment on this issue holds the result table and the Prometheus queries.
- In the
runscarm, a CPU limit throttles, and an allocation above the memory limit ends inOOMKilled. If one of them does not hold, no workload uses the class, and this item names the gVisor issue. - RuntimeClass
gvisorhasoverhead.podFixedfrom the measurement, and a test pins the value. - The adoption items (feat(k8s): manifest and admission policy for planner sandboxed run job #4003, feat(k8s): run a pinned Playwright browser server in namespace devops #5356 and the runner Jobs) name this item as a dependency of their
runtimeClassNamechange.
Existing Tool Considered
kubectl, Kubernetes Jobs and the cAdvisor metrics in Prometheus cover the measurement. It needs no new tool.
Source: #2695
Activity
dan-petty commentedon Nov 13, 2026
Both deal with k8s container limits, but #4991 raises existing limits from observed data while the candidate measures a new runtime's overhead before adoption.feat(k8s): add RuntimeClass gvisor for the runsc nodes (#5436)
dan-petty commentedon Nov 13, 2026
Measurement result: runc and runsc on the gVisor node (2026-11-13 17:29Z to 17:48Z)
Method: one test namespace with interleaved runc and runsc Jobs of the runner image on the node with the label
node-restriction.kubernetes.io/gvisor=true. A runsc canary ran first and reported kernel4.19.0-gvisor, so the sandbox applied. Each table value is the median (min-max), with the first run of cpu, fs and chromium left out. The namespace was deleted at the end.systemd-cgroup=trueLimit of the measurement: the script did not read the CFS throttled-period counter (the column is empty for both arms). The slowdown of more than 2 times proves that the limit holds. It does not give the throttle count.
What follows
overhead.podFixedof RuntimeClassgvisor: memory16Mi(the measured 15.1 MiB, rounded up). No CPU overhead was measured, so the RuntimeClass sets no CPU overhead. This goes in a small PR for this issue.gvisorpods, the runner command allow list gets wider. The compensating controls are the sandbox, the no-egress NetworkPolicy and the namespace with no Secret. The owner approves the entry.devops-cli-service commentedon Nov 13, 2026
Released in v0.132.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.132.0
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 20:55 UTC
fix: split perimeter types and fix the gVisor RuntimeClass (#152)