Is sendfile () a function similar to linux-aio?

I want to send data from one file descriptor to another via linux-aio without buffering and without transferring data to and from user space. Is sendfile64 () function possible with linux-aio?

I reviewed some linux-aio examples (in C / C ++) and simple file copying programs. All these examples do reading → buffer → writing.

Regards, Philip

+4
source share
1 answer

Perhaps if you are a mmap file, then you can make aio sendfile. It is faster than sendfile via do_splice, and should not be synchronized with i_mutex. Take a look at the lighttp linux_aio module.

0
source

Source: https://habr.com/ru/post/1489671/


All Articles