-
I have a HugePage memory backed application that can receive IO on 30 threads. All these 30 threads have their own ring which have shared backend worker thread (io_uring_shared_wq). Given these conditions I want to register my complete HugePage memory on initialisation with the rings of all the threads using io_uring_register_buffers . |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Registered buffers can only be used on a ring where they have been registered. So you'd need to register the same buffer on all rings where you'd be doing IO to/from registered buffers with read/write fixed. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer @axboe !!! Had a follow up question on this. |
Beta Was this translation helpful? Give feedback.
-
The library doesn't store anything, the kernel side overhead is 16 bytes per registered buffer. So 1024 buffers => 16kb of memory. |
Beta Was this translation helpful? Give feedback.
Registered buffers can only be used on a ring where they have been registered. So you'd need to register the same buffer on all rings where you'd be doing IO to/from registered buffers with read/write fixed.