axboe / liburing

Library providing helpers for the Linux kernel io_uring support
MIT License
2.7k stars 393 forks source link

which Linux kernel version stably supports the io_uring feature? #1173

Closed yarthur1 closed 1 week ago

yarthur1 commented 2 weeks ago

If I want to use io_uring in product environment, what linux kernel version is need? I would like to know which Linux kernel version stably supports the io_uring feature?

axboe commented 2 weeks ago

Anything 6.x related should be fine. For mainline versions, obviously go with the 6.x variants from the stable tree, and for distros, if they keep up with stable fixes as well, everything should be fine.

yarthur1 commented 2 weeks ago

Anything 6.x related should be fine. For mainline versions, obviously go with the 6.x variants from the stable tree, and for distros, if they keep up with stable fixes as well, everything should be fine.

thanks,I also want to know if the Linux 5.x versions reliably support io_uring?

axboe commented 2 weeks ago

5.x is a broad spectrum - in terms of stable kernels, there's 5.4, 5.10, and 5.15. 5.4 is ancient and doesn't support many of the new features, obviously. 5.10 and 5.15 are identical in terms of io_uring support.

But any 5.x kernel is going to lack a lot of the niceties and performance improvements of the 6.x kernels, which is why I said that the recommendation is to use a 6.x based kernel.

yarthur1 commented 2 weeks ago

5.x is a broad spectrum - in terms of stable kernels, there's 5.4, 5.10, and 5.15. 5.4 is ancient and doesn't support many of the new features, obviously. 5.10 and 5.15 are identical in terms of io_uring support.

But any 5.x kernel is going to lack a lot of the niceties and performance improvements of the 6.x kernels, which is why I said that the recommendation is to use a 6.x based kernel.

Thanks a lot! I got it.