Skip to content
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

linux: fix uv_available_parallelism using cgroup (#4278) #39

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

giordano
Copy link

Backport libuv#4278, to address JuliaLang/julia#46226.

uv_available_parallelism does not handle container cpu limit
set by systems like Docker or Kubernetes. This patch fixes
this limitation by comparing the amount of available cpus
returned by syscall with the quota of cpus available defined
in the cgroup.

Fixes: libuv#4146
(cherry picked from commit 6b56200)
@giordano giordano requested a review from vtjnash August 26, 2024 16:42
@giordano giordano merged commit c57e7f0 into julia-uv2-1.48.0 Aug 31, 2024
3 of 36 checks passed
@giordano giordano deleted the mg/linux-uv-available-parallelism-cgroup branch August 31, 2024 12:24
giordano added a commit to giordano/Yggdrasil that referenced this pull request Aug 31, 2024
giordano added a commit to giordano/Yggdrasil that referenced this pull request Aug 31, 2024
giordano added a commit to JuliaPackaging/Yggdrasil that referenced this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants