~/talk

MariaDB 10.6 SUX locks for improved performance

Talkat MariaDB Server Fest 2021 · 2021-10-05..10-06· [databases]
links:none on file
slides:none on file

MariaDB 10.6 replaces fragile home‑brew sync primitives with OS mutexes and condition variables, implements futex-based reader-writer locks for compact page/index latches, and adds recursion, ownership passing and an update (U) latch mode that allows concurrent readers with upgrade/downgrade. Small embedded locks (including 4-byte embedded mutexes) cut buf_block_t size ~50% and improve cache locality. lock_sys moves from a global mutex to a shared latch plus per-hash latches and optimistic commit cleanup; microbenchmarks show modest gains up to ~40 connections, with workarounds needed for purge and further tuning planned.

AI-written summary · about

  1. 0:00Intro
  2. 0:25Locks and Latches
  3. 2:09Some Low-Level Synchronization Primitives
  4. 3:51InnoDB Specific Synchronization Primitives
  5. 6:17Special Requirements of Page Latches
  6. 9:37Reinventing the Mutex where Needed
  7. 11:44Reinventing the Read/Write Locks
  8. 13:30Reinventing the Index and Page Latches
  9. 15:29Some Benefits of the Latch Refactoring
  10. 19:08Transactional Locks in InnoDB
  11. 21:47How we Improved lock_sys Scalability
  12. 27:10InnoDB record locking: Manipulating Locks
  13. 28:05InnoDB record locking: Moving Locks
  14. 28:44InnoDB record locking: Exclusive latch
  15. 30:05InnoDB record locking: Transaction Commit
  16. 32:58Was it Worth It?
  17. 36:21Remaining Scalability Bottlenecks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.