1111
1212# Perform a scaling run
1313
14- options=" n:l:h:i:gk:r:HaAWK:b -l simulatebatch,graphs,help,runperiod:,processcount:,loprocess:,hiprocess:,interval:,awrwait,awrkill:,key:,allowreuse,preallocate"
15- usage=" $commandname [-H] [-g] [-a] [-A] [-k key] [-r runperiod] [-l lo] [-h hi] [-i int] [-W] [-K n] [komment text ...]"
14+ options=" n:l:h:i:gk:r:HaAWK:bR: -l runfile:, simulatebatch,graphs,help,runperiod:,processcount:,loprocess:,hiprocess:,interval:,awrwait,awrkill:,key:,allowreuse,preallocate"
15+ usage=" $commandname [-H] [-g] [-a] [-A] [-k key] [-r runperiod] [-l lo] [-h hi] [-i int] [-W] [-K n] [-R file] [ komment text ...]"
1616runperiod=595
1717
1818allow=no
@@ -25,7 +25,7 @@ help=no
2525key=' '
2626graphs=' '
2727simulatebatch=' '
28- WKoption =' '
28+ copyoptions =' '
2929
3030getopt -Q -o $options -- " $@ " || exit 1
3131set -- ` getopt -u -n $commandname -o $options -- " $@ " `
5151 ;;
5252 --simulatebatch|-b) simulatebatch=-b; shift ;
5353 ;;
54- --awrkill|-K) WKoption =" $WKoption -K $2 " ; shift ; shift ;
54+ --awrkill|-K) copyoptions =" $copyoptions -K $2 " ; shift ; shift ;
5555 ;;
56- --awrwait|-W) WKoption=" $WKoption -W" ; shift ;
56+ --awrwait|-W) copyoptions=" $copyoptions -W" ; shift ;
57+ ;;
58+ --runfile|-R) copyoptions=" $copyoptions --runfile $2 " ; shift ; shift ;
5759 ;;
5860 --graphs|-g) graphs=-g; shift ;
5961 ;;
@@ -86,6 +88,7 @@ cat <<END
8688-b --simulatebatch : Simulate batch processing using busy loops
8789-W --awrwait : Always wait for runsys rather than kill
8890-K --awrkill nn : Time to sleep before final kill (15)
91+ -R --runfile file : Use the file named instead of run.rwl
8992END
9093exit 0
9194fi
152155 tstamp=` date +%Y.%m.%dT%H:%M:%S`
153156 echo ' ****** scale run starting with' $proccount processes at $tstamp ' ******'
154157
155- oltpcore $WKoption $graphs $simulatebatch $allocate -p $runnumberfile -n $proccount -k $key -r $runperiod -- $komment \
158+ oltpcore $copyoptions $graphs $simulatebatch $allocate -p $runnumberfile -n $proccount -k $key -r $runperiod -- $komment \
156159 < /dev/null 2>> $resultsdir /$tstamp | tee -a $resultsdir /$tstamp
157160 # get the runnumber was and move output file
158161 runnumber=` cat $runnumberfile `
0 commit comments