You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2011/11/29 18:38:21 UTC

svn commit: r1207992 - /incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java

Author: andy
Date: Tue Nov 29 17:38:20 2011
New Revision: 1207992

URL: http://svn.apache.org/viewvc?rev=1207992&view=rev
Log: (empty)

Modified:
    incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java?rev=1207992&r1=1207991&r2=1207992&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena163_TDBDifferentIds.java Tue Nov 29 17:38:20 2011
@@ -82,17 +82,20 @@ public class Jena163_TDBDifferentIds
     static boolean logging                      = false ;
     
     // XXX Switch to threads choosing a mix of actions. 
+    // Jena-163 - good number choice?
+    // 1/0/2  8/10  3/3/10  4
     
-    static final int numReaderTasks             = 8 ;   // 5
-    static final int numWriterTasksA            = 4 ;   // 3
-    static final int numWriterTasksC            = 8 ;   // 5
+    
+    static final int numReaderTasks             = 1 ;   // 5
+    static final int numWriterTasksA            = 0 ;   // 3
+    static final int numWriterTasksC            = 2 ;   // 5
 
-    static final int readerSeqRepeats           = 4 ;   // 8
-    static final int readerMaxPause             = 20 ;  // 20
+    static final int readerSeqRepeats           = 8 ;   // 8
+    static final int readerMaxPause             = 10 ;  // 20
 
     static final int writerAbortSeqRepeats      = 3 ;   // 4
-    static final int writerCommitSeqRepeats     = 4 ;   // 4
-    static final int writerMaxPause             = 20 ;  // 20
+    static final int writerCommitSeqRepeats     = 3 ;   // 4
+    static final int writerMaxPause             = 10 ;  // 20
 
     static final int numThreadsInPool           = 4 ;           // If <= 0 then use an unbounded thread pool.   
     private static ExecutorService execService  = null ;
@@ -452,7 +455,7 @@ public class Jena163_TDBDifferentIds
         // That can lead to uninterstin sequences of actions. 
         startPoint = null ; //new Semaphore(0) ;
 
-        int RN1 = 2 ;
+        int RN1 = 1 ;
         int RN2 = min(1, numReaderTasks) ;
         int RN3 = max(numReaderTasks - RN1 - RN2,0);