-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Remove use of -H:-ParseOnce
in GraalVM 22.2
#25944
Comments
Related mandrel issue: graalvm/mandrel#316 |
Quote from #25943 (comment)
I performed some more extensive testing which shows that this is still not always true. What seems to hold though is that |
@zakkak Thanks for the exhaustive testing. It's important not to forget that there's some variability in the native build memory usage. In my local testing I've found that memory usage varies between different runs with the same configuration. E.g. for the Hibernate ORM quickstart:
What I'm trying to say with this is that your ranges of -12% and +19% fall within the variability I see above. So, which ones take more or less max RSS might not be |
Note that in my testing I don't pass in |
True, my comparison is not that solid, but the fact that I am reproducing more or less the same results (in terms of RSS usage increase) with the last two times I ran similar tests (a couple of releases before 22.2) make me feel confident about this numbers. In any case, I am OK with enabling |
We no longer need to disable `ParseOnce` as memory usage with it enabled has improved in GraalVM 22.2. See https://docs.google.com/spreadsheets/d/15PJ1Qd7kgneuP61N1T2_AyJ3WBsbXpVHIPKbxgH1qfM/edit#gid=1672873268 for a comparison between using and not using `ParseOnce` with 22.2. Relates to oracle/graal#3435 and graalvm/mandrel#316 Fixes quarkusio#25944
That sounds good. Having an option to disable it in case it becomes a problem would be a good escape hatch if someone encounters memory issues with this. |
Wouldn't that be covered by passing |
@jerboaa Yes it is, I realised that after posting the comment. |
We no longer need to disable `ParseOnce` as memory usage with it enabled has improved in GraalVM 22.2. See https://docs.google.com/spreadsheets/d/15PJ1Qd7kgneuP61N1T2_AyJ3WBsbXpVHIPKbxgH1qfM/edit#gid=1672873268 for a comparison between using and not using `ParseOnce` with 22.2. Relates to oracle/graal#3435 and graalvm/mandrel#316 Fixes quarkusio#25944
We no longer need to disable `ParseOnce` as memory usage with it enabled has improved in GraalVM 22.2. See https://docs.google.com/spreadsheets/d/15PJ1Qd7kgneuP61N1T2_AyJ3WBsbXpVHIPKbxgH1qfM/edit#gid=1672873268 for a comparison between using and not using `ParseOnce` with 22.2. Relates to oracle/graal#3435 and graalvm/mandrel#316 Fixes quarkusio#25944 (cherry picked from commit 03ea11c)
When
ParseOnce
was first introduced, we discovered that the overall memory consumption went up. In my most recent testing with 22.1,ParseOnce
still added extra memory, but during the Native Image Committer Community Meeting 2022-06-02 meeting Christian mentioned that memory improvements have gone in 22.2 which should solve the problem of extra memory usage.I will carry out tests with 22.2 to verify this.
The text was updated successfully, but these errors were encountered: