René's URL Explorer Experiment


Title: Support python -Xcpu_count= feature for container environment. · Issue #109595 · python/cpython · GitHub

Open Graph Title: Support python -Xcpu_count= feature for container environment. · Issue #109595 · python/cpython

X Title: Support python -Xcpu_count= feature for container environment. · Issue #109595 · python/cpython

Description: Feature or enhancement As #80235, there are requests for isolating CPU count in k8s or container environment, and this is a very important feature these days. (Practically my corp, a lot of workloads are running under container environme...

Open Graph Description: Feature or enhancement As #80235, there are requests for isolating CPU count in k8s or container environment, and this is a very important feature these days. (Practically my corp, a lot of workloa...

X Description: Feature or enhancement As #80235, there are requests for isolating CPU count in k8s or container environment, and this is a very important feature these days. (Practically my corp, a lot of workloa...

Opengraph URL: https://github.com/python/cpython/issues/109595

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support python -Xcpu_count=\u003cn> feature for container environment.","articleBody":"# Feature or enhancement\r\n\r\nAs https://github.com/python/cpython/issues/80235, there are requests for isolating CPU count in k8s or container environment, and **this is a very important feature these days**. (Practically my corp, a lot of workloads are running under container environments, and controlling CPU count is very important to resolve busy neighborhood issues)\r\n\r\nThere were a lot of discussions, and following the cgroup spec requires a lot of complexity and performance issues (due to fallback).\r\nJDK 21 chooses not to depend on CPU Shares to compute active processor count and they choose to use `-XX:ActiveProcessorCount=\u003cn>`.\r\nsee: https://bugs.openjdk.org/browse/JDK-8281571\r\n\r\nI think that this strategy will be worth using from the CPython side too.\r\nSo if the user executes the python with `-Xcpu_count=3`option `os.cpu_count` will return 3, instead of the actual CPU count that was calculated from `os.cpu_count`.\r\n\r\ncc @vstinner  @indygreg \n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-109667\n* gh-110639\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/corona10","@type":"Person","name":"corona10"},"datePublished":"2023-09-20T01:51:43Z","url":"https://github.com/python/cpython/issues/109595"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fd1214b1-0680-ff34-8e08-e50251de5f24
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD83C:28264A:7B238D:A2BB39:6B0253D6
html-safe-nonce1b85bbe2ed138e46d04bc506f9fee36c6802f0b9de511b62e165359868609e73
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODNDOjI4MjY0QTo3QjIzOEQ6QTJCQjM5OjZCMDI1M0Q2IiwidmlzaXRvcl9pZCI6IjEyNDkzNDY0NjU4OTI0NTAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0238d91d359cf2ca9d7b07acc47cfe0728468e3197a5500f0eb7ea84e0c221a4
hovercard-subject-tagissue:1903947108
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/109595/issue_layout
twitter:imagehttps://opengraph.githubassets.com/86f94e6028981df6d69ab76adc129b4b80728813ed920c2371f1ad1c5bd56a33/python/cpython/issues/109595
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/86f94e6028981df6d69ab76adc129b4b80728813ed920c2371f1ad1c5bd56a33/python/cpython/issues/109595
og:image:altFeature or enhancement As #80235, there are requests for isolating CPU count in k8s or container environment, and this is a very important feature these days. (Practically my corp, a lot of workloa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecorona10
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/109595#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F109595
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F109595
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/109595
Reloadhttps://github.com/python/cpython/issues/109595
Reloadhttps://github.com/python/cpython/issues/109595
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/109595
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/109595
Support python -Xcpu_count= feature for container environment.https://github.com/python/cpython/issues/109595#top
https://github.com/corona10
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/corona10
corona10https://github.com/corona10
on Sep 20, 2023https://github.com/python/cpython/issues/109595#issue-1903947108
#80235https://github.com/python/cpython/issues/80235
https://bugs.openjdk.org/browse/JDK-8281571https://bugs.openjdk.org/browse/JDK-8281571
@vstinnerhttps://github.com/vstinner
@indygreghttps://github.com/indygreg
gh-109595: Add -Xcpu_count= cmdline for container users #109667https://github.com/python/cpython/pull/109667
gh-110649: Update -Xcpu_count= cmdline to support process mode #110639https://github.com/python/cpython/pull/110639
Nexthttps://github.com/python/cpython/issues/109595?timeline_page=1
corona10https://github.com/corona10
on Sep 20, 2023https://github.com/python/cpython/issues/109595#event-10416781041
corona10https://github.com/corona10
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
on Sep 20, 2023https://github.com/python/cpython/issues/109595#event-10416781580
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 20, 2023https://github.com/python/cpython/issues/109595#issuecomment-1727817185
https://github.com/corona10
corona10https://github.com/corona10
on Sep 20, 2023https://github.com/python/cpython/issues/109595#issuecomment-1727864328
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 21, 2023https://github.com/python/cpython/issues/109595#issuecomment-1729401982
https://github.com/indygreg
indygreghttps://github.com/indygreg
on Sep 21, 2023https://github.com/python/cpython/issues/109595#issuecomment-1729481739
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 21, 2023https://github.com/python/cpython/issues/109595#issuecomment-1729742631
#109649https://github.com/python/cpython/issues/109649
https://github.com/corona10
corona10https://github.com/corona10
on Sep 21, 2023https://github.com/python/cpython/issues/109595#issuecomment-1729803336
corona10https://github.com/corona10
on Sep 21, 2023https://github.com/python/cpython/issues/109595#event-10438096337
pythongh-109595: Add -Xcpu_count= cmdline for container usershttps://github.com/corona10/cpython/commit/41be17016ef71d39725a088f4561232c323e0e7b
pythongh-109595https://github.com/python/cpython/issues/109595
41be170https://github.com/corona10/cpython/commit/41be17016ef71d39725a088f4561232c323e0e7b
https://github.com/corona10
corona10https://github.com/corona10
on Sep 22, 2023https://github.com/python/cpython/issues/109595#issuecomment-1730523188
https://docs.kernel.org/admin-guide/cgroup-v1/cgroups.htmlhttps://docs.kernel.org/admin-guide/cgroup-v1/cgroups.html
https://bugs.openjdk.org/browse/JDK-8281571https://bugs.openjdk.org/browse/JDK-8281571
https://github.com/indygreg
indygreghttps://github.com/indygreg
on Sep 22, 2023https://github.com/python/cpython/issues/109595#issuecomment-1730753472
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 22, 2023https://github.com/python/cpython/issues/109595#issuecomment-1730757342
#109649https://github.com/python/cpython/issues/109649
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 22, 2023https://github.com/python/cpython/issues/109595#issuecomment-1730758032
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 22, 2023https://github.com/python/cpython/issues/109595#issuecomment-1731240132
#109652 (comment)https://github.com/python/cpython/pull/109652#issuecomment-1731231595
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
on Sep 29, 2023https://github.com/python/cpython/issues/109595#issuecomment-1741551009
gh-109649: Add os.process_cpu_count() function #109907https://github.com/python/cpython/pull/109907
https://pypi.org/project/threadpoolctl/https://pypi.org/project/threadpoolctl/
@mdboomhttps://github.com/mdboom
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Sep 29, 2023https://github.com/python/cpython/issues/109595#issuecomment-1741564276
https://github.com/corona10
corona10https://github.com/corona10
on Sep 30, 2023https://github.com/python/cpython/issues/109595#issuecomment-1741697401
#109595 (comment)https://github.com/python/cpython/issues/109595#issuecomment-1740938148
corona10https://github.com/corona10
on Sep 30, 2023https://github.com/python/cpython/issues/109595#event-10518087485
Merge remote-tracking branch 'upstream/main' into pythongh-109595https://github.com/corona10/cpython/commit/ac5329be407a81487452a48daca5884eb268c4e9
pythongh-109595https://github.com/python/cpython/issues/109595
ac5329bhttps://github.com/corona10/cpython/commit/ac5329be407a81487452a48daca5884eb268c4e9
Merge remote-tracking branch 'upstream/main' into pythongh-109595https://github.com/corona10/cpython/commit/a0cfb2171e8611e00119811b16831a930305e284
pythongh-109595https://github.com/python/cpython/issues/109595
a0cfb21https://github.com/corona10/cpython/commit/a0cfb2171e8611e00119811b16831a930305e284
Merge remote-tracking branch 'upstream/main' into pythongh-109595https://github.com/corona10/cpython/commit/8daa3b7886725ba0abc2fb31debe3b705406e302
pythongh-109595https://github.com/python/cpython/issues/109595
8daa3b7https://github.com/corona10/cpython/commit/8daa3b7886725ba0abc2fb31debe3b705406e302
gh-109595: Add -Xcpu_count= cmdline for container users (#109667)https://github.com/python/cpython/commit/0362cbf908aff2b87298f8a9422e7b368f890071
gh-109595https://github.com/python/cpython/issues/109595
#109667https://github.com/python/cpython/pull/109667
0362cbfhttps://github.com/python/cpython/commit/0362cbf908aff2b87298f8a9422e7b368f890071
https://github.com/corona10
corona10https://github.com/corona10
on Oct 10, 2023https://github.com/python/cpython/issues/109595#issuecomment-1754949500
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 10, 2023https://github.com/python/cpython/issues/109595#issuecomment-1755376151
corona10https://github.com/corona10
on Oct 10, 2023https://github.com/python/cpython/issues/109595#event-10605493592
pythongh-109595: Update -Xcpu_count= cmdline to support process modehttps://github.com/corona10/cpython/commit/920fb835f19f30d6b27484decf2c8aca44d7d770
pythongh-109595https://github.com/python/cpython/issues/109595
920fb83https://github.com/corona10/cpython/commit/920fb835f19f30d6b27484decf2c8aca44d7d770
corona10https://github.com/corona10
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 10, 2023https://github.com/python/cpython/issues/109595#event-10610111530
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 10, 2023https://github.com/python/cpython/issues/109595#issuecomment-1756474373
#110649https://github.com/python/cpython/issues/110649
https://github.com/blackliner
blacklinerhttps://github.com/blackliner
on May 23, 2024https://github.com/python/cpython/issues/109595#issuecomment-2127648945
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on May 23, 2024https://github.com/python/cpython/issues/109595#issuecomment-2127651625
https://docs.python.org/dev/using/cmdline.html#envvar-PYTHON_CPU_COUNThttps://docs.python.org/dev/using/cmdline.html#envvar-PYTHON_CPU_COUNT
Glyphackhttps://github.com/Glyphack
on Sep 2, 2024https://github.com/python/cpython/issues/109595#event-14106068070
pythongh-109595: Add -Xcpu_count= cmdline for container users (pyt…https://github.com/Glyphack/cpython/commit/cb98434686e5f74d5158ea527a720a3de16f65ff
pythongh-109595https://github.com/python/cpython/issues/109595
pyt…https://github.com/python/cpython/pull/109667
cb98434https://github.com/Glyphack/cpython/commit/cb98434686e5f74d5158ea527a720a3de16f65ff
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/109595
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/109595
corona10https://github.com/corona10
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.