~/talk

What went wrong with AIO

Talkat PGConf.dev 2025 · 2025-05-13..05-16· [databases, software-architecture]
slides:none on file

Five years of work produces a merged core AIO path landing in PG18 but not full write support yet; a prototype using io_uring and later worker mode survives, while a POSIX-thread backend proves unstable. Major mistakes: trying to share a few io_uring instances (started at eight) and preallocating IO handles that caused deadlocks; switching to per-backend descriptors and allowing one spare handle fixes forward progress. Scatter‑gather I/O and readstreams remove most CPU overhead; concurrent WAL writes give up to 4x–10x throughput but remain hard to tune with 64 IO handles defaults.

AI-written summary · about

  1. 0:00Introduction and project timeline
  2. 3:30Architectural challenges in AIO
  3. 11:44Prototype development and performance issues
  4. 16:20Major design mistakes in AIO
  5. 21:45Locking and IO handle management problems
  6. 26:23Prototype limitations and lessons learned
  7. 31:41Testing infrastructure and CI integration
  8. 35:13External challenges and project delays
  9. 38:05Current state of AIO in PostgreSQL 18
  10. 41:16Future improvements and optimizations
  11. 47:03Q&A and acknowledgments
~/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.