incubator-olio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ak...@apache.org
Subject svn commit: r805540 - in /incubator/olio/workload/php/trunk/bin: fileloader.sh fileloader2.sh
Date Tue, 18 Aug 2009 19:12:29 GMT
Author: akara
Date: Tue Aug 18 19:12:29 2009
New Revision: 805540

URL: http://svn.apache.org/viewvc?rev=805540&view=rev
Log:
Issue OLIO-40: Moved FileLoader2 to FileLoader both for java class name and shell script name.

Removed:
    incubator/olio/workload/php/trunk/bin/fileloader2.sh
Modified:
    incubator/olio/workload/php/trunk/bin/fileloader.sh

Modified: incubator/olio/workload/php/trunk/bin/fileloader.sh
URL: http://svn.apache.org/viewvc/incubator/olio/workload/php/trunk/bin/fileloader.sh?rev=805540&r1=805539&r2=805540&view=diff
==============================================================================
--- incubator/olio/workload/php/trunk/bin/fileloader.sh (original)
+++ incubator/olio/workload/php/trunk/bin/fileloader.sh Tue Aug 18 19:12:29 2009
@@ -20,7 +20,7 @@
 #Script to run loader by hand
 
 if [ -z "$1" ] ; then
-    echo "Usage: $0 [concurrent users] <target directory>" >&2
+    echo "Usage: $0 [concurrent users] <target directory> <concurrency>" >&2
     exit 1
 fi
 
@@ -37,6 +37,12 @@
     TARGET=$2
 fi
 
+CONCURRENCY=128
+
+if [ -n "$3" ] ; then
+    CONCURRENCY=$3
+fi
+
 BINDIR=`dirname $0`
 
 # This script is in $FABAN_HOME/benchmarks/OlioDriver/bin
@@ -55,7 +61,7 @@
 export CLASSPATH
 
 $JAVA_HOME/bin/java -server org.apache.olio.workload.fsloader.FileLoader \
-    $BENCH_HOME/resources $TARGET $SCALE
+    $BENCH_HOME/resources $TARGET $SCALE $CONCURRENCY
 
 EXIT_CODE=$?
 if [ "$EXIT_CODE" = 0 ] ; then



Mime
View raw message