File tree Expand file tree Collapse file tree 4 files changed +21
-12
lines changed Expand file tree Collapse file tree 4 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 250
250
echo -n " " ` expr $procs - $procnumber `
251
251
rwloadsim $mute59 -u -r -i simulatebatch:=$simulatebatch -i procnumber:=$procnumber \
252
252
--flush-stop=$runperiod --flush-every=2 -v -i runperiod:=$runperiod \
253
- -W -i xc_run_dedicated:=$xc_run_dedicated $extra_args -i proccount:=$procs -R $prepfile $quiet $runfile &
253
+ -W -i xc_run_dedicated:=$xc_run_dedicated -i doawr:= $doawr $extra_args -i proccount:=$procs -R $prepfile $quiet $runfile &
254
254
quiet=' -q' # only messages from first
255
255
procnumber=` expr $procnumber + 1`
256
256
if test x$killfile ! = x
Original file line number Diff line number Diff line change @@ -189,8 +189,12 @@ $if xc_enabled $then
189
189
if xc_stopnow=1 or xc_stopnow=2 then break; end if;
190
190
end loop;
191
191
if xc_stopnow=1 or xc_stopnow=2 then
192
- wait 2;
193
- xc_kill();
192
+ if doawr then
193
+ wait 20; # Allow some time for flushing things
194
+ else
195
+ wait 1;
196
+ end if;
197
+ xc_kill("process " procnumber);
194
198
end if;
195
199
$endif
196
200
end;
Original file line number Diff line number Diff line change @@ -157,14 +157,16 @@ $if xc_enabled $then
157
157
if xc_stopnow=1 or xc_stopnow=2 then break; end if;
158
158
end loop;
159
159
if xc_stopnow=1 or xc_stopnow=2 then
160
- # Wait up to 30s before killing myself
161
- # to give time to awr end snapshot
162
- double killtime := runseconds + 30;
163
- for wait 2 stop killtime loop
164
- if awrend_done then break; end if;
165
- end loop;
166
- wait 2;
167
- xc_kill();
160
+ if doawr then
161
+ # Wait up to 30s before killing myself
162
+ # to give time to awr end snapshot
163
+ double killtime := runseconds + 30;
164
+ for wait 2 stop killtime loop
165
+ if awrend_done then break; end if;
166
+ end loop;
167
+ end if;
168
+ wait 1;
169
+ xc_kill("process runsys");
168
170
end if;
169
171
end threads;
170
172
$endif
@@ -216,6 +218,7 @@ $endif
216
218
end loop;
217
219
end threads;
218
220
221
+ $if !xc_enabled $then
219
222
# save the buffer cache and shared pool sizes every pool_size_interval
220
223
# and at end
221
224
threads 1 at rwloadsim
@@ -225,6 +228,7 @@ $endif
225
228
# gather end values as well
226
229
savecaches();
227
230
end threads;
231
+ $endif
228
232
229
233
# Create the SQL that will collact top ash data
230
234
threads 1
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ $endif
191
191
end if;
192
192
end;
193
193
194
- procedure xc_kill() nostatistics
194
+ procedure xc_kill(string killmsg) nostatistics
195
+ fprintf stderr, "Now terminating %s - ", killmsg;
195
196
abort;
196
197
end xc_kill;
You can’t perform that action at this time.
0 commit comments