Skip to content

Is IO_URING's zero copy technology only used for network communication? #1149

Answered by isilence
wwwwxxxxhhhh asked this question in Q&A
Discussion options

You must be logged in to vote

"Zero copy" is a fancy word referring to many different kinds of copy optimisations. If it's about storage ("dropping onto the disk"), then open the file with O_DIRECT and it should already be "zero copy" if the file/filesystem/etc behaves. You don't even need io_uring, it works with write(2)/etc as well.

Network send and recv zero copy is different topic.

SQ ring helps with not copying the SQE structure (64 bytes per request) into the kernel, but I doubt you care.

Edit: silly typo, it's O_DIRECT

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@isilence
Comment options

Answer selected by wwwwxxxxhhhh
@wwwwxxxxhhhh
Comment options

@axboe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants