This is an automated email from the ASF dual-hosted git repository.

mck pushed a commit to branch cassandra-4.1
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/cassandra-4.1 by this push:
     new 7c86e18baf Update G1GC settings, and make it default in trunk
7c86e18baf is described below

commit 7c86e18baf10b3cf6c8f06ee9f1e27d2e21acf78
Author: Mick Semb Wever <m...@apache.org>
AuthorDate: Sat Jan 14 00:25:23 2023 +0100

    Update G1GC settings, and make it default in trunk
    
     patch by Mick Semb Wever; patch by Anthony Grasso, Brandon Williams, Derek 
Chen-Becker, Jeremiah Jordan, Jon Haddad, Josh McKenzie  for CASSANDRA-18027
---
 NEWS.txt                  | 12 ++++++++++++
 conf/jvm11-server.options |  4 +++-
 conf/jvm8-server.options  |  4 +++-
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/NEWS.txt b/NEWS.txt
index b48f065f0d..c1dfbd8127 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -51,6 +51,18 @@ restore snapshots created with the previous major version 
using the
 'sstableloader' tool. You can upgrade the file format of your snapshots
 using the provided 'sstableupgrade' tool.
 
+
+4.1.1
+===
+
+G1GC Recommended
+----------------
+    - The G1 settings in jvm8-server.options and jvm11-server.options are 
updated according to broad feedback
+      and testing. The G1 settings remain commented out by default in 4.1.x. 
It is recommended to switch
+      to G1 for performance and for simpler GC tuning. CMS is already 
deprecated in JDK9, and the next major
+      release of Cassandra makes G1 the default configuration.
+
+
 4.1
 ===
 
diff --git a/conf/jvm11-server.options b/conf/jvm11-server.options
index 7e78467853..1fc3503adb 100644
--- a/conf/jvm11-server.options
+++ b/conf/jvm11-server.options
@@ -29,6 +29,8 @@
 ## Use the Hotspot garbage-first collector.
 #-XX:+UseG1GC
 #-XX:+ParallelRefProcEnabled
+#-XX:MaxTenuringThreshold=1
+#-XX:G1HeapRegionSize=16m
 
 #
 ## Have the JVM do less remembered set work during STW, instead
@@ -38,7 +40,7 @@
 ## Main G1GC tunable: lowering the pause target will lower throughput and vise 
versa.
 ## 200ms is the JVM default and lowest viable setting
 ## 1000ms increases throughput. Keep it smaller than the timeouts in 
cassandra.yaml.
-#-XX:MaxGCPauseMillis=500
+#-XX:MaxGCPauseMillis=300
 
 ## Optional G1 Settings
 # Save CPU time on large (>= 16GB) heaps by delaying region scanning
diff --git a/conf/jvm8-server.options b/conf/jvm8-server.options
index 6214669eab..ba800db4b4 100644
--- a/conf/jvm8-server.options
+++ b/conf/jvm8-server.options
@@ -35,6 +35,8 @@
 ## Use the Hotspot garbage-first collector.
 #-XX:+UseG1GC
 #-XX:+ParallelRefProcEnabled
+#-XX:MaxTenuringThreshold=1
+#-XX:G1HeapRegionSize=16m
 
 #
 ## Have the JVM do less remembered set work during STW, instead
@@ -44,7 +46,7 @@
 ## Main G1GC tunable: lowering the pause target will lower throughput and vise 
versa.
 ## 200ms is the JVM default and lowest viable setting
 ## 1000ms increases throughput. Keep it smaller than the timeouts in 
cassandra.yaml.
-#-XX:MaxGCPauseMillis=500
+#-XX:MaxGCPauseMillis=300
 
 ## Optional G1 Settings
 # Save CPU time on large (>= 16GB) heaps by delaying region scanning


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to