summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2023-10-10 10:00:09 (GMT)
committerGitHub <noreply@github.com>2023-10-10 10:00:09 (GMT)
commit0362cbf908aff2b87298f8a9422e7b368f890071 (patch)
tree7d5ae0e1f44801fe2102cb783938c60ef99b7ae4 /Misc
parent5aa62a8de15212577a13966710b3aede46e93824 (diff)
downloadcpython-0362cbf908aff2b87298f8a9422e7b368f890071.zip
cpython-0362cbf908aff2b87298f8a9422e7b368f890071.tar.gz
cpython-0362cbf908aff2b87298f8a9422e7b368f890071.tar.bz2
gh-109595: Add -Xcpu_count=<n> cmdline for container users (#109667)
--------- Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-09-22-01-44-53.gh-issue-109595.fVINgD.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-09-22-01-44-53.gh-issue-109595.fVINgD.rst b/Misc/NEWS.d/next/Core and Builtins/2023-09-22-01-44-53.gh-issue-109595.fVINgD.rst
new file mode 100644
index 0000000..f182f96
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-09-22-01-44-53.gh-issue-109595.fVINgD.rst
@@ -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.