Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[leap5] only run overcommit dependent tests on Linux when overcommit is configured appropriately #43

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

spoonincode
Copy link
Member

@spoonincode spoonincode commented Jan 31, 2024

These newly added tests are only well defined on Linux when overcommit_memory is set to 0 or 21. If overcommit_memory is set to 1, or run on platforms that have different semantics here then Linux, they will improperly fail. For example, on macOS it allows this large private mapping and then chainbase just takes eons writing out the entire 4TB (now 6TB in this PR) memory.

So only run these tests on Linux, and only run them when overcommit_memory is 0 or 2.

Footnotes

  1. and for both configs, that total system memory is below the threshold that the test uses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants