Skip to content

Some tests consume too much memory #133454

Closed

Description

@serhiy-storchaka

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.

Now, some tests need more than 1 GB of memory, or even more than 2 GB. Not all buildbots have such much.

The main culprit is running too many threads. Every thread needs 35, 70 or even 90 MB, depending on test.

There are two possible solutions:

  1. 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.
  2. Decorate the test with bigmemtest. This will skip it on most buildbots.

Linked PRs

Activity

  1. added 4 commits that reference this issue on May 5, 2025
  2. added 2 commits that reference this issue on May 8, 2025
  3. added 2 commits that reference this issue on May 8, 2025
  4. added a commit that references this issue on May 23, 2025
  5. added a commit that references this issue on May 23, 2025
  6. added a commit that references this issue on May 23, 2025
  7. added a commit that references this issue on May 23, 2025
  8. serhiy-storchaka commented on May 23, 2025

    @serhiy-storchaka
    MemberAuthor

    I think it's all for now.

  9. added a commit that references this issue on Jun 2, 2025
  10. added 2 commits that reference this issue on Jun 2, 2025
  11. added 2 commits that reference this issue on Jun 2, 2025
  12. added 3 commits that reference this issue on Jul 12, 2025
  13. added 3 commits that reference this issue on Aug 4, 2025
  14. added a commit that references this issue on Aug 19, 2025
  15. added a commit that references this issue on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions