ENH Prevent Python worker oversaturation/oversubscription#1825
Open
itamarst wants to merge 12 commits into
Open
ENH Prevent Python worker oversaturation/oversubscription#1825itamarst wants to merge 12 commits into
itamarst wants to merge 12 commits into
Conversation
itamarst
marked this pull request as ready for review
July 22, 2026 20:51
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1825 +/- ##
==========================================
+ Coverage 94.13% 94.16% +0.02%
==========================================
Files 46 46
Lines 7979 8033 +54
==========================================
+ Hits 7511 7564 +53
- Misses 468 469 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Author
|
This is now ready for review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1824
This also passes the third-party (OpenMP, BLAS, etc) limiting env variables to
multiprocessingworker processes, as a side-effect of the implementation. That part is not tested, but could be.A demonstration of the performance effects of this PR
Consider the following script:
When run under
mainbranch, with 8 cores (taskset -c 0-7):When run under this PR: