~/talk

Fragmentation in Ceph: Why It Happens and How We Fix It

Talkat Cephalocon 2025 · 2025-10-28..10-29· [web-performance]
links:none on file
slides:none on file

Fragmentation is a primary root cause of decade‑long Ceph performance regressions, arising in FileStore on XFS and Btrfs from inode splits, allocation group scattering, and copy‑on‑write holes and persisting in BlueStore via small overwrites and free space fragmentation. RocksDB metadata compaction behavior and RocksDB tombstones drive latency spikes until compaction triggers are added. Practical fixes include preallocating SST space, bluestore_min_alloc_size tuning, on‑clone defragmentation versus elastic shared blobs (much lower CPU and clearer clone performance), and defragment‑on‑deep‑scrub with OSD fragmentation score, IOwatcher and IOAT for analysis.

AI-written summary · about

  1. 0:00Introduction and talk overview
  2. 1:03File store fragmentation causes
  3. 7:03BlueStore and RocksDB design
  4. 10:35Copy-on-write fragmentation in BlueStore
  5. 13:02Tombstone handling in RocksDB
  6. 15:54Pre-allocation for RocksDB files
  7. 16:58Defragmenting objects in BlueStore
  8. 19:47RBD mirroring performance fix
  9. 21:52Deep scrub defragmentation
  10. 23:17Compression and defragmentation
  11. 24:00Memory allocation in BlueStore
  12. 25:07Q&A on fragmentation tools
~/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.