-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-109595: Add -Xcpu_count=<n> cmdline for container users #109667
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
Merged
Merged
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
41be170
gh-109595: Add -Xcpu_count=<n> cmdline for container users
corona10 f7a7428
Check style
corona10 7009bbe
Add help
corona10 d1f91d8
Apply suggestions from code review
corona10 8c92ed6
Apply suggestions from code review
corona10 c27bdfc
Check style
corona10 b13e5ee
Address code review
corona10 45fce16
Address code review
corona10 49a48e4
Address code review
corona10 829a8e8
Address code review
corona10 cfb33a4
Fix test
corona10 95a2173
Update NEWS.d
corona10 0394d1d
Address code review
corona10 f4a3f01
Update
corona10 60a28fe
Update
corona10 7e5595c
nit
corona10 8678012
Update
corona10 cbc5484
Add PYTHONCPUCOUNT
corona10 4622b60
Add PYTHONCPUCOUNT
corona10 50f0178
Apply suggestions from code review
corona10 5c3ac68
Update Python/initconfig.c
corona10 a276bfd
Fix
corona10 9c582be
Update whatsnew
corona10 35b952f
nit
corona10 f04ea58
Check style
corona10 7ecf705
Fix docs
corona10 18dcd44
Update doc
corona10 b344f4f
nit
corona10 8069d21
Update
corona10 c70bc82
Update
corona10 c8abc29
Update
corona10 2ac6901
Address code review
corona10 f0a3ebf
Address code review
corona10 89d8bb2
Address Victor's suggestion
corona10 66c617f
nit
corona10 4a72ed4
Address Erlend's review
corona10 0426e3e
fix
corona10 ac5329b
Merge remote-tracking branch 'upstream/main' into gh-109595
corona10 e50e678
fix
corona10 24fe0e4
Add space
corona10 32843ed
Update os.py
corona10 a954f1c
nit
corona10 3ab2bc4
Add test code
corona10 7231697
Update docs
corona10 b18da0d
fix
corona10 3579fc4
Address code reivew
corona10 134ed9e
Address code review
corona10 2bec7f4
Add test
corona10 9f7cb5e
fix
corona10 1217ab5
fix
corona10 64da2f9
fix
corona10 64c7329
fix
corona10 cc54afb
Update
corona10 ba421c7
Address code review
corona10 5f20bf6
Update NEWS.d
corona10 c11789b
Update
corona10 936c182
Update
corona10 2f0dc1c
Address code review
corona10 a7b2c88
Rename to PYTHON_CPU_COUNT
corona10 551c76d
Hidden overrided cpu count
corona10 75021be
Use overridden
corona10 57dd53b
Minor refactoring
corona10 3f9da50
Revert to PYTHONCPUCOUNT
corona10 57e82c5
fix
corona10 c37c8d0
Use PYTHON_CPU_COUNT
corona10 c7726e5
Address Greg's review
corona10 de8bf53
Address Greg's code review
corona10 633914b
nit
corona10 37fbdfe
Include multiprocessing in docs, reword.
gpshead a0cfb21
Merge remote-tracking branch 'upstream/main' into gh-109595
corona10 8daa3b7
Merge remote-tracking branch 'upstream/main' into gh-109595
corona10 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
5 changes: 5 additions & 0 deletions
5
Misc/NEWS.d/next/Core and Builtins/2023-09-22-01-44-53.gh-issue-109595.fVINgD.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Add :option:`-X cpu_count <-X>` command line option to override return results of | ||
:func:`os.cpu_count` and :func:`os.process_cpu_count`. | ||
This option is useful for users who need to limit CPU resources of a container system | ||
without having to modify the container (application code). | ||
Patch by Donghee Na. |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.