-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Julia seems to ignore process affinity settings on Linux #34415
Comments
cc @kpamnany |
We do call |
This was removed before and added back apparently by mistake.
Thanks, @JeffBezanson ! |
This was removed before and added back apparently by mistake.
This was removed before and added back apparently by mistake. (cherry picked from commit 5928786)
This issue is still happenning
|
Same for me, on my hpc system, I find that julia schedules tasks to threads which should be permitted by the cpubind |
I usually use |
I get
|
Julia (tested with v1.0 and v1.3) currently seems to ignore (or escape from) process affinity settings on Linux. This is a problem in HPC computing contexts (but also in other scenarios), e.g. when trying to run one Julia process per NUMA domain.
Let's say we have a machine with 16 virtual cores (8 * 2):
Now we use
numactl
to pin a process to CPUs 1 and 2, that process being anumactl -s
to check that the limitation is actually in effect:Now with
numactl
runningnumactl -s
via julia:Within Julia, the pinning to CPUs 1 and 2 is gone. I see the same when running multi-threaded Julia code (Julia multi-threading or BLAS via Julia): All CPUs are used, instead of just the selected ones.
The text was updated successfully, but these errors were encountered: