You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought I give this issue a try. I should say that I don't know much about networking, but perhaps I can learn something from here :)
So I started with some research:
Firstly, I looked into ucx-py under the link mentioned above.
There they use the psutils to gather all used ports into a list and then randomly select one that is not on there.
I could not find any Julia implementation of what psutils.net_connections() does.
But I looked into how psutils.net_connections() works and I (think) what it does is to parse all socket 'files' found under /procs/ to extract the port numbers, cf. https://github.com/giampaolo/psutil/blob/dd57b9a109d6db9a87247d5f47303b87672dfa78/psutil/_pslinux.py#L975-L1004
I then looked into what listenany does: It generates new sockets with incremented port numbers (starting from port_hint) till it finds an used one.
Q: Which of the these approaches is the preferred one?
Q: (Naive question) For what reasons should listenany be replaced? Is it expected to be slower than the psutils.net_connections() approach?
UCX.jl/src/UCX.jl
Lines 276 to 281 in 6a369d8
The text was updated successfully, but these errors were encountered: