Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-117755: Remove tests on huge memory allocations#117938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:remove_big_alloc_tests
Apr 16, 2024

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedApr 16, 2024
edited by bedevere-appbot
Loading

Remove unreliable tests on huge memory allocations:

On Linux, depending how overcommit is configured, especially on Linux s390x, a huge memory allocation (half or more of the full address space) can succeed, but then the process will eat the full system swap and make the system slower and slower until the whole system becomes unusable.

Moreover, these tests had to be skipped when Python is built with sanitizers.

Remove unreliable tests on huge memory allocations:* Remove test_maxcontext_exact_arith() of test_decimal.  Stefan Krah, test author, agreed on removing the test:python#114331 (comment)* Remove test_constructor() tests of test_io.  Sam Gross suggests remove them:python#117809 (review)On Linux, depending how overcommit is configured, especially on Linuxs390x, a huge memory allocation (half or more of the full addressspace) can succeed, but then the process will eat the full systemswap and make the system slower and slower until the whole systembecomes unusable.Moreover, these tests had to be skipped when Python is built withsanitizers.
@vstinner
Copy link
MemberAuthor

cc@colesbury

colesbury reacted with thumbs up emoji

@vstinner
Copy link
MemberAuthor

@colesbury: Are you ok to remove these tests?

Copy link
Contributor

@colesburycolesbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yes

@vstinnervstinner merged commite05d202 intopython:mainApr 16, 2024
@vstinnervstinner deleted the remove_big_alloc_tests branchApril 16, 2024 20:05
@vstinner
Copy link
MemberAuthor

Merged, thanks for the confirmation@colesbury.

diegorusso pushed a commit to diegorusso/cpython that referenced this pull requestApr 17, 2024
Remove unreliable tests on huge memory allocations:* Remove test_maxcontext_exact_arith() of test_decimal.  Stefan Krah, test author, agreed on removing the test:python#114331 (comment)* Remove test_constructor() tests of test_io.  Sam Gross suggests remove them:python#117809 (review)On Linux, depending how overcommit is configured, especially on Linuxs390x, a huge memory allocation (half or more of the full addressspace) can succeed, but then the process will eat the full systemswap and make the system slower and slower until the whole systembecomes unusable.Moreover, these tests had to be skipped when Python is built withsanitizers.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@colesburycolesburycolesbury approved these changes

@rhettingerrhettingerAwaiting requested review from rhettinger

Assignees
No one assigned
Labels
skip newstestsTests in the Lib/test dir
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@vstinner@colesbury

[8]ページ先頭

©2009-2025 Movatter.jp