~/talk

Where’s All My Memory Gone? Mapping K8s Memory Metrics To Physical Resources

links:none on file
slides:none on file

Prometheus reads container_memory_working_set_bytes from cAdvisor (exposed by kubelet), which computes it from cgroup stats: on v2 memory.current minus inactive_file (v1 uses usage minus total_inactive_file). The pipeline involves node_exporter (not containers), libcontainer/runC, and kubelet; minikube and kubectl proxy are useful for inspection. The metric is a heuristic tied to Linux OOM scoring and QoS classes, and a small cgroup-monitoring tool demonstrates it reliably but not perfectly.

AI-written summary · about

  1. 0:00Kubernetes memory metrics intro
  2. 1:08Container memory working set
  3. 3:19Metrics pipeline sources
  4. 6:34CAdvisor memory collection
  5. 8:19CAdvisor memory working set
  6. 10:03Linux cgroups accounting
  7. 12:52Kubernetes quality of service classes
  8. 15:00Cgroups memory stats
  9. 17:32Physical vs virtual memory
  10. 20:03Memory overcommit page faults
  11. 22:12Shared memory challenges
  12. 23:16File cache reclaimable memory
  13. 24:20Mapping to Prometheus metrics
  14. 26:07Analysis tools resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.