Skip to content

Instantly share code, notes, and snippets.

@dims
dims / go-runtime-profile-rate-false-sharing.md
Created November 24, 2026 21:36
Go runtime: false sharing between profBlockLock and the block and mutex profile rates

Go runtime: false sharing between profBlockLock and the profile rates (2026-11-24)

With the block profile on, the speed of every channel operation and every runtime unlock in a Go program depends on where the linker happens to put three runtime globals. In an unlucky build they share a 64 byte cache line, and those operations get about 3 times slower. It is in every Go release since go1.19, it got worse in go1.25, and Go master still has it.

@dims
dims / vanity.md
Created October 21, 2026 19:21
How `k8s.io` and `sigs.k8s.io` Serve Go Vanity Imports

How k8s.io and sigs.k8s.io Serve Go Vanity Imports

A walkthrough of the Kubernetes project's vanity-import redirector, as it exists in kubernetes/k8s.io under apps/k8s-io/ (checked against main at commit 7753da3e, 2026-10-21). All file links below point at main; line numbers were correct at that commit and may drift.

Every import "k8s.io/client-go/..." and import "sigs.k8s.io/kind/..." in the Go ecosystem resolves through this setup. It is remarkably small: one nginx config, one Deployment, one Ingress, one managed certificate, and a Python test file.

@dims
dims / ci-fixes-since-v137-code-freeze-2026-08-03.md
Created August 3, 2026 13:58
Kubernetes CI: fixed since v1.37 code freeze (2026-07-22 → 2026-08-03) — wins, verification, call to action

Kubernetes CI: Fixed Since v1.37 Code Freeze — Wins, Verification, and Call to Action

