| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:70a6f16c-cc8f-1a53-1005-d09e089d021c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8718:E9D16:4257FED:53F4CA6:6B025CE3 |
| html-safe-nonce | c0f061ccb3c72166162b6616a8a83a0fc7fa48b62c22a4b6a52fb7946a257abc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzE4OkU5RDE2OjQyNTdGRUQ6NTNGNENBNjo2QjAyNUNFMyIsInZpc2l0b3JfaWQiOiI4MDY2OTIzNjAwMzY3MDM0NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5740955ed36c5c5f7f4a94aabc7fc2b151411f26dd8c3fb304c0a87e90dd01b0 |
| hovercard-subject-tag | issue:1907086887 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/issues_fragments/issue_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/109649/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b38ebeffd55a3fc7bf25be28cafd8f0a97e75fe5f8cd605aabbe72235242fe7f/python/cpython/issues/109649 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b38ebeffd55a3fc7bf25be28cafd8f0a97e75fe5f8cd605aabbe72235242fe7f/python/cpython/issues/109649 |
| og:image:alt | Feature or enhancement os.cpu_count() returns the total number of CPUs that the current machine has. On Unix, sched_setaffinity() can reduce the number of CPU "usable" by a process. Currently, os.c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
| Skip to content | https://github.com/python/cpython/issues/109649#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F109649 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F109649 |
| Sign up | https://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 |
| Reload | https://github.com/python/cpython/issues/109649 |
| Reload | https://github.com/python/cpython/issues/109649 |
| Reload | https://github.com/python/cpython/issues/109649 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| New issue | https://github.com/login?return_to=https://github.com/python/cpython/issues/109649 |
| New issue | https://github.com/login?return_to=https://github.com/python/cpython/issues/109649 |
| os.process_cpu_count(): get the number CPUs usable by the current process | https://github.com/python/cpython/issues/109649#top |
| type-featureA feature request or enhancement | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| on Sep 21, 2023 | https://github.com/python/cpython/issues/109649#issue-1907086887 |
| gh-109649: Add affinity parameter to os.cpu_count() #109652 | https://github.com/python/cpython/pull/109652 |
| gh-109649: Add os.process_cpu_count() function #109907 | https://github.com/python/cpython/pull/109907 |
| gh-109649: Use os.process_cpu_count() #110165 | https://github.com/python/cpython/pull/110165 |
| [3.12] gh-109649: Enhance os.cpu_count() documentation #110169 | https://github.com/python/cpython/pull/110169 |
| [3.11] [3.12] gh-109649: Enhance os.cpu_count() documentation (GH-110169) #110226 | https://github.com/python/cpython/pull/110226 |
| gh-109649: Fix test_os.test_process_cpu_count_affinity() #111689 | https://github.com/python/cpython/pull/111689 |
| Next | https://github.com/python/cpython/issues/109649?timeline_page=1 |
| vstinner | https://github.com/vstinner |
| type-featureA feature request or enhancement | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22 |
| on Sep 21, 2023 | https://github.com/python/cpython/issues/109649#event-10436233839 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| on Sep 21, 2023 | https://github.com/python/cpython/issues/109649#issuecomment-1729678880 |
| add os.cpu_count() #62114 | https://github.com/python/cpython/issues/62114 |
| cpu_count() unreliable on Windows #67226 | https://github.com/python/cpython/issues/67226 |
| os.cpu_count is problematic on sparc/solaris #73451 | https://github.com/python/cpython/issues/73451 |
| os.cpu_count() returns wrong number of processors on system with > 64 logical processors #74766 | https://github.com/python/cpython/issues/74766 |
| os.cpu_count() should return a count assigned to a container or that the process is restricted to #80235 | https://github.com/python/cpython/issues/80235 |
| Support python -Xcpu_count= feature for container environment. #109595 | https://github.com/python/cpython/issues/109595 |
| multiprocessing.cpu_count() should use hw.availcpu on Mac OS X #61646 | https://github.com/python/cpython/issues/61646 |
| vstinner | https://github.com/vstinner |
| on Sep 21, 2023 | https://github.com/python/cpython/issues/109649#event-10436384913 |
| pythongh-109649: Add usable parameter to os.cpu_count() | https://github.com/vstinner/cpython/commit/477d57bfe1e129877a8609eef09cdf4cc5dcee3c |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 477d57b | https://github.com/vstinner/cpython/commit/477d57bfe1e129877a8609eef09cdf4cc5dcee3c |
| pythongh-109649: Add usable parameter to os.cpu_count() | https://github.com/vstinner/cpython/commit/0f769ecd188d423f07f21633f996d05503ac68be |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 0f769ec | https://github.com/vstinner/cpython/commit/0f769ecd188d423f07f21633f996d05503ac68be |
| pythongh-109649: Add usable parameter to os.cpu_count() | https://github.com/vstinner/cpython/commit/df887a816fa6ab25ca61666aa488b4c63d6737e0 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| df887a8 | https://github.com/vstinner/cpython/commit/df887a816fa6ab25ca61666aa488b4c63d6737e0 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| on Sep 21, 2023 | https://github.com/python/cpython/issues/109649#issuecomment-1729709385 |
| https://learn.microsoft.com/en-us/windows/win32/api/processtopologyapi/nf-processtopologyapi-getprocessgroupaffinity | https://learn.microsoft.com/en-us/windows/win32/api/processtopologyapi/nf-processtopologyapi-getprocessgroupaffinity |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| on Sep 21, 2023 | https://github.com/python/cpython/issues/109649#issuecomment-1729713477 |
| vstinner | https://github.com/vstinner |
| on Sep 21, 2023 | https://github.com/python/cpython/issues/109649#event-10438068103 |
| pythongh-109649: Add affinity parameter to os.cpu_count() | https://github.com/vstinner/cpython/commit/6872c18e0317702e1e015fc549899c5a5906ea98 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 6872c18 | https://github.com/vstinner/cpython/commit/6872c18e0317702e1e015fc549899c5a5906ea98 |
| vstinner | https://github.com/vstinner |
| on Sep 21, 2023 | https://github.com/python/cpython/issues/109649#event-10438081769 |
| vstinner | https://github.com/vstinner |
| on Sep 21, 2023 | https://github.com/python/cpython/issues/109649#event-10438115529 |
| pythongh-109649: Add affinity parameter to os.cpu_count() | https://github.com/vstinner/cpython/commit/38ba1c39660975f086ff0f431d3c41154b84807d |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 38ba1c3 | https://github.com/vstinner/cpython/commit/38ba1c39660975f086ff0f431d3c41154b84807d |
| pythongh-109649: Add affinity parameter to os.cpu_count() | https://github.com/vstinner/cpython/commit/ae114ac90035d07f63a44db73586a64a9d37be13 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| ae114ac | https://github.com/vstinner/cpython/commit/ae114ac90035d07f63a44db73586a64a9d37be13 |
| pythongh-109649: Add affinity parameter to os.cpu_count() | https://github.com/vstinner/cpython/commit/276214403af8c88f66a463109709538ca1668f61 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 2762144 | https://github.com/vstinner/cpython/commit/276214403af8c88f66a463109709538ca1668f61 |
| pythongh-109649: Add os.process_cpu_count() function | https://github.com/vstinner/cpython/commit/48c68d2fc884e9a2074268c0559439b183648968 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 48c68d2 | https://github.com/vstinner/cpython/commit/48c68d2fc884e9a2074268c0559439b183648968 |
| pythongh-109649: Add os.process_cpu_count() function | https://github.com/vstinner/cpython/commit/e3554fa71916ca904922b195922f9ea02d207170 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| e3554fa | https://github.com/vstinner/cpython/commit/e3554fa71916ca904922b195922f9ea02d207170 |
| pythongh-109649: Add os.process_cpu_count() function | https://github.com/vstinner/cpython/commit/69c8bf46f2bd34551222d5e34405e5ca91254c14 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 69c8bf4 | https://github.com/vstinner/cpython/commit/69c8bf46f2bd34551222d5e34405e5ca91254c14 |
| vstinner | https://github.com/vstinner |
| on Sep 30, 2023 | https://github.com/python/cpython/issues/109649#event-10518169314 |
| pythongh-109649: Use os.process_cpu_count() | https://github.com/vstinner/cpython/commit/5a6d0437c615936c8e04b7af04888d203b091ef2 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 5a6d043 | https://github.com/vstinner/cpython/commit/5a6d0437c615936c8e04b7af04888d203b091ef2 |
| pythongh-109649: Use os.process_cpu_count() | https://github.com/vstinner/cpython/commit/c1c59bf8d80090fe55a29f79e130dfa373076035 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| c1c59bf | https://github.com/vstinner/cpython/commit/c1c59bf8d80090fe55a29f79e130dfa373076035 |
| pythongh-109649: Use os.process_cpu_count() | https://github.com/vstinner/cpython/commit/6b15e90e8a2238415a6033690fc26a88f3e527b4 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 6b15e90 | https://github.com/vstinner/cpython/commit/6b15e90e8a2238415a6033690fc26a88f3e527b4 |
| pythongh-109649: Enhance os.cpu_count() documentation | https://github.com/vstinner/cpython/commit/208ef27d2f6ff4f73714f8fdd6fc5c9408e94e83 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 208ef27 | https://github.com/vstinner/cpython/commit/208ef27d2f6ff4f73714f8fdd6fc5c9408e94e83 |
| pythongh-109649: Enhance os.cpu_count() documentation | https://github.com/vstinner/cpython/commit/b370b73cff134830bae0f368c5bd9c6bc0385bf7 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| b370b73 | https://github.com/vstinner/cpython/commit/b370b73cff134830bae0f368c5bd9c6bc0385bf7 |
| gh-109649: Use os.process_cpu_count() (#110165) | https://github.com/python/cpython/commit/a46e96076898d126c9f276aef1934195aac34b4e |
| gh-109649 | https://github.com/python/cpython/issues/109649 |
| #110165 | https://github.com/python/cpython/pull/110165 |
| a46e960 | https://github.com/python/cpython/commit/a46e96076898d126c9f276aef1934195aac34b4e |
| Yhg1s | https://github.com/Yhg1s |
| on Oct 2, 2023 | https://github.com/python/cpython/issues/109649#event-10527754220 |
| [3.12] gh-109649: Enhance os.cpu_count() documentation (#110169) | https://github.com/python/cpython/commit/5245b97e132ae071e2b574224e0788cab62fdcc9 |
| gh-109649 | https://github.com/python/cpython/issues/109649 |
| #110169 | https://github.com/python/cpython/pull/110169 |
| 5245b97 | https://github.com/python/cpython/commit/5245b97e132ae071e2b574224e0788cab62fdcc9 |
| miss-islington | https://github.com/miss-islington |
| on Oct 2, 2023 | https://github.com/python/cpython/issues/109649#event-10527757312 |
| [3.12] pythongh-109649: Enhance os.cpu_count() documentation (pythonG… | https://github.com/miss-islington/cpython/commit/cfc236c1caf74010647b7d74e0477f7a58eeaa19 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| pythonG… | https://github.com/python/cpython/pull/110169 |
| cfc236c | https://github.com/miss-islington/cpython/commit/cfc236c1caf74010647b7d74e0477f7a58eeaa19 |
| gpshead | https://github.com/gpshead |
| on Oct 3, 2023 | https://github.com/python/cpython/issues/109649#event-10532172004 |
| [3.11] [3.12] gh-109649: Enhance os.cpu_count() documentation (GH-110169 | https://github.com/python/cpython/commit/bf6843e91f70a9956acb8a1cdd0564d3598b9a6e |
| gh-109649 | https://github.com/python/cpython/issues/109649 |
| GH-110169 | https://github.com/python/cpython/pull/110169 |
| bf6843e | https://github.com/python/cpython/commit/bf6843e91f70a9956acb8a1cdd0564d3598b9a6e |
| vstinner | https://github.com/vstinner |
| on Nov 3, 2023 | https://github.com/python/cpython/issues/109649#event-10854675371 |
| pythongh-109649: Fix test_os.test_process_cpu_count_affinity() | https://github.com/vstinner/cpython/commit/2db7d4ff537b7999104b8b807cac6053ba23ce86 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| 2db7d4f | https://github.com/vstinner/cpython/commit/2db7d4ff537b7999104b8b807cac6053ba23ce86 |
| gh-109649: Fix test_os.test_process_cpu_count_affinity() (#111689) | https://github.com/python/cpython/commit/244e37b22a826eeb37bc057193bbff7138bc6ac3 |
| gh-109649 | https://github.com/python/cpython/issues/109649 |
| #111689 | https://github.com/python/cpython/pull/111689 |
| 244e37b | https://github.com/python/cpython/commit/244e37b22a826eeb37bc057193bbff7138bc6ac3 |
| aisk | https://github.com/aisk |
| on Feb 11, 2024 | https://github.com/python/cpython/issues/109649#event-11766812311 |
| pythongh-109649: Fix test_os.test_process_cpu_count_affinity() (pytho… | https://github.com/aisk/cpython/commit/36895e1661136d4bbc05eb1b23a5d068d92ace39 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| pytho… | https://github.com/python/cpython/pull/111689 |
| 36895e1 | https://github.com/aisk/cpython/commit/36895e1661136d4bbc05eb1b23a5d068d92ace39 |
| Glyphack | https://github.com/Glyphack |
| on Sep 2, 2024 | https://github.com/python/cpython/issues/109649#event-14106065647 |
| pythongh-109649: Add os.process_cpu_count() function (python#109907) | https://github.com/Glyphack/cpython/commit/7662bfc357d2c4185096b325ed985a8deb6a5c17 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| python#109907 | https://github.com/python/cpython/pull/109907 |
| 7662bfc | https://github.com/Glyphack/cpython/commit/7662bfc357d2c4185096b325ed985a8deb6a5c17 |
| pythongh-109649: Use os.process_cpu_count() (python#110165) | https://github.com/Glyphack/cpython/commit/c3bc035dcfaf62798a8755e463895f4422f0869d |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| python#110165 | https://github.com/python/cpython/pull/110165 |
| c3bc035 | https://github.com/Glyphack/cpython/commit/c3bc035dcfaf62798a8755e463895f4422f0869d |
| pythongh-109649: Fix test_os.test_process_cpu_count_affinity() (pytho… | https://github.com/Glyphack/cpython/commit/dcd6d004e720957c0cb81afe4684a2cf7d94ea38 |
| pythongh-109649 | https://github.com/python/cpython/issues/109649 |
| pytho… | https://github.com/python/cpython/pull/111689 |
| dcd6d00 | https://github.com/Glyphack/cpython/commit/dcd6d004e720957c0cb81afe4684a2cf7d94ea38 |
| Sign up for free | https://github.com/signup?return_to=https://github.com/python/cpython/issues/109649 |
| Sign in to comment | https://github.com/login?return_to=https://github.com/python/cpython/issues/109649 |
| type-featureA feature request or enhancement | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |