Title: Some tests consume too much memory · Issue #133454 · python/cpython · GitHub
Open Graph Title: Some tests consume too much memory · Issue #133454 · python/cpython
X Title: Some tests consume too much memory · Issue #133454 · python/cpython
Description: Several years ago, all tests, except bigmem tests could be ran sequentially with just 650 MB of memory. There were issues with some buldbots (e.g. AIX) which small RAM, because excess memory consumption not always caused a quick test fai...
Open Graph Description: Several years ago, all tests, except bigmem tests could be ran sequentially with just 650 MB of memory. There were issues with some buldbots (e.g. AIX) which small RAM, because excess memory consum...
X Description: Several years ago, all tests, except bigmem tests could be ran sequentially with just 650 MB of memory. There were issues with some buldbots (e.g. AIX) which small RAM, because excess memory consum...
Opengraph URL: https://github.com/python/cpython/issues/133454
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some tests consume too much memory","articleBody":"Several years ago, all tests, except bigmem tests could be ran sequentially with just 650 MB of memory. There were issues with some buldbots (e.g. AIX) which small RAM, because excess memory consumption not always caused a quick test failure, but could cause swapping and failing tests at timeout 2 hours later. So all tests with high memory consumption were decorated with `bigmemtest`.\n\nNow, some tests need more than 1 GB of memory, or even more than 2 GB. Not all buildbots have such much.\n\nThe main culprit is running too many threads. Every thread needs 35, 70 or even 90 MB, depending on test.\n\nThere are two possible solutions:\n\n1. Decrease the number of threads. Some tests can perform their function with fewer threads, but this must be decided individually so as not to make the test useless.\n2. Decorate the test with `bigmemtest`. This will skip it on most buildbots.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-133456\n* gh-133458\n* gh-133663\n* gh-133664\n* gh-134575\n* gh-134589\n* gh-135046\n* gh-135047\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2025-05-05T16:42:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/133454/cpython/issues/133454"}
| 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:d32bb2da-4c67-5fa2-0a5e-b78a0e7abd8c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95F6:234B42:1A73717:2413FE5:6A53F88F |
| html-safe-nonce | 42cac0f7d278b4f3efc1561d4234fe5f36281b8418f988273087857a1ebaade1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUY2OjIzNEI0MjoxQTczNzE3OjI0MTNGRTU6NkE1M0Y4OEYiLCJ2aXNpdG9yX2lkIjoiNDk4MDIzNzU4MDQ5Mjg2MzYzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 38d557fb6b5c2e55e9143619f9f58c7219ac47aceef18b1d91a9fcc36910edb4 |
| hovercard-subject-tag | issue:3040212121 |
| 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/133454/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64e5d7ace0133c36eda33b95da33546479cbba7ce17bf6ad731de699a597c55a/python/cpython/issues/133454 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64e5d7ace0133c36eda33b95da33546479cbba7ce17bf6ad731de699a597c55a/python/cpython/issues/133454 |
| og:image:alt | Several years ago, all tests, except bigmem tests could be ran sequentially with just 650 MB of memory. There were issues with some buldbots (e.g. AIX) which small RAM, because excess memory consum... |
| 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 | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width