3 ms·
This is all possible on Linux today with timerfd [0] and eventfd [1]. You can use the same mechanism for async file-IO with libaio and the IOCB_FLAG_RESFD [2] f
by hendzen 10y ago
This is all possible on Linux today with timerfd [0] and eventfd [1]. You can use the same mechanism for async file-IO with libaio and the IOCB_FLAG_RESFD [2] flag.
Granted libaio only really works well on XFS [3], and even there it has issues.
[0] - https://lwn.net/Articles/251413/ https://lwn.net/Articles/251413/
[1] - http://man7.org/linux/man-pages/man2/eventfd.2.html http://man7.org/linux/man-pages/man2/eventfd.2.html
[2] - https://www.fsl.cs.sunysb.edu/~vass/linux-aio.txt https://www.fsl.cs.sunysb.edu/~vass/linux-aio.txt
[3] - http://www.scylladb.com/2016/02/09/qualifying-filesystems/ http://www.scylladb.com/2016/02/09/qualifying-filesystems/