Can ublk zero copy be used with non-io_uring interfaces? #162
-
|
Can ublk zero copy be used with non-io_uring interfaces? I mean when the read/write operation is handled not by the io_uring (FIXED) operation, which internally writes to the kernel buffer, instead, using RDMA, for example. Or memset or something like that. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 30 replies
-
|
It can't be used in non-io_uring interfaces. However, it is possible to cover some basic/generic operations by adding io_uring bpf OPs and exported kfuncs, such as:
|
Beta Was this translation helpful? Give feedback.
-
|
P.S: Did some more tests on an Intel CPU, and ublk linear read/write is indeed slower than vduse. Not sure why - vduse and ublk both copy memory :-). Iops-wise it's still much faster though. |
Beta Was this translation helpful? Give feedback.
It can't be used in non-io_uring interfaces.
However, it is possible to cover some basic/generic operations by adding io_uring bpf OPs and exported kfuncs, such as: