ucx icon indicating copy to clipboard operation
ucx copied to clipboard

How to use UCX with io_uring?

Open MoFHeka opened this issue 9 months ago • 4 comments

I noticed there are some APIs about epoll in UCX. It's possible to use io_uring?

MoFHeka avatar Mar 19 '25 18:03 MoFHeka

hi @MoFHeka , currently UCX does not support io_uring, which use case did you have in mind for it/

yosefe avatar Mar 22 '25 17:03 yosefe

@yosefe A RPC-like application using UCX. Polling ucp_worker_progress in the user thread , or polling register fd changing in the system thread and call ucp_worker_progress somewhere, which one would reach the best performance

MoFHeka avatar Mar 25 '25 06:03 MoFHeka

@MoFHeka there is UCX API to wait on a file descriptor - see ucp_worker_get_efd and ucp_worker_arm

Is it relevant for your use case?

yosefe avatar Mar 25 '25 16:03 yosefe

It seems that the performance will not be good, perhaps implementing a user-mode UCX ucp_worker_progress polling thread would be a better choice?

MoFHeka avatar Mar 26 '25 13:03 MoFHeka