netty / netty-incubator-transport-io_uring

Apache License 2.0
193 stars 38 forks source link

When will fileRegion be supported? #210

Open weitingyuk opened 1 year ago

weitingyuk commented 1 year ago

The io_uring transport does not currently support fileRegion, when will fileRegion be supported? We are eager to try iouringFileRegion.

weitingyuk commented 1 year ago

@1Jo1 Cloud you mind help to see this issue?

normanmaurer commented 1 year ago

Seems like while sendfile is not directly supported by io_uring itself it is possible to kind of create the same functionality by using splice: https://lwn.net/Articles/810482/

weitingyuk commented 1 year ago

@normanmaurer I don't know much about the Linux kernel. Will netty io_uring consider using splice to implement fileRegion?

weitingyuk commented 1 year ago

I'm not sure there is some gap for netty io_uring to implement fileRegion by using splice.

normanmaurer commented 1 year ago

Yes .... I just left the comment for the future so I dont forget. I am currently busy but might implement it once I have some cycles.

weitingyuk commented 1 year ago

We really want to try the file region in netty io_uring. If there is no plan for this currently, we can only abandon this plan, thanks very much.

normanmaurer commented 1 year ago

If someone implements it I am happy to review the code... I dont have the cycles atm to do it myself