|
2 | 2 | # Licensed under the Universal Permissive License v 1.0 |
3 | 3 | # as shown at https://oss.oracle.com/licenses/upl/ |
4 | 4 |
|
| 5 | +# bengsig 16-nov-2023 - Fix hard/scan during 24h sim |
5 | 6 | # bengsig 9-nov-2023 - support multiple application servers |
6 | 7 | # bengsig 6-nov-2023 - burst function |
7 | 8 | # bengsig 1-nov-2023 - burst can be repeated |
@@ -207,14 +208,14 @@ double s24h_hard_std := 0.5; # the standard deviation |
207 | 208 | double s24h_hard_beg := 15.0; # offset of begin hard parse |
208 | 209 | double s24h_hard_end := 20.0; # offset of end hard parse |
209 | 210 | integer s24h_hard_skp := 1; # How many to skip initially in the run |
210 | | -double s24h_hard_prb := 0.8; # probability of actually doing hard parse |
| 211 | +double s24h_hard_prb := 0.0; # probability of actually doing hard parse |
211 | 212 | # Each thread uses a bad plan (i.e. full scan) for some periods |
212 | 213 | double s24h_scan_avg :=130.0; # approximate time between each |
213 | 214 | double s24h_scan_std := 3.0; # the standard deviation |
214 | 215 | double s24h_scan_beg := 35.0; # offset of begin full scan |
215 | 216 | double s24h_scan_end := 50.0; # offset of end full scan |
216 | 217 | integer s24h_scan_skp := 0; # How many to skip initially in the run |
217 | | -double s24h_scan_prb := 0.05; # probability of actually doing full scan |
| 218 | +double s24h_scan_prb := 0.00; # probability of actually doing full scan |
218 | 219 |
|
219 | 220 | integer doawr := 1; # set to 0 if you don't want awr to be generated |
220 | 221 |
|
@@ -539,18 +540,26 @@ if show_changed_values then |
539 | 540 | , runperiod * (s24h_high_end+2.0*s24h_high_std); |
540 | 541 | printf "Rate low=%.0ftps, high=%.0ftps (stddev %.2f)\n" |
541 | 542 | , xeqpsec*s24h_load_lo, xeqpsec*s24h_load_hi, s24h_load_std; |
542 | | - printf "Hard parse %.1f%% first interval %.0fs-%.0fs then every %.0fs (stddev %.2f); marked red\n" |
543 | | - , 100*s24h_hard_prb |
544 | | - , s24h_hard_beg+(s24h_hard_skp*s24h_hard_avg) |
545 | | - , s24h_hard_end+(s24h_hard_skp*s24h_hard_avg) |
546 | | - , s24h_hard_avg |
547 | | - , s24h_hard_std; |
548 | | - printf "Full scan %.1f%% first interval %.0fs-%.0fs then every %.0fs (stddev %.2f); marked blue\n" |
549 | | - , 100*s24h_scan_prb |
550 | | - , s24h_scan_beg+(s24h_scan_skp*s24h_scan_avg) |
551 | | - , s24h_scan_end+(s24h_scan_skp*s24h_scan_avg) |
552 | | - , s24h_scan_avg |
553 | | - , s24h_scan_std; |
| 543 | + if s24h_hard_prb > 0.0 then |
| 544 | + printf "Hard parse %.1f%% first interval %.0fs-%.0fs then every %.0fs (stddev %.2f); marked red\n" |
| 545 | + , 100*s24h_hard_prb |
| 546 | + , s24h_hard_beg+(s24h_hard_skp*s24h_hard_avg) |
| 547 | + , s24h_hard_end+(s24h_hard_skp*s24h_hard_avg) |
| 548 | + , s24h_hard_avg |
| 549 | + , s24h_hard_std; |
| 550 | + else |
| 551 | + printline "No hard parse injection"; |
| 552 | + end if; |
| 553 | + if s24h_hard_prb > 0.0 then |
| 554 | + printf "Full scan %.1f%% first interval %.0fs-%.0fs then every %.0fs (stddev %.2f); marked blue\n" |
| 555 | + , 100*s24h_scan_prb |
| 556 | + , s24h_scan_beg+(s24h_scan_skp*s24h_scan_avg) |
| 557 | + , s24h_scan_end+(s24h_scan_skp*s24h_scan_avg) |
| 558 | + , s24h_scan_avg |
| 559 | + , s24h_scan_std; |
| 560 | + else |
| 561 | + printline "No full scan injection"; |
| 562 | + end if; |
554 | 563 | end if; |
555 | 564 | printline "\nPooling information:"; |
556 | 565 | if pool_type = "sessionpool" or pool_type = "connectionpool" then |
|
0 commit comments