cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1026071 - in /cassandra/trunk: CHANGES.txt src/java/org/apache/cassandra/config/DatabaseDescriptor.java
Date Thu, 21 Oct 2010 17:08:27 GMT
Author: jbellis
Date: Thu Oct 21 17:08:27 2010
New Revision: 1026071

URL: http://svn.apache.org/viewvc?rev=1026071&view=rev
Log:
reduce automaticallychosen memtablesizes by 50%
patch by jbellis; reviewed by brandonwilliams for CASSANDRA-1641

Modified:
    cassandra/trunk/CHANGES.txt
    cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java

Modified: cassandra/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/cassandra/trunk/CHANGES.txt?rev=1026071&r1=1026070&r2=1026071&view=diff
==============================================================================
--- cassandra/trunk/CHANGES.txt (original)
+++ cassandra/trunk/CHANGES.txt Thu Oct 21 17:08:27 2010
@@ -51,6 +51,7 @@ dev
  * update GC settings in cassandra.bat (CASSANDRA-1636)
  * cli support for index queries (CASSANDRA-1635)
  * cli support for updating schema memtable settings (CASSANDRA-1634)
+ * reduce automatically chosen memtable sizes by 50% (CASSANDRA-1641)
 
 
 0.7-beta2

Modified: cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java?rev=1026071&r1=1026070&r2=1026071&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java Thu Oct 21
17:08:27 2010
@@ -1118,7 +1118,7 @@ public class    DatabaseDescriptor
     }
 
     public static int sizeMemtableThroughput() {
-        return (int) (Runtime.getRuntime().maxMemory() / (1048576 * 8));
+        return (int) (Runtime.getRuntime().maxMemory() / (1048576 * 16));
     }
 
     public static double sizeMemtableOperations(int mem_throughput) {



Mime
View raw message