Skip to content

Don't store or find heap size hints when heap fully expanded - #19305

Merged
dmitripivkine merged 1 commit into
eclipse-openj9:masterfrom
amicic:no_gchints_expanded_heap
Apr 12, 2024
Merged

Don't store or find heap size hints when heap fully expanded#19305
dmitripivkine merged 1 commit into
eclipse-openj9:masterfrom
amicic:no_gchints_expanded_heap

Conversation

@amicic

@amicic amicic commented Apr 11, 2024

Copy link
Copy Markdown
Contributor

This removes the GC stress on shared cache, that may otherwise exist if there are lots of JVMs, while the hints don't do anything useful.

This removes the GC stress on shared cache, that may otherwise exist if
there are lots of JVMs, while the hints don't do anything useful.

Signed-off-by: Aleksandar Micic <Aleksandar_Micic@ca.ibm.com>
@amicic amicic added the comp:gc label Apr 11, 2024
@amicic
amicic requested a review from dmitripivkine April 11, 2024 18:18
@amicic

amicic commented Apr 11, 2024

Copy link
Copy Markdown
Contributor Author

@hangshao0 fyi

@hangshao0 hangshao0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@hangshao0

Copy link
Copy Markdown
Contributor

Not sure if you want to mention this in the documentation: https://eclipse.dev/openj9/docs/xxusegcstartuphints/

@dmitripivkine dmitripivkine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we decide to adjust something else except initial heap size this decision can be revisited.

@dmitripivkine

Copy link
Copy Markdown
Contributor

Jenkins test sanity xLinux jdk21

@amicic

amicic commented Apr 11, 2024

Copy link
Copy Markdown
Contributor Author

Not sure if you want to mention this in the documentation: https://eclipse.dev/openj9/docs/xxusegcstartuphints/

This is a performance optimization, and not changing behaviour/functionality. I don't feel a need to document that. Especially, because it will apply only after a specific release, and I don't want to go into those details.

That said, this sentence is not completely clear:

When enabled, this option overrides any initial heap size that is specified on the command line, for example by using the [-Xms](https://eclipse.dev/openj9/docs/xms/) option.

Perhaps, we want to add that even if -Xms is set, the overridden value can only be larger than -Xms (what also implies that if heap is fully expanded, it will not be overridden, but that part might be relatively obvious and does not have be mentioned). Does anyone (including @pshipton) think that extra explanation is useful/needed?

@dmitripivkine

Copy link
Copy Markdown
Contributor

Jenkins test sanity pLinux jdk21

@dmitripivkine

Copy link
Copy Markdown
Contributor

Jenkins test sanity xLinux jdk21

@pshipton

pshipton commented Apr 11, 2024

Copy link
Copy Markdown
Member

Clearer documentation is better, I don't see why we wouldn't want to add that "the overridden value can only be larger".

@pshipton

Copy link
Copy Markdown
Member

We do record performance highlights for each release on the web site, we may want to add a sentence to explain the improvement.

@amicic

amicic commented Apr 11, 2024

Copy link
Copy Markdown
Contributor Author

eclipse-openj9/openj9-docs#1319

Yes, I'm ok with mentioning the perf improvement in release notes.

@pshipton

Copy link
Copy Markdown
Member

When you are ready, pls write a sentence for the release notes, or open an issue at https://github.com/eclipse-openj9/openj9-website/issues/ with the detail.

@dmitripivkine
dmitripivkine merged commit e80a0f3 into eclipse-openj9:master Apr 12, 2024
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.

4 participants