| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Measured with a limited address space and the peak RSS of the process: * TupleTest.test_repeat_large_2 keeps 3 tuples of pointers alive, as its siblings do, but declared the count for a 32-bit build. * The md5 tests hash the data and a io.BytesIO() copy of it. * testDecompress4G keeps the data, the compressed and the decompressed bytes alive, and the decompressor grows its output buffer. * test_huge_string_builtins uses 3 times the string size, not 2. * test_large_subn uses a bit more than the 18 times it declared. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
Sorry, something went wrong.
|
GH-155312 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
GH-155313 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-155314 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…GH-155307) (GH-155314) Measured with a limited address space and the peak RSS of the process: * TupleTest.test_repeat_large_2 keeps 3 tuples of pointers alive, as its siblings do, but declared the count for a 32-bit build. * The md5 tests hash the data and a io.BytesIO() copy of it. * testDecompress4G keeps the data, the compressed and the decompressed bytes alive, and the decompressor grows its output buffer. * test_huge_string_builtins uses 3 times the string size, not 2. * test_large_subn uses a bit more than the 18 times it declared. (cherry picked from commit e469fa9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
…GH-155307) (GH-155313) Measured with a limited address space and the peak RSS of the process: * TupleTest.test_repeat_large_2 keeps 3 tuples of pointers alive, as its siblings do, but declared the count for a 32-bit build. * The md5 tests hash the data and a io.BytesIO() copy of it. * testDecompress4G keeps the data, the compressed and the decompressed bytes alive, and the decompressor grows its output buffer. * test_huge_string_builtins uses 3 times the string size, not 2. * test_large_subn uses a bit more than the 18 times it declared. (cherry picked from commit e469fa9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
…GH-155307) (#155312) gh-75876: Correct the memory use declared by some bigmem tests (GH-155307) Measured with a limited address space and the peak RSS of the process: * TupleTest.test_repeat_large_2 keeps 3 tuples of pointers alive, as its siblings do, but declared the count for a 32-bit build. * The md5 tests hash the data and a io.BytesIO() copy of it. * testDecompress4G keeps the data, the compressed and the decompressed bytes alive, and the decompressor grows its output buffer. * test_huge_string_builtins uses 3 times the string size, not 2. * test_large_subn uses a bit more than the 18 times it declared. (cherry picked from commit e469fa9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ythonGH-155307) Measured with a limited address space and the peak RSS of the process: * TupleTest.test_repeat_large_2 keeps 3 tuples of pointers alive, as its siblings do, but declared the count for a 32-bit build. * The md5 tests hash the data and a io.BytesIO() copy of it. * testDecompress4G keeps the data, the compressed and the decompressed bytes alive, and the decompressor grows its output buffer. * test_huge_string_builtins uses 3 times the string size, not 2. * test_large_subn uses a bit more than the 18 times it declared. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
Some bigmem tests declare less memory than they use. Measured as the peak RSS of a process running a single test with -M:
test_repeat_large_2 keeps 3 tuples of pointers alive, as test_repeat_small and test_repeat_large do, but declared 12 instead of pointer_size * 3, which is the count for a 32-bit build.
The md5 tests pass the data to check_file_digest(), which copies all of it into an io.BytesIO().
testDecompress4G keeps the data, the compressed and the decompressed bytes alive at the same time, and the decompressor grows its output buffer.
These are the only tests which use more memory than they declare. Every other bigmem test was measured too, except the two test_marshal tests which declare 256 GiB and cannot be run anywhere: the largest excess is 1.04x, and it is 20 MiB in the median.