Linux does support async I/O to disks using various other interfaces/approaches - it’s just that the classic approach of select()’ing on non-blocking FDs doesn’t work for disk:
https://blog.cloudflare.com/io_submit-the-epoll-alternative-...
Re:Dqlite – High-Availability SQLite
by free-ekanayaka on Friday August 30, 2019 @11:09AM
(#20839341)
The support of async disk I/O in Linux differs depending on kernel version and file system type. But it is possible to get 100% async I/O with the is_submit(), and dqlite will leverage that if detected.
There is now a new async I/O API available in Linux (I'm not remembering the name right now, but it was developed by folks at Facebook). It looks promising so I'll check it at some point. (dqlite author here)
Jens Axboe, io_uring :)
Re:Dqlite – High-Availability SQLite
by brennebeck on Friday August 30, 2019 @10:18AM
(#20838827)
I thought Linux didn't support real async disk IO. Is that not the case?
If Linux has no real async disk IO, how does Dqlite achieve fully async disk IO?