Skip to content

io_uring_prep_send_zc() performing a little worst than io_uring_prep_send() #1003

Answered by jmillan
jmillan asked this question in Q&A
Discussion options

You must be logged in to vote

I've repeated the test to be longer than 1 minute order to remove the possible noises.

NOTES:

  • IORING_REGISTER_FILES is used now.
  • IORING_REGISTER_RING_FDS not used as I got Operation not supported as response to io_uring_register_ring_fd().
    • kernel version: 6.1.0-13
  • Encryption has been disabled now, it's a legitimate case and was providing too much noise on the traces.

As you can see there is now a 2% difference between ZC and NO_ZC, being ZC more efficient.

ZC

NO ZC

Probably now we are seeing the benefits of using ZC compared to not using it, for our use case (small buffers). I hope everything makes sense.

Also several notes not related to zerocopy:

You may try registering the ri…

Replies: 2 comments 31 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
31 replies
@jmillan
Comment options

@jmillan
Comment options

@isilence
Comment options

@jmillan
Comment options

Answer selected by jmillan
@isilence
Comment options

@jmillan
Comment options

@jmillan
Comment options

@isilence
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
2 participants