Title: gh-144319: obtain SeLockMemoryPrivilege on Windows by chris-eibl · Pull Request #144928 · python/cpython · GitHub
Open Graph Title: gh-144319: obtain SeLockMemoryPrivilege on Windows by chris-eibl · Pull Request #144928 · python/cpython
X Title: gh-144319: obtain SeLockMemoryPrivilege on Windows by chris-eibl · Pull Request #144928 · python/cpython
Description: Obtain SeLockMemoryPrivilege on startup on Windows to be able to use large pages when requested by setting the environment variable PYTHON_PYMALLOC_HUGEPAGES. I've decided to fail if that doesn't succeed instead of silently switching to normal 4K pages and updated the documentation. Using bench_obmalloc.py from the issue I get Benchmark Default Hugepages Change arena_pressure 0.717s 0.477 -33.5% mixed_sizes 0.213s 0.156 -27.0% list_of_tuples 2.417s 1.876 -22.4% class_instances 0.224s 0.180 -19.6% fragmentation 0.250s 0.204 -18.1% bulk_small_alloc 0.324s 0.266 -18.0% random_walk 1.364s 1.161 -14.8% dict_churn 0.123s 0.122 -1.1% for an AMD64 VS2026 release build (no PGO) on my PC (Haswell i5-4570, Windows 10). Issue: gh-144319 📚 Documentation preview 📚: https://cpython-previews--144928.org.readthedocs.build/
Open Graph Description: Obtain SeLockMemoryPrivilege on startup on Windows to be able to use large pages when requested by setting the environment variable PYTHON_PYMALLOC_HUGEPAGES. I've decided to fail if that doesn...
X Description: Obtain SeLockMemoryPrivilege on startup on Windows to be able to use large pages when requested by setting the environment variable PYTHON_PYMALLOC_HUGEPAGES. I've decided to fail if that d...
Opengraph URL: https://github.com/python/cpython/pull/144928
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:eb76a678-bb48-37b6-112f-be99a81f7e3b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B780:29383A:9D0567:D3FC4F:6A515C27 |
| html-safe-nonce | a15a996c5434c0a784378f839594254e8cfa510b02d38a1d9d3a54cf6dbe997a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzgwOjI5MzgzQTo5RDA1Njc6RDNGQzRGOjZBNTE1QzI3IiwidmlzaXRvcl9pZCI6IjQ2OTEwOTA0ODY1MjEzMjI1MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 12b2a37de09ab1cecbe030474d8298947633ad69af65df45c6c22b5af26c9c5f |
| hovercard-subject-tag | pull_request:3295568757 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/144928/files |
| twitter:image | https://avatars.githubusercontent.com/u/138194463?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/138194463?s=400&v=4 |
| og:image:alt | Obtain SeLockMemoryPrivilege on startup on Windows to be able to use large pages when requested by setting the environment variable PYTHON_PYMALLOC_HUGEPAGES. I've decided to fail if that doesn... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f17634ed2af1d116850bcea6c63a70a4d72970f33ade1dd3eef3764b7e16994 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d32229a0a79708ee9a4f132f630b36d58b4495a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width