We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

Back to home

Tuning async IO in PostgreSQL 18

Source

Hacker News

Published

TL;DR

AI Generated

PostgreSQL 18 introduces asynchronous I/O (AIO) for improved storage utilization and control. The default AIO method is "worker," with options for "sync" and "io_uring." Tuning advice suggests sticking with "worker" and adjusting the "io_workers" parameter based on system cores. While "io_uring" is efficient, it's Linux-specific, and "worker" may outperform it in certain scenarios. Considerations include bandwidth distribution, signal overhead, and file descriptor limits. Future releases may address AIO limitations and offer adaptive worker management. Feedback and tuning observations can be shared with the community for documentation enhancements.