-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZMQ sends and threads conflict #162
Comments
I'll take a look, @GuillaumeMercier. Thank you. |
I have a fix doing it a brute-force way, but let me see if I can come up with a nicer solution. |
And what is the current fix? I'm curious. |
Having a context mutex managed by a |
But I think I tried this and it didn't work. |
I'm not sure how you implemented it, but mine seems to do the trick. |
|
Ok, I'm puzzled. |
I guess it has to do with when/where you do lock/unlock |
I put the lock/unlock phase around the call to |
@GuillaumeMercier your issues should be fix by #164. I've also pushed a new branch named |
@GuillaumeMercier things look much better now since merging #189. For what it's worth, there were other issues outside the RMI and threading impacting this one (e.g., unreliable binding after split). One particularly nasty bug to track was stale task data being passed to hwloc. Now these data are gathered at the time the call is performed. And the relevant task details update appropriately when threads are introduced. Closing for now, but please re-open if needed. |
@samuelkgutierrez : so, did you get rid of the lock? |
I'll update my repo and make tests asap. |
Yes, I got rid of the lock. Let me push a minor update before you test. |
No sweat, I won't make tests today, but maybe tomorrow. |
The minor change is in. Thank you for testing! Fingers crossed. |
ZMQ doesn't seem to like threads (I saw some stuff about that in the documentation but can't find it right now).
Right now, all threads share the same context and thus uses the same socket to communicate with the server which
might be an issue. Or maybe ZMQ sockets don't like bursts of messages.
The error is the following:
Adding some delay in the example (with a call to
sleep
) fixes the issues, adding a lock doesn't fix anything so I will investigtate the burst of messages. I already tried option for ZMQ sockets but without positive results.See PR #163
The text was updated successfully, but these errors were encountered: