<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Hi Georgios,<br>
<br>
The regression seems to come from the lack of CDS. I see similar
regressions when I run with -Xshare:off.<br>
<br>
I guess that these EA builds don't include the CDS archive for
compact object headers:<br>
$ time jdk-24-ea-b25/bin/java -XX:+UnlockExperimentalVMOptions
-XX:+UseCompactObjectHeaders -Xlog:cds*=trace -version<br>
[0.012s][info][cds] trying to map
/home/stefank/java/jdk-24-ea-b25/lib/server/classes_coh.jsa<br>
[0.012s][info][cds] Specified shared archive not found
(/home/stefank/java/jdk-24-ea-b25/lib/server/classes_coh.jsa)<br>
[0.012s][info][cds] Initialize static archive failed.<br>
[0.012s][info][cds] Unable to map shared spaces<br>
<br>
Try to first dump the CDS archive with:<br>
$ jdk-24-ea-b25/bin/java -XX:+UnlockExperimentalVMOptions
-XX:+UseCompactObjectHeaders -Xshare:dump -version<br>
<br>
After I have run that I get the CDS archive:<br>
$ time jdk-24-ea-b25/bin/java -XX:+UnlockExperimentalVMOptions
-XX:+UseCompactObjectHeaders -Xlog:cds*=trace -version<br>
[0.011s][info][cds] trying to map
/home/stefank/java/jdk-24-ea-b25/lib/server/classes_coh.jsa<br>
[0.011s][info][cds] Opened archive
/home/stefank/java/jdk-24-ea-b25/lib/server/classes_coh.jsa.<br>
[0.011s][info][cds] Archive was created with UseCompressedOops = 1,
UseCompressedClassPointers = 1, UseCompactObjectHeaders = 1<br>
...<br>
<br>
Could you try and see if that helps the startup times for you?<br>
<br>
Cheers,<br>
StefanK<br>
<br>
<div class="moz-cite-prefix">On 2024-11-25 15:22, Georgios
Andrianakis wrote:<br>
</div>
<blockquote type="cite" cite="mid:CALeTM-n=tH+H_3FbJdaVEnqXdNgkqqFv4a0RKWZxAuCYGFCqrg@mail.gmail.com">
<div dir="ltr">
<div>
<div>Hi folks,</div>
<div><br>
</div>
<div>I just tried the Lilliput (JEP 450) using the latest
OpenJDK 24 EA <a href="https://jdk.java.net/24/" target="_blank" moz-do-not-send="true">build</a> on a <a href="https://github.com/quarkusio/quarkus-quickstarts/tree/main/rest-client-quickstart" target="_blank" moz-do-not-send="true">sample Quarkus
application </a>to see how beneficial Lilliput can be for
us.</div>
<div><br>
</div>
<div>On my machine (a Ryzen 5950X running Linux) with Lilliput
disabled, the application starts up in around 600ms and
consumes around 140MB of RSS memory (before the application
handles any traffic). <br>
</div>
<div>With Lilliput enabled (via
-XX:+UnlockExperimentalVMOptions
-XX:+UseCompactObjectHeaders) I see RSS falling to around
130MB which is really nice!</div>
<div>However I also see a startup regression of around 30ms
(approximately 5%). Is this something that is expected?</div>
<div><br>
</div>
<div>Thanks!<br>
</div>
<div><br>
</div>
<div>P.S. Apologies if this is not the correct mailing list
for Lilliput related topics<font color="#888888"><br clear="all">
</font></div>
</div>
<br>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<p style="font-weight:bold;margin:0;padding:0;font-size:14px;margin-bottom:0;font-family:'RedHatText',sans-serif">
<span>Georgios</span> <span>Andrianakis</span> <span style="color:#aaa;margin:0"></span> </p>
<p style="font-weight:normal;font-size:12px;margin:0px;font-family:"RedHatText",sans-serif">
<span>Independent Contractor</span></p>
<p style="font-weight:normal;font-size:12px;margin:0px;font-family:"RedHatText",sans-serif"><span><br>
</span> </p>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>