GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-150114: Reduce memory usage of test_free_threading.test_iteration by colesbury · Pull Request #150115 · python/cpython

Conversation

@colesbury

@colesbury colesbury commented May 19, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

  • Issue: GitHub free threading CI failing with SIGTERM #150114

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@colesbury
pythongh-150114: Reduce memory usage of test_free_threading.test_iter…
8a0647f
…ation

Reduce NUMITEMS from 100000 to 5000. Peak RSS for the full
test_free_threading suite drops from ~850 MB to ~175 MB.
@colesbury colesbury added tests Tests in the Lib/test dir topic-free-threading skip news labels May 19, 2026
@bedevere-app bedevere-app Bot mentioned this pull request May 19, 2026
GitHub free threading CI failing with SIGTERM #150114
Closed
@colesbury
colesbury marked this pull request as ready for review May 19, 2026 20:41
@bedevere-app bedevere-app Bot added the awaiting core review label May 19, 2026
@zooba

zooba commented May 19, 2026

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@colesbury

colesbury commented May 19, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zooba

zooba commented May 19, 2026

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

zooba
zooba approved these changes May 19, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels May 19, 2026
@cmaloney

cmaloney commented May 19, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cmaloney
cmaloney approved these changes May 19, 2026
View reviewed changes
@colesbury
colesbury merged commit 61f1221 into python:main May 19, 2026
61 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting merge label May 19, 2026
@colesbury colesbury added awaiting merge needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels May 19, 2026
@miss-islington-app

miss-islington-app Bot commented May 19, 2026

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app

miss-islington-app Bot commented May 19, 2026

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@colesbury
colesbury deleted the gh-150114-reduce-test-iteration-memory branch May 19, 2026 21:37
@colesbury colesbury removed the awaiting merge label May 19, 2026
@bedevere-app

bedevere-app Bot commented May 19, 2026

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app

bedevere-app Bot commented May 19, 2026

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed needs backport to 3.15 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
@miss-islington @colesbury
[3.14] gh-150114: Reduce memory usage of test_free_threading.test_ite…
dc3a0b4
…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 <[email protected]>
colesbury added a commit that referenced this pull request May 19, 2026
@miss-islington @colesbury
[3.15] gh-150114: Reduce memory usage of test_free_threading.test_ite…
de401ef
…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 <[email protected]>
@hugovk hugovk mentioned this pull request May 20, 2026
Ubuntu freethreading build failed twice spuriously #150139
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cmaloney cmaloney cmaloney approved these changes
@zooba zooba zooba approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

skip news tests Tests in the Lib/test dir topic-free-threading

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@colesbury @zooba @cmaloney
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.