Skip to content

gh-75876: Report the peak memory use of a bigmem test - #156024

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:bigmemtest-maxrss
Aug 19, 2026
Merged

gh-75876: Report the peak memory use of a bigmem test#156024
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:bigmemtest-maxrss

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 18, 2026

Copy link
Copy Markdown
Member

In verbose mode, report how much memory the test really used, next to how much it declared:

 ... expected peak memory use: 4.0 GiB
 ... peak memory use: 4.0 GiB

The subprocess measures its own peak; if it died before reporting it, the parent reports what it sampled, as a lower bound.

Report also the number of major page faults, if any: the test did not fit in memory, so its timing means little.

In verbose mode, report how much memory the test really used, next to how
much it declared.  The subprocess measures its own peak; if it died before
reporting it, the parent reports what it sampled, as a lower bound.

Report also the number of major page faults, if any: the test did not fit in
memory, so its timing means little.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bedevere-app bedevere-app Bot mentioned this pull request Aug 18, 2026
@serhiy-storchaka serhiy-storchaka added the tests Tests in the Lib/test dir label Aug 18, 2026
@serhiy-storchaka
serhiy-storchaka merged commit 3cfc87e into python:main Aug 19, 2026
55 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the bigmemtest-maxrss branch August 19, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant