-
Notifications
You must be signed in to change notification settings - Fork 396
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
Read system swappiness in omrsysinfo_get_memory_info() #7110
Conversation
There were some changes made for retrieving memory stats differently to incorporate changes made in |
The failure in the PR build will need to be resolved.
Also, the issue in the line endings check will need to be resolved:
|
0572847
to
8b60e4d
Compare
@babsingh Thanks for reviewing. Can you please look at the fixed code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Started builds for a sanity check. jenkins build all |
Commit message guidelines: https://github.com/eclipse/omr/blob/master/CONTRIBUTING.md#commit-guidelines
Revision:
|
The below description is a little confusing. Can we also add a comment on how to interpret the swappiness values and what decisions should be taken for specific values, for example, to improve performance? From opencontainers/runtime-spec#1005,
|
9dc3672
to
edcc96b
Compare
The intention behind reading the value of I have added extra comment to add few details about how the value read from this parameter can be interpreted but really this value defines a threshold when processes should be swapped out in favor of I/O caching. The default value of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SajinaKandy Please squash the commits after addressing the current feedback; the PR will be good to merge.
The macOS failures could to be due to #6516 as the errors happen in
|
edcc96b
to
789eb1d
Compare
@SajinaKandy Code changes LGTM. I still see two commits: https://github.com/eclipse/omr/pull/7110/commits. Can you squash them into a single commit? |
The code read swappiness value on Linux and sets OMRPORT_MEMINFO_NOT_AVAILABLE if the value is not available. The system wide swappiness value specified at /proc/sys/vm/swappiness for vm.swappiness is read. Closes: eclipse#5237 Signed-off-by: SajinaKandy <[email protected]>
789eb1d
to
ba1e956
Compare
jenkins build all |
Same failures again on macOS ( #6516 ) |
Add tiny fixes for the work in #5237 which reads swappiness value and sets OMRPORT_MEMINFO_NOT_AVAILABLE if the value is not available.
The system wide swappiness value specified at /proc/sys/vm/swappiness for vm.swappiness is read.
Closes: #5237