Skip to content

Commit 87d2595

Browse files
committed
Add -R option to oltpscale
1 parent 32d9ff2 commit 87d2595

File tree

5 files changed

+32
-12
lines changed

5 files changed

+32
-12
lines changed

bin/oltpscale

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
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 ...]"
1616
runperiod=595
1717

1818
allow=no
@@ -25,7 +25,7 @@ help=no
2525
key=''
2626
graphs=''
2727
simulatebatch=''
28-
WKoption=''
28+
copyoptions=''
2929

3030
getopt -Q -o $options -- "$@" || exit 1
3131
set -- `getopt -u -n $commandname -o $options -- "$@"`
@@ -51,9 +51,11 @@ do
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
8992
END
9093
exit 0
9194
fi
@@ -152,7 +155,7 @@ do
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`

docs/refman/oltprun.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/refman/oltpscale.html

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/man2rwl/oltprun.2rwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ should not be done directly by the user.
6565
.P
6666
.B -R|--runfile file
6767
.RS 4
68-
In stead of using the normal run.rwl file count in the oltp directory, use
68+
In stead of using the normal run.rwl file found in the oltp directory, use
6969
the file named.
7070
The primary use of this is for experiments that require modifications to run.rwl.
7171
.RE

man/man2rwl/oltpscale.2rwl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.SH NAME
33
oltpscale \- Perform several runs and finally a scaling graph
44
.SH SYNOPSIS
5-
\fBoltpscale [-H] [-g] [-a] [-A] [-k key] [-r runperiod] [-b] [-l lo] [-h hi] [-i int] [-K n] [-W] [komment text ...]\fR
5+
\fBoltpscale [-H] [-g] [-a] [-A] [-k key] [-r runperiod] [-b] [-l lo] [-h hi] [-i int] [-K n] [-W] [-R file] [komment text ...]\fR
66
.P
77
Execute a series of runs with increasing number of processes and produce a scalability
88
report with graphs, etc.
@@ -87,6 +87,13 @@ Only use this if the automatic allocation via interval
8787
partitions appears to cause trouble
8888
.RE
8989
.P
90+
.B -R|--runfile file
91+
.RS 4
92+
In stead of using the normal run.rwl file found in the oltp directory, use
93+
the file named.
94+
The primary use of this is for experiments that require modifications to run.rwl.
95+
.RE
96+
.P
9097
.B -W --awrwait
9198
.P
9299
.B -K --awrkill n

0 commit comments

Comments
 (0)