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

Add reserved length setting #201

Merged
merged 3 commits into from
Jan 11, 2024
Merged

Conversation

GraDKh
Copy link
Contributor

@GraDKh GraDKh commented Jan 11, 2024

Before we were reserving 1 TB of virtual memory space for each memory-mapped file. Which is OK for a single x64 application which has 2^48/2 = 128 TB user address space. But if we are running EVMC tests concurrently where several dozens of files are created for each state we may end up getting memory allocation error (which is actually address space allocation error).
That's why I've added a possibility to change the default reserved length, now it is used in tests only.

@GraDKh GraDKh requested review from ufoscout, F3kilo, itsyaasir and veeso and removed request for ufoscout January 11, 2024 08:27
@GraDKh GraDKh requested a review from ufoscout January 11, 2024 13:17
@GraDKh GraDKh merged commit af983b4 into main Jan 11, 2024
1 check passed
@GraDKh GraDKh deleted the add_reserved_memory_length_setting branch January 11, 2024 18:39
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