Window: 2026-07-22 (Code Freeze AoE; enforced 2026-07-23 12:00 UTC via test-infra#37475) → 2026-08-03 Release: v1.37 Compiled: 2026-08-03 (~13:30 UTC data). All "status now" claims verified against live prow job history, TestGrid summary JSON, k8s-triage failure_data.json (2026-08-03 11:43 UTC), and k8s-metrics (2026-08-03 12:05 UTC).


TL;DR (for the email)

@dims
dims / README.md
Last active July 30, 2026 22:05
copyconstruct-debugging: Claude Code skill for debugging tricky bugs (diagnosis before remedy, fail-first verification)

copyconstruct-debugging

A Claude Code skill that enforces debugging discipline on hard bugs — memory leaks, races, routing/sharding issues, regressions. Diagnosis before remedy, evidence ranking, contradiction chasing, fail-first verification.

Inspired by Cindy Sridharan (@copyconstruct)'s post observing that Claude's initial analysis on tricky bugs is almost always wrong until you feed it hypotheses, clues, and suggestions. These are the generalized principles Claude itself distilled when asked: "so, what did you learn?"

Install as a Claude Code skill

mkdir -p ~/.claude/skills/copyconstruct-debugging
@dims
dims / 2026-07-24-enroot-libnvidia-container-cdi.md
Created July 24, 2026 22:28
Enroot, libnvidia-container, and a path to CDI — architecture notes and migration design

Enroot, libnvidia-container, and a path to CDI

Date: 2026-07-24

Sources examined at these versions:

  • enroot at commit ead3a25 (v4.2.0), /Users/dsrinivas/go/src/github.com/nvidia/enroot
  • libnvidia-container at commit 3e428194 (v1.19.1 plus 26 commits), /Users/dsrinivas/go/src/github.com/nvidia/libnvidia-container
  • nvidia-container-toolkit at commit da5f20fb (after v1.19.0), /Users/dsrinivas/go/src/github.com/nvidia/nvidia-container-toolkit
@dims
dims / dataplane-pluggability.md
Last active June 28, 2026 13:37
Agent Substrate — Dataplane Pluggability (design doc, proposed)

Dataplane Pluggability

Status: Proposed, for review. This is an RFC, a position proposal. It is not an approvable architecture decision record, and it is not a contract. Several questions below, including who owns capacity, the lifecycle shape, and how providers are discovered, can still change what the chosen boundary means in practice. The contract sketches in it are illustrative, and a number of questions are still open (see Open questions). The target design is not built yet. What exists on main today is described in The dataplane today and [Current

@dims
dims / 2026-06-25-microvm-pr287-runbook.md
Last active June 25, 2026 16:05
Agent Substrate micro-VM (PR #287) runbook on a kind cluster: counter-microvm + OpenShell helpdesk-microvm demos, validated end-to-end (suspend/resume of cloud-hypervisor VM snapshots).

Micro-VM (substrate PR #287) on bigbox — runbook

Stand up the agent-substrate micro-VM runtime (cloud-hypervisor + kata-agent, PR #287) on a kind cluster on bigbox and run two demos, then tear it down:

  • Part A — counter-microvm: in-RAM counter → suspend (VM memory snapshot) → resume on another worker → count continues. The runtime's own demo; pure substrate.
  • Part B — helpdesk-microvm: the OpenShell helpdesk agent running as a micro-VM actor → /status + /chat (real gpt-oss:20b-cloud completions via Ollama Cloud) → suspend → resume → state continues. Proves a real ~3 GB agent workload boots, does name-based egress, snapshots, and
@dims
dims / criu-checkpoint-restore-design.md
Created June 10, 2026 17:32
Kata Containers CRIU checkpoint/restore — design + intern test guide (PoC: dims/kata-containers criu-cr-containerd)

CRIU Checkpoint / Restore for Kata Containers

Status: prototype against Kata 3.31.0 (runtime-rs). Validated end-to-end (via shim-ctl): a counter's in-memory state survives 3 checkpoint/restore cycles (monotonic, no reset), a live TCP LISTEN socket survives, a ~10 MB memory buffer survives, and a checkpoint restores in a fresh microVM (migration-style). Engine-driven: both ctr (containerd native) and crictl (CRI, no kubelet) do the full checkpoint→restore cycle with the counter surviving; crictl restore needs containerd ≥ 2.3.0. See Proof of concept for the branches.

Motivation

@dims
dims / 2026-06-03-substrate-cross-vendor-contributors.md
Created June 4, 2026 13:35
Agent Substrate (agent-substrate/substrate) — Cross-Vendor Contributor & Affiliation Report (2026-06-03)

Agent Substrate — Cross-Vendor Contributor & Affiliation Report

Generated: 2026-06-03 Repo: agent-substrate/substrate — "Agent Substrate: the core system" (public, 468★, Apache-2.0) What it is: a system on top of Kubernetes that manages agent-like workloads at higher scale/lower latency by taking the K8s control-plane out of the critical path — actors run in gVisor sandboxes (ateom), managed by a kubelet-like agent (atelet), with GCS checkpoint/restore (ategcs) and a router (atenet). Window: 2026-05-13 → 2026-06-03 (~3 weeks — a brand-new seed project) Volume analyzed: 95 commits · 117 PRs (all states) · 63 issues (all states) Analysis basis: upstream agent-substrate/substrate@main (e26cfa22), cloned fresh — the local dims/substrate fork checkout (4cbac18) was a few commits behind.

Framing: Unlike the NVIDIA-owned reports (nvsentinel / dra-driver / aicr / OpenShell), this repo is not NVIDIA-owned — it's a

@dims
dims / external-contributor-report.md
Created June 3, 2026 14:40
OpenShell (NVIDIA/OpenShell) — External Contributor & DCO-Hygiene Report (2026-05-26)

External Contributor & DCO-Hygiene Report — nvidia/OpenShell

  • Generated: 2026-05-26
  • Repository: nvidia/OpenShell (working copy: /Users/dsrinivas/go/src/github.com/nvidia/OpenShell)
  • Total commits analyzed (full main history): 754
  • Total unique commit-author emails: 58
  • Total unique GitHub handles (resolved): 51 (excluding bots)

Methodology summary