有支持io_uring的计划吗?
bthread在读磁盘的时候会block整个线程,有没有计划引入io_uring然后采用异步IO的方式减少线程阻塞?
bthread里面没有读磁盘的操作吧,你是指在bthread中运行的业务代码中进行了读磁盘的操作吗? 如果想减少阻塞,可以用异步的读,可以使用bthread_fd_wait来等待可读事件,等待过程中bthread会被挂起。
我理解用io_uring替换epoll API,是不是网络io和磁盘io都能同时支持呀?
我理解用io_uring替换epoll API,是不是网络io和磁盘io都能同时支持呀?
是的
看起来这个issue被淹没了,期待支持~ https://github.com/axboe/liburing
see https://new.qq.com/rain/a/20220606A08X5X00 and https://blog.csdn.net/bandaoyu/article/details/112904835 , these talk about the performance comparison between io_uring and RDMA.
When using a network card that supports RDMA, the performance of RDMA is much higher than that of io_uring;
When using a network card that does not support RDMA and the Linux version is above 5.10, io_uring should be used;
epoll should be used(if Linux supports) when using a network card that does not support RDMA and the Linux version is below 5.10;
I forgot the minimum version of io_uring supported by Linux.
@cangfengzhs @deepzliu