model-writtenrun 1832 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- MARK CALLAGHAN reported that io_uring made connection creation about 2.3 times slower and increased postmaster CPU usage about 3.5 times in #1, then showed that raising max_connections worsened the overhead in #2.
- Andres Freund traced the slowdown to a separate memory mapping for every potential backend and proposed caller-provided ring memory on supporting kernels in #3; Tom Lane and Nathan Bossart supported addressing it for PostgreSQL 18 in #4 and #6.
- Andres posted the implementation in #5, probing kernel and liburing capabilities to determine ring memory requirements, allocating rings in PostgreSQL shared memory when supported and retaining the existing fallback.
- Jim Nasby and Greg Burd reviewed the draft in #8 and #9; Andres accepted cleanup and type-consistency suggestions, retained a single shared-memory allocation and decided to keep fallback diagnostics at DEBUG1 in #10 and #11.
- The optimization landed as 9a5334c0b4 from #5 with light cleanup and a backpatch to PostgreSQL 18; Andres announced the push in #12, explicitly leaving higher diagnostic severity for possible follow-up.
- Jakub Wartak reopened the visibility issue after observing severe connection delays with max_connections set to 20000 in #13; Robert Treat supported making the limitation discoverable in #14, and Andres invited a patch in #15.
- Jakub proposed warnings and documentation in #16; Andres requested documentation focused on max_connections and less verbose warnings in #17, leading to the shortened diagnostics and revised documentation in #18.
- Tomas Vondra questioned embedding specific kernel versions in warnings and suggested broader io_uring tuning documentation in #19; Jakub offered to remove kernel-version wording and simply raise diagnostic severity in #20, leaving the warning-and-documentation follow-up unresolved while the allocation optimization remained committed.