Replies: 2 comments
-
Fine, I found the answer #740. |
Beta Was this translation helpful? Give feedback.
-
If the threshold is passed from the userspace, userspace may as easily choose b/w if (size > 10K)
io_uring_prep_sendmsg_zc();
else
io_uring_prep_sendmsg(); Maybe I didn't get the idea? And I need to note that the kernel itself doesn't know what the threshold should be, it depends on how apps use io_uring, what is completion batching and the general pattern, on the CPU and the cost of the send path and so on.
Right, I need to add it to |
Beta Was this translation helpful? Give feedback.
-
According to the doc:
Could it be possible to add a flag or op code with a new parameter(threshold), just to tell sendmsg when it is fit to use copy or zero_copy method? Given notification overhead is avoided by io_uring, the optimal vaule shall be less than 10KB, but page accounting is still not free.
Beta Was this translation helpful? Give feedback.
All reactions