<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Men Cao</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I read one openjdk bug which discuss G1 heap adaptive resizing feature, and I noticed that you mention one question like this:</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<img style="width: 562px; height: 129px; max-width: 894px;" height="129" width="562" data-image-whitelisted="" data-bit="iit" alt="image.png" src="https://mail.google.com/mail/u/0?ui=2&ik=6608b5cc4f&attid=0.1&permmsgid=msg-a:r-6477420736395640503&th=19be4ccde98acac8&view=fimg&fur=ip&permmsgid=msg-a:r-6477420736395640503&sz=s0-l75-ft&attbid=ANGjdJ_jNEj_KMV3_ZHCEk7i8wTwfOTFvj06M7VqBYNmzqEwmd_Z1oMt_lcbJpwfMS50dCifqsTnp5EfRYY_yMWSUiCSPZEahk2zjp4vdd29oMO8-hihmpCHPpLZUaU&disp=emb&realattid=ii_mkp6cic00&zw"></div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and then you mentioned that you were convinced that the proposed approach does not suffer from this issue. This is because the proposed approach </div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
does not rely on the total process CPU usage, and does not measure "GC CPU overhead", i.e., a ratio of GC CPU usage over total CPU usage.</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<img style="width: 562px; height: 118px; max-width: 894px;" height="118" width="562" data-image-whitelisted="" data-bit="iit" alt="image.png" src="https://mail.google.com/mail/u/0?ui=2&ik=6608b5cc4f&attid=0.2&permmsgid=msg-a:r-6477420736395640503&th=19be4ccde98acac8&view=fimg&fur=ip&permmsgid=msg-a:r-6477420736395640503&sz=s0-l75-ft&attbid=ANGjdJ8NJyMS1MMi8hjRsdSxUK8Rmbb7u1HQXijYiUvgzwPu5dglo-zREL_Q0m0XhpmSUPB9EIb4k-4655fXVoGRNuZnI080bazEd71s7zbQtrKEclHkNn6T7AnkP4U&disp=emb&realattid=ii_mkp6gwev1&zw"></div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
my question is that even with GCTimeRatio(gc time / (gc time + app time)) , the problem will still exist if the application</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
fall into a very low cpu cost state. for example, gc_time = 30, app_time=40,GCTimeRatio is: 30/(30+40)= 0.42, the g1</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
heap size policy will try to extend heap size to scale down GCTimeRatio。But actually the application doesn't care about</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
its performance at all under the state,because there is basically no or merely request for the app. Do you have idea about</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
it?</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(17, 85, 204);">
<a style="color: rgb(17, 85, 204);" data-saferedirecturl="https://www.google.com/url?q=https://github.com/openjdk/jdk/pull/24211&source=gmail&ust=1769315051024000&usg=AOvVaw0UgHXbMqtGkUXnIBCClkEj" class="OWAAutoLink" id="OWA5e02980e-74c4-030d-827e-39ff2aa66859" target="_blank" href="https://github.com/openjdk/jdk/pull/24211">https://github.com/openjdk/<wbr>jdk/pull/24211</a></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(17, 85, 204);">
<a style="color: rgb(17, 85, 204); text-align: left;" data-saferedirecturl="https://www.google.com/url?q=https://bugs.openjdk.org/browse/JDK-8359348&source=gmail&ust=1769315051024000&usg=AOvVaw04t_sIZPOZp5YSqzWVS-0k" class="OWAAutoLink" id="OWAba641e2d-0b09-d31b-d044-f63693f824f0" target="_blank" href="https://bugs.openjdk.org/browse/JDK-8359348">https://bugs.openjdk.org/<wbr>browse/JDK-8359348</a></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
>From shaojun wang</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
ByteDance</div>
</body>
</html>