-
Notifications
You must be signed in to change notification settings - Fork 721
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
InstantOn adjust heap size with restore machine #18168
Conversation
might want to also update OMR side function just for consistency |
in subject, i'd say 'adjust' is more appropriate then 'align' |
65c64c6
to
16546ff
Compare
add some more info into PR description how we treat a couple of special cases (when we ignore and proceed vs when we fail) |
390b543
to
36112eb
Compare
Updated, please take a look :) |
jenkins test sanity aix,win jdk11 |
d3fc950
to
4c1771f
Compare
PR comment should match the commit comment |
7f47e5a
to
89bc6d3
Compare
89bc6d3
to
464f866
Compare
When we snapshot on a machine with higher physical memory and restore on one with lower physical memory, the InstantOn JVM heap size will be larger than a usual JVM run on the restore machine. And the momory usage will be abnormally higher. Update the extension with the correct physical memory limit and utilize the existing softmax mechanism to solve the problem. Note we only update the softmax if it is smaller than the Xmx size. If it is smaller than the Xms size, then we upscale the softmx to match with the Xms size. Related: eclipse-openj9#17596 Detailed behavior table: eclipse-openj9#18217 (comment) Signed-off-by: Frank Kang [email protected]
464f866
to
f3e0870
Compare
jenkins test sanity.functional xLinux jdk21 |
jenkins test sanity win,aix jdk11 |
1 'elapse time' failure on Windows. Seems unrelated. Merging.... |
Add supporting test cases and related testing scripts. Softmx functionalities: eclipse-openj9#18168 Functional changes: eclipse-openj9#19037
Add supporting test cases and related testing scripts. Softmx functionalities: eclipse-openj9#18168 Functional changes: eclipse-openj9#19037
Adjust heap size for CRIU restore
When we snapshot on a machine with higher physical memory and restore on one
with lower physical memory, the InstantOn JVM heap size will be larger than
a usual JVM run on the restore machine. And the momory usage will be abnormally
higher.
Update the extension with the correct physical memory limit and utilize the
existing softmax mechanism to solve the problem. Note we only update the softmax
if it is smaller than the Xmx size. If it is smaller than the
Xms size, then we upscale the softmx to match with the Xms size.
Related:
#17596
Detailed behavior table:
#18217 (comment)
Signed-off-by: Frank Kang [email protected]