Thu, 30 Jul 2009 14:50:58 -0400
6866591: G1: print update buffer processing stats more often
Summary: It adds parameter -XX:+G1SummarizeRSetStatsPeriod that causes update buffer processing information to be printed periodically. It also includes two small formatting changes.
Reviewed-by: jmasa, jcoomes, ysr
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp | file | annotate | diff | comparison | revisions | |
src/share/vm/gc_implementation/g1/g1_globals.hpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Wed Jul 29 11:01:26 2009 -0400 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Thu Jul 30 14:50:58 2009 -0400 1.3 @@ -2845,6 +2845,11 @@ 1.4 if (PrintHeapAtGC) { 1.5 Universe::print_heap_after_gc(); 1.6 } 1.7 + if (G1SummarizeRSetStats && 1.8 + (G1SummarizeRSetStatsPeriod > 0) && 1.9 + (total_collections() % G1SummarizeRSetStatsPeriod == 0)) { 1.10 + g1_rem_set()->print_summary_info(); 1.11 + } 1.12 } 1.13 1.14 void G1CollectedHeap::set_gc_alloc_region(int purpose, HeapRegion* r) {
2.1 --- a/src/share/vm/gc_implementation/g1/g1_globals.hpp Wed Jul 29 11:01:26 2009 -0400 2.2 +++ b/src/share/vm/gc_implementation/g1/g1_globals.hpp Thu Jul 30 14:50:58 2009 -0400 2.3 @@ -34,7 +34,7 @@ 2.4 product(intx, G1ConfidencePercent, 50, \ 2.5 "Confidence level for MMU/pause predictions") \ 2.6 \ 2.7 - develop(intx, G1MarkingOverheadPercent, 0, \ 2.8 + develop(intx, G1MarkingOverheadPercent, 0, \ 2.9 "Overhead of concurrent marking") \ 2.10 \ 2.11 develop(bool, G1AccountConcurrentOverhead, false, \ 2.12 @@ -47,7 +47,7 @@ 2.13 develop(bool, G1Gen, true, \ 2.14 "If true, it will enable the generational G1") \ 2.15 \ 2.16 - develop(intx, G1GCPercent, 10, \ 2.17 + develop(intx, G1GCPercent, 10, \ 2.18 "The desired percent time spent on GC") \ 2.19 \ 2.20 develop(intx, G1PolicyVerbose, 0, \ 2.21 @@ -74,6 +74,12 @@ 2.22 diagnostic(bool, G1SummarizeRSetStats, false, \ 2.23 "Summarize remembered set processing info") \ 2.24 \ 2.25 + diagnostic(intx, G1SummarizeRSetStatsPeriod, 0, \ 2.26 + "The period (in number of GCs) at which we will generate " \ 2.27 + "update buffer processing info " \ 2.28 + "(0 means do not periodically generate this info); " \ 2.29 + "it also requires -XX:+G1SummarizeRSetStats") \ 2.30 + \ 2.31 diagnostic(bool, G1SummarizeZFStats, false, \ 2.32 "Summarize zero-filling info") \ 2.33 \