<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Tony,<br>
<br>
The new output looks completely different from the earlier output. e.g.
here's output generated with jdk7-b141:<br>
<br>
added region to incremental cset (LHS) 0:[0x02c00000, 0x02d00000], top
0x02c53040, young YES<br>
new alloc region 1:[0x02d00000,0x02e00000], top 0x02d00000<br>
added region to incremental cset (LHS) 1:[0x02d00000, 0x02e00000], top
0x02e00000, young YES<br>
new alloc region 2:[0x02e00000,0x02f00000], top 0x02e00000<br>
new alloc region 1:[0x02d00000,0x02e00000], top 0x02d00000<br>
added region to incremental cset (LHS) 1:[0x02d00000, 0x02e00000], top
0x02e00000, young YES<br>
new alloc region 2:[0x02e00000, 0x02f00000], top 0x02e01000<br>
.....<br>
new alloc region 19:[0x03f00000,0x04000000], top 0x03f00000<br>
added region to incremental cset (RHS) 19:[0x03f00000, 0x04000000],
top 0x03f04000, young YES<br>
new alloc region 17:[0x03d00000,0x03e00000], top 0x03d00000<br>
<br>
It prints the index of the region, and whether it is added to eden or
survivor (based on LHS <br>
or RHS). <br>
<br>
The index of the region is missing from the new output. I think it
would be good <br>
to have it; makes it easier to read the logs.<br>
<br>
In the new output, I see events like COMMIT, ALLOC, UNCOMMIT, RETIRE. <br>
Could you please explain these ?<br>
<pre wrap="">G1HR COMMIT [0x72700000,0x72800000]
G1HR ALLOC(Eden) 0x6e800000
Will gc in between benchmarks
G1HR RETIRE 0x6e800000 0x6e87bd98
G1HR #StartFullGC 1
G1HR UNCOMMIT [0x72700000,0x72800000]
There are some numbers printed between the log entries. What are
these numbers ?
G1HR ALLOC(ContinuesH) 0x6f100000 0x6f102010
3153920 <-----
931067 <-----
G1HR COMMIT [0x6f200000,0x6f300000]
</pre>
<br>
For the ALLOC and CSET entries, only one address is printed, looks like
it is the lower <br>
bound of the region. It would be good to have both the bounds printed
(along with the index).<br>
<pre wrap=""> G1HR #StartGC 2
G1HR CSET 0x6e900000
G1HR COMMIT [0x6f800000,0x6f900000]
G1HR ALLOC(Old) 0x6f800000
G1HR RETIRE 0x6f800000 0x6f826838</pre>
<br>
<br>
Thanks,<br>
Poonam<br>
<br>
<br>
<br>
On 6/22/2011 1:04 AM, Tony Printezis wrote:
<blockquote cite="mid:4E00F24C.6070001@oracle.com" type="cite">Hi,
<br>
<br>
Could I get a couple of folks to look at this?
<br>
<br>
<a class="moz-txt-link-freetext" href="http://cr.openjdk.java.net/~tonyp/7049999/webrev.0/">http://cr.openjdk.java.net/~tonyp/7049999/webrev.0/</a>
<br>
<br>
+G1PrintHeapRegions is a very helpful debugging feature that we have
used a lot in the past. It'll be very helpful in the long run to ensure
that it generates more complete output to save us having to deduce some
of it. What was missing in the past was:
<br>
<br>
* output for humongous region allocations
<br>
* output per region post compaction (as compaction changes the shape of
the heap)
<br>
* output when regions are reclaimed during cleanup
<br>
<br>
Further enhancements include:
<br>
<br>
* commit / uncommit events
<br>
* trimmed the output to keep the generated log files smaller while not
losing any information
<br>
* introduced the G1HRPrinter class and all output goes through it to
ensure consistency
<br>
<br>
I attached an example of the new output.
<br>
<br>
Tony
<br>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Best regards, Poonam
<p><img src="cid:part1.06030409.05020405@oracle.com"
alt="Sun, an Oracle company" border="0" height="70" width="110"><br>
Sun, an Oracle Company<br>
<font color="#666666" face="Verdana, Arial, Helvetica, sans-serif"
size="2">Poonam Bajaj | Staff Engineer<br>
Phone: <a href="tel:+66937451">+66937451</a> | Mobile: <a
href="tel:+9844511366">+9844511366</a> <br>
JVM Sustaining Engineering<br>
| Bangalore </font>
<br>
<a href="http://www.oracle.com/commitment" target="_blank"><img
src="cid:part2.07060305.07050307@oracle.com" alt="Green Oracle"
align="absmiddle" border="0" height="28" width="44"></a>
<font color="#4b7d42" face="Verdana, Arial, Helvetica, sans-serif"
size="1">Oracle is committed to developing practices and products that
help protect the environment</font>
<!-- This signature was generated by the MyDesktop Oracle Business Signature utility version 3.8.5 --></p>
</div>
</body>
</html>