trantor icon indicating copy to clipboard operation
trantor copied to clipboard

Experimental io_uring support

Open marty1885 opened this issue 2 years ago • 2 comments

This PR is still far from complete. But I want to make a PR to keep track of oy progress. And allow someone else to pick up my work in case I don't have time to finish it.

Current progress:

  • Adds a IoUringPoller that still works
    • Allow epoll to notify io_uring when events on epoll are ready
    • it does not have any performance benifit yet
    • Need to hook up io_uring for IO
  • Adds cmake detection for liburing
  • Detect older kernels and fallback to Epoll

System requirements:

  • Running Linux >= 5.6

marty1885 avatar Dec 31 '21 08:12 marty1885

Hi @marty1885,

I was interested in the performance affect of io_uring in drogon and I guess this is the change that would be needed to test that.

Just wanted to check if this work was still progressing?

Also was curious why it didnt have any performance benifit?

Thanks!

uarif1 avatar Sep 20 '22 09:09 uarif1

@uarif1 There's some progress that I haven't pushed. Basically fixing DB connectivity and add proper async IO. However, SSL isn't working and we need to port the current model into using BIO. The channel abstraction that Trantor uses is also broken. That also needs to be fixed to keep the codebase sane.

marty1885 avatar Sep 21 '22 03:09 marty1885