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

Improved memory size checking. #533

Merged
merged 1 commit into from
Jun 28, 2023
Merged

Improved memory size checking. #533

merged 1 commit into from
Jun 28, 2023

Conversation

jounathaen
Copy link
Member

Check for multiple of hugepagesize.

Related: #265

Copy link
Member

@mkroening mkroening left a comment

Choose a reason for hiding this comment

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

I am torn whether it would be better just to round town to the nearest huge page or to require the user to hit the boundary manually, as you did here. 🤔

src/params.rs Outdated Show resolved Hide resolved
@jounathaen
Copy link
Member Author

As discussed in person, I think this approach is fine, as it results in a moreless helpful error message upon failure.

@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #533 (3d3aee8) into master (7bbf368) will decrease coverage by 0.05%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #533      +/-   ##
==========================================
- Coverage   65.68%   65.64%   -0.05%     
==========================================
  Files          18       18              
  Lines        2116     2119       +3     
==========================================
+ Hits         1390     1391       +1     
- Misses        726      728       +2     
Impacted Files Coverage Δ
src/params.rs 62.50% <50.00%> (-1.44%) ⬇️

@mkroening mkroening added this pull request to the merge queue Jun 28, 2023
Merged via the queue into master with commit ea1ef0c Jun 28, 2023
@mkroening mkroening deleted the check_memsize branch June 29, 2023 15:45
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.

2 participants