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

Do not resize Copy Scan Cache pool after overflow #7060

Merged

Conversation

amicic
Copy link
Contributor

@amicic amicic commented Jul 11, 2023

Simplify the logic where we try to resize Copy Scan Cache pool at the end of Scavenge cycle, after we overflowed it and fullfilled it from Java Heap.

This overflow is extremly unlikely, and if does occur it means native memory is depleted and some other problems will soon occur anyway, so trying hard to preemtpively take that memory for our pool is probably just futile.

On the other side, currently we will try to resize at the end of Scavenge, but assert since the increment was previously set to 0, when we artifically set the limit of this pool (with an fvt option). We already have means of preventing further pool growth during GC (from initial growth) from native heap beyond the limit (by recognizing fvt option was set), and we don't even need to set increment to 0.

Simplify the logic where we try to resize Copy Scan Cache pool at the
end of Scavenge cycle, after we overflowed it and fullfilled it from
Java Heap.

This overflow is extremly unlikely, and if does occur it means native
memory is depleted and some other problems will soon occur anyway, so
trying hard to preemtpively take that memory for our pool is probably
just futile.

On the other side, currently we will try to resize at the end of
Scavenge, but assert since the increment was previously set to 0, when
we artifically set the limit of this pool (with an fvt option). We
already have means of preventing further pool growth during GC (from
initial growth) from native heap beyond the limit (by recognizing fvt
option was set), and we don't even need to set increment to 0.

Signed-off-by: Aleksandar Micic <Aleksandar_Micic@ca.ibm.com>
@amicic
Copy link
Contributor Author

amicic commented Jul 11, 2023

@dmitripivkine please, take a look

@dmitripivkine
Copy link
Contributor

@babsingh Would you please help to merge this?

@babsingh
Copy link
Contributor

jenkins build all

Copy link
Contributor

@babsingh babsingh left a comment

Choose a reason for hiding this comment

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

https://ci.eclipse.org/omr/job/PullRequest-zos_390-64/4160

zOS PR build will fail since all nodes of label ‘compile:zos’ are offline.

Merging: these are platform independent changes; zOS PR build is not needed.

@babsingh babsingh merged commit e10a1e5 into eclipse-omr:master Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants