<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Hi Dmitry,<br><br>Thanks, more below. <br><br>In the expanded command line option, ConcGCThread is indeed set to 1 as expected in the ReclaimRegionFastclass JVM. In the direct jtreg option, ConcGCThread is 0 in both JVMs. The usage details are below. My build is based on JDK 9 and I downloaded the latest jtreg. There may be something wrong in my jtreg usage -- can you please clarify?<br><br>Using jtreg directly does not work <br>----------------------------------<br>/home/ramki/9dev/build/linux-x86_64-normal-server-release/images/jdk/bin/java -jar /home/ramki/jtreg/lib/jtreg.jar -verbose:all /home/ramki/9dev/hotspot/test/gc/g1/TestEagerReclaimHumongousRegionsClearMarkBits.java <br><br></div><div class="gmail_default" style="font-family:courier new,monospace">Command line option works<br></div><div class="gmail_default" style="font-family:courier new,monospace">-------------------------<br>/home/ramki/9dev/build/linux-x86_64-normal-server-release/images/jdk/bin/java -cp /home/ramki/9dev/hotspot/test/JTwork/classes/gc/g1:/home/ramki/9dev/hotspot/test/gc/g1:/home/ramki/9dev/hotspot/test/JTwork/classes/test/lib:/home/ramki/9dev/test/lib:/home/ramki/jtreg/lib/javatest.jar:/home/ramki/jtreg/lib/jtreg.jar -XX:+UseG1GC -Xms128M -Xmx128M -Xmn2M -XX:G1HeapRegionSize=1M -XX:InitiatingHeapOccupancyPercent=0 -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+VerifyAfterGC -XX:ConcGCThreads=1 -XX:+IgnoreUnrecognizedVMOptions -XX:+G1VerifyBitmaps -XX:G1GcCpuLLCCachePartitionPercent=48 ReclaimRegionFast<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">Thanks,<br></div><div class="gmail_default" style="font-family:courier new,monospace">Ramki<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 17, 2017 at 11:21 PM, Dmitry Fazunenko <span dir="ltr"><<a href="mailto:dmitry.fazunenko@oracle.com" target="_blank">dmitry.fazunenko@oracle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
Hi Ramki,<br>
<br>
It's very unlikely to be an issue related to jtreg somehow.<br>
I ran the test you mentioned manually, this is the quote from .jtr
file:<br>
...<br>
Command line: [/jdk9/solaris-sparcv9/bin/<wbr>java -d64 -cp
/home/fa/hs-int/hotspot/test/<wbr>gc/g1/JTwork/classes/gc/g1:/<wbr>home/fa/hs-int/hotspot/test/<wbr>gc/g1:/home/fa/hs-int/hotspot/<wbr>test/gc/g1/JTwork/classes/<wbr>test/lib:/home/fa/hs-int/test/<wbr>lib:/home/fa/jtreg/lib/<wbr>javatest.jar:/home/fa/jtreg/<wbr>lib/jtreg.jar
-XX:+UseG1GC -Xms128M -Xmx128M -Xmn2M -XX:G1HeapRegionSize=1M
-XX:<wbr>InitiatingHeapOccupancyPercent<wbr>=0 -Xlog:gc
-XX:+UnlockDiagnosticVMOptions -XX:+VerifyAfterGC <b>-XX:ConcGCThreads=1</b>
-XX:+<wbr>IgnoreUnrecognizedVMOptions -XX:+G1VerifyBitmaps
<div style="font-family:courier new,monospace;display:inline" class="gmail_default"></div>ReclaimRegionFast ]<br>
...<br>
All the VM options are passed as expected.<br>
<br>
> I have confirmed this through prints in the JVM code base.<br>
I'm not sure what do you mean here, but I guess you did something
wrong.<br>
<br>
Please note, during execution of this test two JVM are launched:<br>
- the first one started by jtreg (<span id="gmail-m_6845836460534788464l115">TestEagerReclaimHumongousRegi<wbr>onsClearMarkBits
class)<br>
- the second started by test (</span><span id="gmail-m_6845836460534788464l51">ReclaimRegionFast
class)</span><br>
<br>
In the first one<div style="font-family:courier new,monospace;display:inline" class="gmail_default"></div> ConcGCThread should be set to 0.<br>
<br>
Thanks,<br>
Dima<br>
<br>
<div class="gmail-m_6845836460534788464moz-cite-prefix">On 18.04.2017 3:09, Ram Krishnan wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family:courier new,monospace">Hi Jenny,<br>
<br>
</div>
<div style="font-family:courier new,monospace">I tried what you suggested. Hotspot output
indeed shows ConcGCThreads as 1.<br>
<br>
</div>
<div style="font-family:courier new,monospace">The problem seems to be interaction with jtreg.<br>
</div>
<div style="font-family:courier new,monospace"><br>
</div>
<div style="font-family:courier new,monospace">Thanks,<br>
</div>
<div style="font-family:courier new,monospace">Ramki<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Apr 17, 2017 at 4:49 PM,
Jenny Zhang <span dir="ltr"><<a href="mailto:yu.zhang@oracle.com" target="_blank">yu.zhang@oracle.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"> Ramki,<br>
<br>
Can you do the following to be sure that hotspot did not
take the parameter?<br>
java -XX:
<div></div>
ConcGCThreads=1 -XX:+PrintFlagsFinal<br>
<br>
I am using jdk9b154, the output shows it changed the
ConcGCThreads to 1<br>
<br>
Thanks<br>
Jenny<br>
<br>
<div class="gmail-m_6845836460534788464gmail-m_-1427578904799488884moz-cite-prefix">On
4/17/2017 4:33 PM, Ram Krishnan wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family:courier new,monospace">Many
thanks Jonathan for the immediate reply. <br>
<br>
I am copying the hotspot gc team.<br>
<br>
</div>
<div style="font-family:courier new,monospace">Hotspot
gc team -- your help would be much appreciated on
the topic below.<br>
</div>
<div style="font-family:courier new,monospace"><br>
</div>
<div style="font-family:courier new,monospace">Thanks,<br>
</div>
<div style="font-family:courier new,monospace">Ramki<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Apr 17, 2017 at
2:29 PM, Jonathan Gibbons <span dir="ltr"><<a class="gmail-m_6845836460534788464gmail-m_-1427578904799488884moz-txt-link-abbreviated" href="mailto:jonathan.gibbons@oracle.com" target="_blank">jonathan.gibbons@oracle.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"> <br>
<br>
<div class="gmail-m_6845836460534788464gmail-m_-1427578904799488884m_7592252218846305182m_7329919051798114277moz-cite-prefix">On
04/17/2017 02:18 PM, Ram Krishnan wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family:courier new,monospace">Hi,<br>
<br>
</div>
<div style="font-family:courier new,monospace">I have been able to
successfully run all the tests in
hotspot/test/gc/g1 using jtreg.<br>
<br>
</div>
<div style="font-family:courier new,monospace">The only gotcha I am
facing is that the JVM startup options
specified in process builder does not
have any effect. I have confirmed this
through prints in the JVM code base.<br>
<br>
</div>
<div style="font-family:courier new,monospace">For example, <br clear="all">
</div>
<div>/hotspot/test/gc/g1/
TestEagerReclaimHumongousRegio<wbr>nsClearMarkBits.java
modifies the "-XX:ConcGCThreads=1",
but inside the JVM code to value of
ConcGCThreads is still zero.<br>
</div>
<br>
<div>I am new to jtreg and openjdk and
probably missing something obvious.
Your help would be much appreciated. <br>
<br>
Thanks in advance,</div>
<div>Ramki</div>
<br>
</div>
</blockquote>
<br>
Ramki,<br>
<br>
This does not look like an issue with jtreg,
since the behavior you are apparently seeing
is all within the test code and its
libraries.<br>
<br>
You might want to follow up with the Hotspot
team, who would have more familiarity with
these tests and the associated libraries.<br>
<br>
-- Jon<br>
<br>
</div>
</blockquote>
</div>
<br>
<br clear="all"><span class="gmail-HOEnZb"><font color="#888888">
<span class="gmail-m_6845836460534788464gmail-HOEnZb"><font color="#888888">
<br>
-- <br>
<div class="gmail-m_6845836460534788464gmail-m_-1427578904799488884m_7592252218846305182gmail_signature">
<div dir="ltr">Thanks,
<div>Ramki<br>
</div>
</div>
</div>
</font></span></font></span></div><span class="gmail-HOEnZb"><font color="#888888">
</font></span></div><span class="gmail-HOEnZb"><font color="#888888">
</font></span></blockquote><span class="gmail-HOEnZb"><font color="#888888">
<br>
</font></span></div><span class="gmail-HOEnZb"><font color="#888888">
</font></span></blockquote><span class="gmail-HOEnZb"><font color="#888888">
</font></span></div><span class="gmail-HOEnZb"><font color="#888888">
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail-m_6845836460534788464gmail_signature">
<div dir="ltr">Thanks,
<div>Ramki<br>
</div>
</div>
</div>
</font></span></div>
</div>
</blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Thanks, <div>Ramki<br></div></div></div>
</div></div>