~/talk

When Linux Memory Accounting Goes Wrong

Talkat SREcon21 · 2021-10-12..10-14· [linux-and-operating-systems, observability]
links:none on file
slides:none on file

LinkedIn searcher nodes hit host OOMs because cgroup page-cache accounting fails when a container is restarted and its cgroup is deleted and recreated: shared pages remain in RAM but the new cgroup doesn’t claim them. Observed numbers: host shows ~51 GB cgroup usage while application metrics sum to ~63 GB (page cache 44 GB vs cgroup 31 GB). The team reproduces behaviors with a C tester, notes mlockall prevents swapping, adds application index size + RSS monitoring and sets a limit on the parent cgroup as a mitigation.

AI-written summary · about

  1. 0:00Intro
  2. 0:32Search at LinkedIn
  3. 1:52Concepts
  4. 4:18The Problem
  5. 7:06Initial Debugging and Resolution (conto)
  6. 8:33Issue recurrence
  7. 11:43Troubleshooting (contd)
  8. 15:24Memory accounting in cgroups
  9. 17:58Validation
  10. 19:06What happened in our Case
  11. 22:00Mitigation
  12. 24:33Conclusion
~/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.