lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r836155 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java
Date Sat, 14 Nov 2009 11:22:07 GMT
Author: mikemccand
Date: Sat Nov 14 11:22:06 2009
New Revision: 836155

URL: http://svn.apache.org/viewvc?rev=836155&view=rev
Log:
LUCENE-2060: change CMS's default maxThreadCount from 3 to 1

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=836155&r1=836154&r2=836155&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Sat Nov 14 11:22:06 2009
@@ -40,6 +40,13 @@
   fields when reading. You have to reindex to do that.
   (Michael Busch, Uwe Schindler)
 
+ * LUCENE-2060: Chagned ConcurrentMergeScheduler's default for
+   maxNumThreads from 3 to 1, because in practice we get the most
+   gains from running a single merge in the backround.  More than one
+   concurrent merge causes alot of thrashing (though it's possible on
+   SSD storage that there would be net gains).  (Jason Rutherglen,
+   Mike McCandless)
+
 API Changes
 
 * LUCENE-1257, LUCENE-1984, LUCENE-1985, LUCENE-2057,...: Port to Java 1.5

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java?rev=836155&r1=836154&r2=836155&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java Sat Nov
14 11:22:06 2009
@@ -39,7 +39,7 @@
   protected List<MergeThread> mergeThreads = new ArrayList<MergeThread>();
 
   // Max number of threads allowed to be merging at once
-  private int maxThreadCount = 3;
+  private int maxThreadCount = 1;
 
   protected Directory dir;
 



Mime
View raw message