1111
1212# Changes
1313#
14+ # bengsig 9-nov-2023 - support multiple application servers
15+ # bengsig 2-nov-2023 - Add extra_args plots, etc
16+ # bengsig 17-oct-2023 - Add extra_args to prepare
1417# bengsig 29-sep-2023 - No ash if no awr
1518# bengsig 7-aug-2023 - Also mute59 in graphs
1619# bengsig 1-aug-2023 - Add oltpxcset markers from oltpxcrun
@@ -161,6 +164,9 @@ rwloadsim -i simulatebatch:=$simulatebatch parameters.rwl || exit $?
161164# show the contents of our parameters file as a reference
162165rwloadsim -q $extra_args -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod -i proccount:=$procs -i show_changed_values:=1 -x ' string key_to_show := "' $key ' ";' parameters.rwl
163166
167+ # Show size of aw_cols and skewness in access
168+ rwloadsim -q aw_sizeinfo.rwl
169+
164170# Check parameters.rwl is silent
165171shouldbezero=` rwloadsim -q parameters.rwl | wc -c`
166172if test " $shouldbezero " -ne 0
@@ -171,10 +177,10 @@ then
171177fi
172178
173179# Set shell variables
174- eval ` rwloadsim -q -i proccount:=$procs -i runperiod:=$runperiod parameters2shell.rwl`
180+ eval ` rwloadsim -q $extra_args -i proccount:=$procs -i runperiod:=$runperiod parameters2shell.rwl`
175181
176182# verify that it compiles
177- rwloadsim -u -v $extra_args -e -- ' -x $mute:141' $runfile || exit $?
183+ rwloadsim -q - u -v $extra_args -e ' -x $mute:141' $runfile || exit $?
178184
179185if test $oltpxc = yes
180186then
184190 oltpsetxc=' ' ;
185191fi
186192
187- # Show size of aw_cols and skewness in access
188- rwloadsim -q aw_sizeinfo.rwl
189-
190193# Truncate the artificial transaction tables
191194# this is mostly a precaution, as it should have been done
192195# after finishing last run
@@ -210,12 +213,12 @@ komment=`echo $RWLOLTP_NAME $rwl_title $extrakomment | sed 's/[\\"'"']//g"`
210213# prepare the run; this will also create the $resultsdir/$subdir/$runnumber/env file
211214if test $oltpxc = yes
212215then
213- rwloadsim -u -v -c 15 -sss -P $prepfile -k $key -K " $komment " -q \
216+ rwloadsim $extra_args -u -v -c 15 -sss -P $prepfile -k $key -K " $komment " -q \
214217 --fulltitle=" $komment " \
215218 -i runperiod:=$runperiod -i proccount:=$procs prepare.rwl
216- mute59=' -x$ mute: 59'
219+ mute59=' -- mute= 59'
217220else
218- rwloadsim -u -v -c $rampup -sss -P $prepfile -k $key -K " $komment " -q \
221+ rwloadsim $extra_args -u -v -c $rampup -sss -P $prepfile -k $key -K " $komment " -q \
219222 --fulltitle=" $komment " \
220223 -i runperiod:=$runperiod -i proccount:=$procs prepare.rwl
221224 mute59=' '
@@ -234,27 +237,29 @@ echo $runnumber > $runnumberfile
234237
235238echo " runperiod=$runperiod " >> $resultsdir /$subdir /$runnumber /env
236239echo " komment='$komment '" >> $resultsdir /$subdir /$runnumber /env
240+ echo " showfail='$showfail '" >> $resultsdir /$subdir /$runnumber /env
237241if test $pool_type = sessionpool -o $pool_type = connectionpool
238242then
239243 echo " plotactive=yes" >> $resultsdir /$subdir /$runnumber /env
240244else
241245 echo " plotactive=no" >> $resultsdir /$subdir /$runnumber /env
242246fi
243247rwloadsim $oltpsetxc -q $extra_args -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod -i proccount:=$procs -i show_changed_values:=1 -x ' string key_to_show := "' $key ' ";' parameters.rwl > $resultsdir /$subdir /$runnumber /parmatstart.txt
248+ # add size of aw_cols and skewness in access
249+ rwloadsim -q aw_sizeinfo.rwl >> $resultsdir /$subdir /$runnumber /parmatstart.txt
244250
245251# Start ping gather and also ask for event notification
246- rwloadsim $oltpsetxc $mute59 -u -E -q -R $prepfile -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod runping.rwl &
252+ rwloadsim $extra_args $ oltpsetxc $mute59 -u -E -q -R $prepfile -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod runping.rwl &
247253
248254if test x$killfile ! = x
249255then
250256 echo $! >> $killfile
251257fi
252258
253- markerfile=' string(1000)xc_marker_file:="' $resultsdir /$subdir /$runnumber /markers.txt' ";'
254259quiet=' '
255260
256261# Start sys gather
257- rwloadsim $mute59 $oltpsetxc -u -A 1 -r -q -i procnumber:=99999 -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod -i proccount:=$procs -R $prepfile -i doawr:=$doawr runsys.rwl $starttime &
262+ rwloadsim $extra_args $ mute59 $oltpsetxc -u -A 1 -r -q -i procnumber:=99999 -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod -i proccount:=$procs -R $prepfile -i doawr:=$doawr runsys.rwl $starttime &
258263awrpid=$!
259264
260265if test x$killfile ! = x
@@ -268,16 +273,21 @@ then
268273 rwloadsim -u -q -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod -R $prepfile runtrunc.rwl &
269274fi
270275
276+ prepvalue=` cat $prepfile `
277+
271278# show countdown to user
272279echo -n ' **** remaining:'
273280# Start the real workers
274281while test $procnumber -le $procs
275282do
276283 sleep $script_ramp
277284 echo -n " " ` expr $procs - $procnumber `
278- rwloadsim $mute59 -u -r -i simulatebatch:=$simulatebatch -i procnumber:=$procnumber \
285+ # get the actual call to execute in background
286+ eval $( rwloadsim -q -i proccount:=$procs -i runperiod:=$runperiod rwlcall.rwl -i procnumber:=$procnumber )
287+ # by default, rwlcall=rwloadsim and rwlcallargs is empty
288+ $rwlcall $rwlcallargs $mute59 -u -r -i simulatebatch:=$simulatebatch -i procnumber:=$procnumber \
279289 --flush-stop=$runperiod --flush-every=2 -v -i runperiod:=$runperiod \
280- -W -i xc_run_dedicated:=$xc_run_dedicated -i doawr:=$doawr -x $ markerfile $oltpsetxc $extra_args -i proccount:=$procs -R $prepfile $quiet $runfile &
290+ -W -i xc_run_dedicated:=$xc_run_dedicated -i doawr:=$doawr -- markerfile= $resultsdir / $subdir / $runnumber /markers.txt $oltpsetxc $extra_args -i proccount:=$procs -M $prepvalue $quiet $runfile &
281291 quiet=' -q' # only messages from first
282292 procnumber=` expr $procnumber + 1`
283293 if test x$killfile ! = x
@@ -291,13 +301,13 @@ echo '****' started all background jobs at `date`
291301
292302sleep 3
293303# show running graph of dbcpu and dbtime
294- test $graphs ! = no && rwloadsim $mute59 $oltpsetxc -u -q -R $prepfile plotfigures.rwl -i runperiod:=$runperiod ' ;' $runnumber | gnuplot $RWLOLTP_GNUPLOT1 &
304+ test $graphs ! = no && rwloadsim $extra_args $ mute59 $oltpsetxc -u -q -R $prepfile plotfigures.rwl -i runperiod:=$runperiod ' ;' $runnumber | gnuplot $RWLOLTP_GNUPLOT1 &
295305
296306# show running graph of throughput
297- test $graphs = yes && rwloadsim $mute59 $oltpsetxc -u -q -R $prepfile plotruntp.rwl -i runperiod:=$runperiod ' ;' $runnumber | gnuplot $RWLOLTP_GNUPLOT2 &
307+ test $graphs = yes && rwloadsim $extra_args $ mute59 $oltpsetxc -u -q -R $prepfile plotruntp.rwl -i runperiod:=$runperiod ' ;' $runnumber | gnuplot $RWLOLTP_GNUPLOT2 &
298308
299309# show running graph of queue/exec time
300- test $graphs = qe && rwloadsim $mute59 $oltpsetxc -u -q -R $prepfile plotrunwetim.rwl -i runperiod:=$runperiod ' ;' $runnumber | gnuplot $RWLOLTP_GNUPLOT2 &
310+ test $graphs = qe && rwloadsim $extra_args $ mute59 $oltpsetxc -u -q -R $prepfile plotrunwetim.rwl -i runperiod:=$runperiod ' ;' $runnumber | gnuplot $RWLOLTP_GNUPLOT2 &
301311
302312# with external control, we simply wait
303313if test $oltpxc = no
0 commit comments