| 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 | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:1d55a68e-24ab-792f-1c8b-5be22e79303b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B634:174DE2:ECEEC7:13CDC49:6B064EAE |
| html-safe-nonce | ddc83f782b00a98b645477ae02ff3908de1121112f09ccb30d4e136ff2cc19de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjM0OjE3NERFMjpFQ0VFQzc6MTNDREM0OTo2QjA2NEVBRSIsInZpc2l0b3JfaWQiOiIxNjg4NTE0MjI3NTQ1MTk4MjU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 35e7d325575ab5899ee56376796e74154f465abc9923a88ebf1ff1ade99ee832 |
| hovercard-subject-tag | pull_request:5462227991 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/162510/commits |
| twitter:image | https://opengraph.githubassets.com/c7a99855cadcc6f376b54d59d10dd422cb616cdb2fb51fb7bcd2a777472e89f7/python/cpython/pull/162510 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7a99855cadcc6f376b54d59d10dd422cb616cdb2fb51fb7bcd2a777472e89f7/python/cpython/pull/162510 |
| og:image:alt | Fixes #149452
Issue: os.process_cpu_count() should take cgroups CPU limitations into account (on Linux) #149452 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | itamarst |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| turbo-cache-control | no-cache |
| 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 | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/162510/commits#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F162510%2Fcommits |
| 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%2Fpull%2F162510%2Fcommits |
| 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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/162510/commits |
| Reload | https://github.com/python/cpython/pull/162510/commits |
| Reload | https://github.com/python/cpython/pull/162510/commits |
| 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 |
| itamarst | https://github.com/itamarst |
| python:main | https://github.com/python/cpython/tree/main |
| itamarst:149452-cgroups-process_count | https://github.com/itamarst/cpython/tree/149452-cgroups-process_count |
| Conversation | https://github.com/python/cpython/pull/162510 |
| Commits17 (17) | https://github.com/python/cpython/pull/162510/commits |
| Checks | https://github.com/python/cpython/pull/162510/checks |
| Files changed | https://github.com/python/cpython/pull/162510/files |
| gh-149452: os.process_cpu_count() now respects cgroups | https://github.com/python/cpython/pull/162510/commits#top |
| itamarst | https://github.com/itamarst |
| python:main | https://github.com/python/cpython/tree/main |
| itamarst:149452-cgroups-process_count | https://github.com/itamarst/cpython/tree/149452-cgroups-process_count |
| Preliminary test for respecting cgroups in process_cpu_count() | https://github.com/python/cpython/pull/162510/commits/9cc699320222512df8ab62e33b3607d3bf8df190 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| 9cc6993 | https://github.com/python/cpython/pull/162510/commits/9cc699320222512df8ab62e33b3607d3bf8df190 |
| https://github.com/python/cpython/tree/9cc699320222512df8ab62e33b3607d3bf8df190 |
| Sketch of cgroups implementation for process_cpu_count() | https://github.com/python/cpython/pull/162510/commits/b32eb6119233c5255153323b0f885aa14ac2884f |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| b32eb61 | https://github.com/python/cpython/pull/162510/commits/b32eb6119233c5255153323b0f885aa14ac2884f |
| https://github.com/python/cpython/tree/b32eb6119233c5255153323b0f885aa14ac2884f |
| Extend testing | https://github.com/python/cpython/pull/162510/commits/5e5e3f3b26276aa17a233416d93af4aab0017696 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| 5e5e3f3 | https://github.com/python/cpython/pull/162510/commits/5e5e3f3b26276aa17a233416d93af4aab0017696 |
| https://github.com/python/cpython/tree/5e5e3f3b26276aa17a233416d93af4aab0017696 |
| Documentation | https://github.com/python/cpython/pull/162510/commits/4b4fef767d7dbd0a150809812fc48a013473bbb7 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| 4b4fef7 | https://github.com/python/cpython/pull/162510/commits/4b4fef767d7dbd0a150809812fc48a013473bbb7 |
| https://github.com/python/cpython/tree/4b4fef767d7dbd0a150809812fc48a013473bbb7 |
| Add changelog entry | https://github.com/python/cpython/pull/162510/commits/d87dc8f2c45c0de406fb6605f12b3bf73d64a2ba |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| d87dc8f | https://github.com/python/cpython/pull/162510/commits/d87dc8f2c45c0de406fb6605f12b3bf73d64a2ba |
| https://github.com/python/cpython/tree/d87dc8f2c45c0de406fb6605f12b3bf73d64a2ba |
| Edits | https://github.com/python/cpython/pull/162510/commits/c087aaa0c530824e5c510494ce336aed0b19690f |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| c087aaa | https://github.com/python/cpython/pull/162510/commits/c087aaa0c530824e5c510494ce336aed0b19690f |
| https://github.com/python/cpython/tree/c087aaa0c530824e5c510494ce336aed0b19690f |
| Wrap | https://github.com/python/cpython/pull/162510/commits/aed27cde4cb986e4db95dda5e65cc27d54d8ef03 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| aed27cd | https://github.com/python/cpython/pull/162510/commits/aed27cde4cb986e4db95dda5e65cc27d54d8ef03 |
| https://github.com/python/cpython/tree/aed27cde4cb986e4db95dda5e65cc27d54d8ef03 |
| Apply batched suggestions from code review | https://github.com/python/cpython/pull/162510/commits/ca83a22fb1027d9dcfd9f9714b5217684bba82ed |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| ca83a22 | https://github.com/python/cpython/pull/162510/commits/ca83a22fb1027d9dcfd9f9714b5217684bba82ed |
| https://github.com/python/cpython/tree/ca83a22fb1027d9dcfd9f9714b5217684bba82ed |
| Explicitly return None | https://github.com/python/cpython/pull/162510/commits/e1245352e7349edb1034e62d8e6cc1acc1cdf2e9 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| e124535 | https://github.com/python/cpython/pull/162510/commits/e1245352e7349edb1034e62d8e6cc1acc1cdf2e9 |
| https://github.com/python/cpython/tree/e1245352e7349edb1034e62d8e6cc1acc1cdf2e9 |
| Lazy imports | https://github.com/python/cpython/pull/162510/commits/9f63b4d6ec569d1690a70a38d5c7e547bb705b35 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| 9f63b4d | https://github.com/python/cpython/pull/162510/commits/9f63b4d6ec569d1690a70a38d5c7e547bb705b35 |
| https://github.com/python/cpython/tree/9f63b4d6ec569d1690a70a38d5c7e547bb705b35 |
| Handle return of None from cpu_count(), theoretically possible | https://github.com/python/cpython/pull/162510/commits/f07acca2df7f42e29d5c731f0a4d1dfa3b295d40 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| f07acca | https://github.com/python/cpython/pull/162510/commits/f07acca2df7f42e29d5c731f0a4d1dfa3b295d40 |
| https://github.com/python/cpython/tree/f07acca2df7f42e29d5c731f0a4d1dfa3b295d40 |
| Add update of change | https://github.com/python/cpython/pull/162510/commits/8f1bb3c66d9775a8e0eb2ca5aceefe2d1533b996 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| 8f1bb3c | https://github.com/python/cpython/pull/162510/commits/8f1bb3c66d9775a8e0eb2ca5aceefe2d1533b996 |
| https://github.com/python/cpython/tree/8f1bb3c66d9775a8e0eb2ca5aceefe2d1533b996 |
| Feature, not fix | https://github.com/python/cpython/pull/162510/commits/833fcaf0b3de095ae9e403ebb9710cb3e244afe9 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| 833fcaf | https://github.com/python/cpython/pull/162510/commits/833fcaf0b3de095ae9e403ebb9710cb3e244afe9 |
| https://github.com/python/cpython/tree/833fcaf0b3de095ae9e403ebb9710cb3e244afe9 |
| Split into its own function, unit test | https://github.com/python/cpython/pull/162510/commits/5bdfa8ae77c7b5f3cbfb50ffdc30c648ca73312c |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| 5bdfa8a | https://github.com/python/cpython/pull/162510/commits/5bdfa8ae77c7b5f3cbfb50ffdc30c648ca73312c |
| https://github.com/python/cpython/tree/5bdfa8ae77c7b5f3cbfb50ffdc30c648ca73312c |
| Don't call cpu_count() in this function | https://github.com/python/cpython/pull/162510/commits/87dd48f6bfcd7be6c057f5f3980edf2f6881802c |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| 87dd48f | https://github.com/python/cpython/pull/162510/commits/87dd48f6bfcd7be6c057f5f3980edf2f6881802c |
| https://github.com/python/cpython/tree/87dd48f6bfcd7be6c057f5f3980edf2f6881802c |
| Add tests for missing files, and for parsing /proc/mounts | https://github.com/python/cpython/pull/162510/commits/5b97143169d8ddd7c94469d0f54d73da3dbf940c |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| 5b97143 | https://github.com/python/cpython/pull/162510/commits/5b97143169d8ddd7c94469d0f54d73da3dbf940c |
| https://github.com/python/cpython/tree/5b97143169d8ddd7c94469d0f54d73da3dbf940c |
| Move some testing out of end-to-end and into direct testing | https://github.com/python/cpython/pull/162510/commits/d47c4dcf17dc5f9b63be9b0b7262dc2861860445 |
| https://github.com/itamarst |
| itamarst | https://github.com/python/cpython/commits?author=itamarst |
| d47c4dc | https://github.com/python/cpython/pull/162510/commits/d47c4dcf17dc5f9b63be9b0b7262dc2861860445 |
| https://github.com/python/cpython/tree/d47c4dcf17dc5f9b63be9b0b7262dc2861860445 |
|
| 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 |