Skip to content

gh-150114: Reduce memory usage of test_free_threading.test_iteration#150115

Merged
colesbury merged 1 commit into
python:mainfrom
colesbury:gh-150114-reduce-test-iteration-memory
May 19, 2026
Merged

gh-150114: Reduce memory usage of test_free_threading.test_iteration#150115
colesbury merged 1 commit into
python:mainfrom
colesbury:gh-150114-reduce-test-iteration-memory

Conversation

@colesbury
Copy link
Copy Markdown
Contributor

@colesbury colesbury commented May 19, 2026

Reduce NUMITEMS from 100000 to 5000. Peak RSS for the full test_free_threading suite drops from ~850 MB to ~175 MB.

…ation

Reduce NUMITEMS from 100000 to 5000. Peak RSS for the full
test_free_threading suite drops from ~850 MB to ~175 MB.
@zooba
Copy link
Copy Markdown
Member

zooba commented May 19, 2026

There's a resource for tests with lots of memory available that we could probably use here. Let me find a reference for you...

@colesbury
Copy link
Copy Markdown
Contributor Author

It's much more valuable to have the test run for fewer iterations in the GitHub CI than more iterations behind a memory resource guard.

@zooba
Copy link
Copy Markdown
Member

zooba commented May 19, 2026

Yeah, you're right. Also the test filter has changed since I last looked at it and doesn't really suit this kind of switch so well anymore.

@cmaloney
Copy link
Copy Markdown
Contributor

In addition to bigmemtest there is also an arbitrary "resource name" system (requires()). but also not well suited. 👍 to just reducing resource usage. Have restarted quite a few jobs with this error in the sprint.

@colesbury colesbury merged commit 61f1221 into python:main May 19, 2026
61 checks passed
@colesbury colesbury added awaiting merge needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels May 19, 2026
@miss-islington-app
Copy link
Copy Markdown

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@colesbury colesbury deleted the gh-150114-reduce-test-iteration-memory branch May 19, 2026 21:37
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 19, 2026

GH-150124 is a backport of this pull request to the 3.15 branch.

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 19, 2026

GH-150123 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed needs backport to 3.15 pre-release feature fixes, bugs and security fixes needs backport to 3.14 bugs and security fixes labels May 19, 2026
colesbury added a commit that referenced this pull request May 19, 2026
…ration (gh-150115) (#150123)

Reduce NUMITEMS from 100000 to 5000. Peak RSS for the full
test_free_threading suite drops from ~850 MB to ~175 MB.

(cherry picked from commit 61f1221)

Co-authored-by: Sam Gross <colesbury@gmail.com>
colesbury added a commit that referenced this pull request May 19, 2026
…ration (gh-150115) (#150124)

Reduce NUMITEMS from 100000 to 5000. Peak RSS for the full
test_free_threading suite drops from ~850 MB to ~175 MB.

(cherry picked from commit 61f1221)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants