[MXS-4621] Use io_uring for async IO Created: 2023-05-22 Updated: 2023-11-06 |
|
| Status: | Open |
| Project: | MariaDB MaxScale |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | markus makela | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
There are some possible benefits from using io_uring for async network IO over the current epoll based approach. This post lists some of these benefits. |
| Comments |
| Comment by kevin cheng [ 2023-05-23 ] |
|
hi, Can you tell me which source code files the current epoll implementation is in, if possible, I want to go and understand how to replace epoll with io_uring. |
| Comment by markus makela [ 2023-05-23 ] |
|
It's not as simple as replacing epoll with io_uring equivalents, the whole readiness based approach needs to be converted into a completion based one for it to work correctly. Grepping the source code for epoll_ functions should show you where it's used. |
| Comment by kevin cheng [ 2023-05-23 ] |
|
yes, I saw the same viewpoint on you post. I think I should spend more time understanding it in detail, thank you. |