~/talk

Optimizing MySQL without SQL or touching my.cnf

links:none on file
slides:none on file

Dropbox reworks MySQL builds and OS settings to squeeze real gains: profile‑guided optimization on GCC/Clang and link‑time and native‑arch builds yield up to ~35–40% throughput and lower latencies on sysbench, while fixing MySQL’s old “fast mutex” avoids ~1.5–2% CPU waste (fixed in 5.7.8). Uses perf and AutoFDO (requires LBR) to collect profiles, sbench for benchmarks, and Percona slow‑log playback (accurate mode, configurable Q depth, no connection leaks) to reproduce production workload for safe validation.

AI-written summary · about

  1. 0:00Intro
  2. 1:05We want to be more efficient
  3. 1:41OS-level optimizations
  4. 4:04How it works
  5. 4:29Let's run strace
  6. 6:24Mutex implementation
  7. 7:18Fast Mutexes
  8. 11:09sysbench example
  9. 11:35Compilers
  10. 17:08Link-time optimizations
  11. 19:24Native instruction sets
  12. 21:52Real world scenarios
  13. 27:51Query Playback issues • Leaks connections . Often runs into lock waits, and seems to do nothing Slow log ordering issue • Output is unreadable, reasonable debugging is next to impossible
  14. 30:27Kudos to Marius Wachtler
  15. 31:21Slow log event example
  16. 34:06Accurate mode
  17. 36:10Tips for larger queue depth • Faster than possible playback, while ordering is guaranteed
  18. 39:40AutoFDO
~/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.