Skip to content

Is the information from kernel.org about MSG_ZEROCOPY also valid for SEND[MSG]_ZC? #1053

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

You must be logged in to vote

That's also applies to SEND[MSG]_ZC as well. There is no page pinning when used with registered buffers (see IORING_RECVSEND_FIXED_BUF, not yet available for the msg version), but additional overhead on notifications is still there.

is generally only effective at writes over around 10 KB.

The math is different with io_uring, with UDP and all features I had parity with non zc at around 2K. The main performance pain there is notifications, but since my last testing I added some smartness to the CQE waiting side, so with good batching it might go under 2K. In any case, I'd recommend to always experiment and see what works in your setup.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lano1106
Comment options

Answer selected by serzhiio
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