Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Linux Remove topic Linux Clear all 3 posts RSS

July 2022

October 2021

Debugging Systems in the Cloud: MySQL, Kubernetes, and Cgroups

Incident 8 min +80 XP

Slow MySQL Pod startup and degraded query performance on long-running GKE nodes in Shopify's KateSQL platform traced back to a Linux kernel memory cgroup leak: roughly 50K zombie memory cgroups made mem_cgroup_commit_charge slow, so each 128MB mmap during InnoDB buffer pool initialization took about 100 ms. The investigation used strace, perf flamegraphs, slabtop and /proc/cgroups, and Google kernel engineers confirmed it as a side effect of slab reparenting on cgroup removal.

The quest for software engineering knowledge.

Look:
Layout: