Skip to content

test_free_threading.test_pickle takes more than 4 minutes and consumes up to 22 GiB of memory #150257

@vstinner

Description

@vstinner

Sometimes, test_free_threading.test_pickle takes more than 4 minutes and consumes up to 22 GiB of memory. I had to interrupt the job to avoid an OOM error.

Output of a modified Python on my Fedora 44:

$ ./python -m test -j0 test_free_threading
(...)
0:04:14 load avg: 2.46 mem: 22.0 GiB running (1): test_free_threading.test_pickle (4 min 10 sec)
  pid 1267609: test_free_threading.test_pickle: 22660.4 MiB
0:04:15 load avg: 2.46 mem: 22.1 GiB running (1): test_free_threading.test_pickle (4 min 12 sec)
  pid 1267609: test_free_threading.test_pickle: 22761.5 MiB
0:04:17 load avg: 2.46 mem: 22.2 GiB running (1): test_free_threading.test_pickle (4 min 13 sec)
  pid 1267609: test_free_threading.test_pickle: 23027.4 MiB
0:04:18 load avg: 2.43 mem: 22.5 GiB running (1): test_free_threading.test_pickle (4 min 15 sec)
^C

Linked PRs

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions