Title: Add more RLIMIT_* constants · Issue #137512 · python/cpython · GitHub
Open Graph Title: Add more RLIMIT_* constants · Issue #137512 · python/cpython
X Title: Add more RLIMIT_* constants · Issue #137512 · python/cpython
Description: Feature or enhancement There are some RLIMIT_* constants on Posix platforms which are not currently exposed in the resource module. RLIMIT_NTHR. Available on NetBSD >= 7.0, QNX >= 6.3.2. RLIMIT_UMTXP. Available on FreeBSD >= 11. RLIMIT_P...
Open Graph Description: Feature or enhancement There are some RLIMIT_* constants on Posix platforms which are not currently exposed in the resource module. RLIMIT_NTHR. Available on NetBSD >= 7.0, QNX >= 6.3.2. RLIMIT_UMT...
X Description: Feature or enhancement There are some RLIMIT_* constants on Posix platforms which are not currently exposed in the resource module. RLIMIT_NTHR. Available on NetBSD >= 7.0, QNX >= 6.3.2. RLIM...
Opengraph URL: https://github.com/python/cpython/issues/137512
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add more RLIMIT_* constants","articleBody":"# Feature or enhancement\n\nThere are some `RLIMIT_*` constants on Posix platforms which are not currently exposed in the `resource` module.\n\n* `RLIMIT_NTHR`. Available on NetBSD \u003e= 7.0, QNX \u003e= 6.3.2.\n* `RLIMIT_UMTXP`. Available on FreeBSD \u003e= 11.\n* `RLIMIT_PIPEBUF`. Available in the main branch on FreeBSD ~(\u003e= 15?)~ \u003e= 14.2.\n* `RLIMIT_THREADS`. Available on AIX. The same as `RLIMIT_NTHR`?\n* `RLIMIT_VMEM`. Available on Solaris/OpenIndiana. On FreeBSD \u003e= 5.3 it is an alias of `RLIMIT_AS`.\n\nConstants `RLIM_SAVED_CUR` and `RLIM_SAVED_MAX` are used on some platforms (Solaris/OpenIndiana, AIX) to represent values that cannot be represented in 32-bit `rlim_t`.\n\n~It is perhaps too early to add `RLIMIT_PIPEBUF`.~\n\n`RLIMIT_NTHR` and `RLIMIT_THREADS`, should we only add one of them on the corresponding platform or add both names as aliases of one other?\n\n`RLIMIT_VMEM`. Should we add it as an alias of `RLIMIT_AS` on all other platforms?\n\nI am not sure whether `RLIM_SAVED_CUR` and `RLIM_SAVED_MAX` are still relevant on modern Unixes. Their use is complicated. They are the part of Posix, but not defined on Linux. On FreeBSD they are aliases of `RLIM_INFINITY` and are not useful at all.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-137513\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2025-08-07T11:11:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/137512/cpython/issues/137512"}
| 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:c5e63acc-6eb2-7041-13ae-0a86d6e084f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2AC:37912F:30D5AB:43858E:6A584509 |
| html-safe-nonce | feaeb3faa748f9ba028ed13e85d1b28bbce73f93c1a2caaccf4371870c1b9708 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkFDOjM3OTEyRjozMEQ1QUI6NDM4NThFOjZBNTg0NTA5IiwidmlzaXRvcl9pZCI6IjQ5MDA2Nzk4OTEyMjQ2NDI4MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1403d2771a147796668bed5021e8f51d8a76b96c04932956ab85183e2dbc157f |
| hovercard-subject-tag | issue:3300049561 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/137512/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dbbbd5f6792c50a8189c33281df07c1ea3d8a9ce3d6f12d8dbffe89b6ae98232/python/cpython/issues/137512 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dbbbd5f6792c50a8189c33281df07c1ea3d8a9ce3d6f12d8dbffe89b6ae98232/python/cpython/issues/137512 |
| og:image:alt | Feature or enhancement There are some RLIMIT_* constants on Posix platforms which are not currently exposed in the resource module. RLIMIT_NTHR. Available on NetBSD >= 7.0, QNX >= 6.3.2. RLIMIT_UMT... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width