ucx icon indicating copy to clipboard operation
ucx copied to clipboard

How to get pending tasks number in UCP worker queue?

Open MoFHeka opened this issue 9 months ago • 1 comments

I'm not sure if I understand this correctly. It can't submit too many nbx to the UCP worker, or it will cause ucp_worker_progress to process too slowly. So is there an API that knows how many tasks ucp_worker_progress will be handle in currently running?

What does ucx_worker->flush_ops_count actually means? Could I just use it directly?

MoFHeka avatar Mar 26 '25 13:03 MoFHeka

".. it will cause ucp_worker_progress to process too slowly." - it is not expected, do you see in which function most of the time is spend in such case? there is no API to count how many requests are pending, but the application can count how many requests started and not completed yet. flush_ops_count is counting specific operations (rma emulation over active messages, and wireup message)

yosefe avatar Mar 29 '25 07:03 yosefe