~/talk

Chasing Bad Checksums: A Journey Through Ceph, TCMalloc, and the Linux Kernel

Talkat Cephalocon 2023 · 2023-04-16..04-18· [linux-and-operating-systems]
name:Dan Hill
links:none on file
slides:none on file

Cluster runs dozens of nodes and hundreds of OSDs serving ~10 PB and sees about five checksum-crash OSDs per week; lab recreate fails every 3–4 days until adding heavy deletes which reproduces it every 3–4 hours. Root cause is tcmalloc’s madvise_free lazily freeing pages so a concurrent direct I/O write under memory reclaim can return a zeroed page, triggering checksum failures. Mitigations: add RocksDB retry, change madvise to DONTNEED in gperftools, and a kernel patch checking page refcount; upstream fix lands after months.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:06Ceph cluster and issue overview
  3. 3:20Investigating checksum errors
  4. 5:57Reproducing the problem in lab
  5. 7:20Kernel and TCMalloc analysis
  6. 10:58Root cause in the kernel
  7. 13:44Direct I/O and memory reclaim
  8. 15:51The patch and fix
  9. 16:55Backports and status
  10. 17:43Madvise free in other projects
  11. 19:12Q&A
~/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.