<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Jungwoo,<br>
<br>
<div class="moz-cite-prefix">On 03/06/2015 06:03 PM, Jungwoo Ha
wrote:<br>
</div>
<blockquote
cite="mid:CA+n_jhi5ivU07=9wdY6A7zREw3VdQnDy_-8OkmbO32Ne6+TN3A@mail.gmail.com"
type="cite">
<div dir="ltr">I think it is the same for all JDK{7,8,9}.
<div><br>
</div>
<div>arguments.cpp disabled UseAdaptiveSizePolicy for CMS.</div>
<div>parallel scavange initializes _tenuring_threshold with</div>
<div> _tenuring_threshold = (UseAdaptiveSizePolicy) ?
InitialTenuringThreshold : MaxTenuringThreshold;</div>
<div>whereas CMS uses</div>
<div> _tenuring_threshold = MaxTenuringThreshold;</div>
<div><br>
</div>
<div>adjust_desired_tenuring_threshold() is called inside
ParNewGeneration::collect(), which calls
compute_tenuring_threshold.</div>
<div>It only uses MaxTenuringThreshold and TargetSurvivorRatio.</div>
<div>I don't see any other flags here.<br>
</div>
</div>
</blockquote>
<br>
Yes, this is the intended behavior.<br>
<br>
You're saying we're sometimes wasting survivor space?<br>
<br>
Jon<br>
<br>
<blockquote
cite="mid:CA+n_jhi5ivU07=9wdY6A7zREw3VdQnDy_-8OkmbO32Ne6+TN3A@mail.gmail.com"
type="cite">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Mar 6, 2015 at 4:28 PM, Jon
Masamitsu <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jon.masamitsu@oracle.com" target="_blank">jon.masamitsu@oracle.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">This is in
jdk9?<span class="HOEnZb"><font color="#888888"><br>
<br>
Jon</font></span>
<div class="HOEnZb">
<div class="h5"><br>
<br>
On 3/6/2015 4:21 PM, Jungwoo Ha wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
On CMS when UseAdaptiveSizePolicy is off, still
tenuring_threshold is being changed.<br>
Is this an intended behavior?<br>
(yes. I know it is not "size" related heuristics)<br>
<br>
It would be nice to have a flag that can disable
adjusting tenuring threshold,<br>
or at least set minimum threshold. When the default
heuristics doesn't work,<br>
there are nothing much we can do other than changing
the Max.<br>
<br>
--Jungwoo<br>
</blockquote>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>