~/talk

How to Squeeze 1,000,000 rps

TalkinRussianat CodeFest 12 · 2022-05-28..05-29· [web-performance, databases]
links:none on file
slides:none on file

A team experimented to drive about 1,000,000 requests per second from a single physical server and a database not designed for that workload (the DB remained Sphinx). They describe discovered bottlenecks (some initially surprising), fixes applied with modest effort—including a few assembly lines (ARM assembly on an Intel server), lock-free tricks, and hand-rewritten simple syscalls—and the achieved results. Finally, they point out remaining hard-to-fix hotspots and briefly outline how to approach the next targets (10+ million rps).

AI-written summary · about

  1. 0:00Million rps introduction
  2. 3:56Problem and profiling
  3. 7:07Benchmarking overheads
  4. 10:59Profiling bottlenecks
  5. 13:28Optimization curve
  6. 14:12Statistics slowdown
  7. 16:39Batch processing insight
  8. 20:08Unnecessary code removal
  9. 23:16Lock contention analysis
  10. 25:05Lock-free research
  11. 28:13Simple lock-free algorithm
  12. 31:04Code verification
  13. 33:17Scalable locks
  14. 35:45Results and benchmarks
  15. 37:52Key takeaways
~/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.