News for hackers. Stuff that matters.
Re:Dqlite – High-Availability SQLite by continuations on Friday August 30, 2019 @08:30AM (#20837870)
> fully async disk I/O

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?

Re:Dqlite – High-Availability SQLite by rrdharan on Friday August 30, 2019 @09:11AM (#20838190)
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)

Re:Dqlite – High-Availability SQLite by brauner on Friday August 30, 2019 @11:40AM (#20839639)
Jens Axboe, io_uring :)