Skip to content

Commit d53b0af

Browse files
committed
Merge branch 'bkemain' into 'oramain'
Push bkemain to oramain for 3.1.3 See merge request rwp/rwloadsim!11
2 parents e11fe2b + 6e39a16 commit d53b0af

File tree

10 files changed

+63
-27
lines changed

10 files changed

+63
-27
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* The ashplot command can output a running graph
1010
* Added -= assignment
1111
* Various improvements to statistics gathering
12+
* Client version 18 no longer supported
13+
* Client version 23 now included
1214

1315
## 3.1.2
1416

bin/oltpplot

+9-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
# Changes:
77
#
8+
# 3-jul-2024 bengsig changed end-to-end colors
9+
# 3-jul-2024 bengsig 0% dropped -> no dropped
810
# 22-may-2024 bengsig Split long gnuplot lines
911
# 21-may-2024 bengsig memory is logscale due to large differences
1012
# 17-may-2024 bengsig add PGA
@@ -203,7 +205,7 @@ eval `rwloadsim -q plotinfo.rwl --myrunnumber=$runnumber`
203205

204206
if test $fractdrop = no
205207
then
206-
fracttext="Execution time fractiles ($droppct% dropped)"
208+
fracttext="Execution time fractiles ($droppct dropped)"
207209
else
208210
fracttext='Execution time fractiles (dropped "cost" 2s)'
209211
fi
@@ -687,12 +689,12 @@ END
687689
then
688690
cat >> $resultsdir$subdir${runnumber}/${vname}_waitexec.plot <<END
689691
set title "wait/queue, execute, total, app, db, network time for $fulvnam"
690-
plot "$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*\$$wcolumn) with lines lw $lw lc rgb "blue" axes x1y1 title "wait/queue", \\
691-
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*\$$acolumn) with lines lw $lw lc rgb "orange" axes x1y1 title "apptime" , \\
692-
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*\$$ecolumn) with lines lw $lw lc rgb "sea-green" axes x1y1 title "exec" , \\
693-
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*\$$dcolumn) with lines lw $lw lc rgb "cyan" axes x1y1 title "dbtime" , \\
694-
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*(\$$wcolumn+\$$ecolumn)) with lines lw $lw lc rgb "red" axes x1y1 title "total" , \\
695-
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*(\$$ecolumn-\$$dcolumn-\$$acolumn)) with lines lw $lw lc rgb "orchid" axes x1y1 title "network"
692+
plot "$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*\$$wcolumn) with lines lw $lw lc rgb "pink" axes x1y1 title "wait/queue", \\
693+
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*\$$acolumn) with lines lw $lw lc rgb "dark-green" axes x1y1 title "apptime" , \\
694+
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*\$$ecolumn) with lines lw $lw lc rgb "orange" axes x1y1 title "exec" , \\
695+
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*\$$dcolumn) with lines lw $lw lc rgb "blue" axes x1y1 title "dbtime" , \\
696+
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*(\$$wcolumn+\$$ecolumn)) with lines lw $lw lc rgb "cyan" axes x1y1 title "total" , \\
697+
"$resultsdir$subdir${runnumber}/waitexec.csv" using 1:(1000*(\$$ecolumn-\$$dcolumn-\$$acolumn)) with lines lw $lw lc rgb "red" axes x1y1 title "network"
696698
697699
END
698700
else

bin/oltpxcrun

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
. oltp-setup-env
1515

16-
options="gGk:HaR:hHr: -l help,key:,runperiod:,no-default,default,no-awr"
17-
usage="$commandname [-H] [-g|-G] [-a] [--default] [--no-awr] [-k|--key key] [-R file] [-r runperiod] [komment text ...]"
16+
options="2gGk:HaR:hHr: -l help,key:,runperiod:,no-default,default,no-awr"
17+
usage="$commandname [-H] [-g|-G] [-a] [-2] [--default] [--no-awr] [-k|--key key] [-R file] [-r runperiod] [komment text ...]"
1818

1919
help=no
2020
key="$RWLOLTP_NAME"
@@ -45,7 +45,7 @@ do
4545
;;
4646
--no-awr) copyargs="$copyargs --no-awr"; shift;
4747
;;
48-
-W|-a|-g|-G) copyargs="$copyargs $1"; shift;
48+
-2|-W|-a|-g|-G) copyargs="$copyargs $1"; shift;
4949
;;
5050
-H|--help|-h ) help=yes; shift;
5151
;;
@@ -64,6 +64,7 @@ cat <<END
6464
-g : show running graphs - requires X windows
6565
-G : show alternative running graphs - requires X windows
6666
-a : pre allocate partitions - use with great care
67+
-2 : use side 2 for the aw_transaction workload; special use only
6768
--no-default : do not set the default external control parameters before each run
6869
-R fil : Set non-default file to execute, default run.rwl
6970
END

docs/ERRORLIST.md

+5
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,11 @@ The $ora01013:break directive is in effect and ctrl-c has caused a break.
13151315
You need to also have a $ora01013:reset directive later in your rwl program
13161316
to allow any clean up procedures to be called.
13171317

1318+
### RWL-323 error: "Only %d out of %d NLS characters from clob saved in string of size %d bytes"
1319+
When performing the OCILobRead2 call, the clob in the database has more
1320+
characters than would would fit in the string variable provided. The return
1321+
value has been truncated to a lower of number of characters.
1322+
13181323
### RWL-600 internal error: '%s'
13191324
An abnormal situation caused an internal error in rwloadsim.
13201325
This is in most cases due to a programming error and it

docs/INSTALL.md

+19-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ There are three types of binary distributions available at github releases:
88

99
### Using complete binaries
1010

11-
Complete binaries distributed in a file such rwloadsim-linux-x86_64-bin-3.1.2.tgz
11+
Complete binaries distributed in a file such rwloadsim-linux-x86_64-bin-3.1.3.tgz
1212
can be used as is, i.e. without getting a clone or pull from github.
1313
It should be used if you simply want a full run time environment
1414
and it contains the following directories:
@@ -27,7 +27,7 @@ and it contains the following directories:
2727
If you prefer to have access to source code, but avoid building the executables,
2828
you can clone or pull from github (which would allow you to potentially compile
2929
rwloadsim yourself), and then
30-
use a file like rwloadsim-linux-x86_64-binonly-3.1.2.tgz.
30+
use a file like rwloadsim-linux-x86_64-binonly-3.1.3.tgz.
3131
This file contains little more than the compiled binaries of the rwloadsim program,
3232
and you can simply un-tar this file
3333
directly into your cloned or pulled directory; the result will be as if you had
@@ -46,7 +46,7 @@ On the system where you are going to run rwloadsim,
4646
create a (possibly shared) directory where you simply
4747
use a command like
4848
```
49-
tar -zxvf rwloadsim-linux-x86_64-bin-3.1.2.tgz
49+
tar -zxvf rwloadsim-linux-x86_64-bin-3.1.3.tgz
5050
```
5151
One install can be shared between several users as long as all have access to the directory.
5252
If appropriate, you can put the directory on an NFS (or some other) share and make it available to multiple systems.
@@ -66,7 +66,7 @@ You can use Oracle Instant Client or a full client (or even server) install.
6666
Start by doing a pull or clone of the sources from github
6767
as if you would do your own compile, and then use a command like
6868
```
69-
tar -zxvf rwloadsim-linux-x86_64-binonly-3.1.2.tgz
69+
tar -zxvf rwloadsim-linux-x86_64-binonly-3.1.3.tgz
7070
```
7171
to extract little more than the compiled rwloadsim binaries into your already existing pull or clone.
7272

@@ -157,7 +157,21 @@ If you are sharing the repository between many different users/projects, having
157157
the grants are set to only allow the needed access to the various repository tables.
158158
For most tables, this is insert and select.
159159

160-
### Updating the repostitory to version 3.1.2
160+
### Updating the repository to version 3.1.3
161+
162+
In versino 3.1.3, there are two new tables added to the repository
163+
and you therefore need to update the repository.
164+
The upgrade is done by logging in to your repository schema
165+
using sqlplus and executing both of rwl313.sql and rwlgrants.sql.
166+
167+
If you have a second repository schema, you need to run
168+
rwlsynonyms.sql logged in using sqlplus.
169+
170+
Note that this (and previous) updates are not cummulative,
171+
so if you are upgrading to 3.1.3 from a version earlier than
172+
3.1.2, you first need to perform the 3.1.2 repository update.
173+
174+
### Updating the repository to version 3.1.2
161175

162176
In version 3.1.2, there is a new column added to oltpxc and any existing
163177
repository need to be updated to reflect this.

docs/ORACLENET.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ or ```rwlman nettest```.
5252

5353
In addition to being part of the full rwloadsim distribution,
5454
the three utilities are distributed together with other as completely stand-alone
55-
executables in the file generated-linux-x86_64-bin-3.1.2.tgz.
55+
executables in the file generated-linux-x86_64-bin-3.1.3.tgz.
5656
It only contains the executable files, and they can be used without a complete installation
5757
of rwloadsim, as long as there is an Oracle client environment that can be an ordinary
5858
installation or an Instant Client installation.
@@ -63,7 +63,7 @@ with Instant Client it is the top directory of the installation.
6363

6464
After download, simply execute
6565
```
66-
tar -zxvf generated-linux-x86_64-bin-3.1.2.tgz
66+
tar -zxvf generated-linux-x86_64-bin-3.1.3.tgz
6767
```
6868
and possibly move the executables to one of the directories in your PATH.
6969
To get help for either, call it with the -h option.

docs/refman/oltpxcrun.html

+7-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/man2rwl/oltpxcrun.2rwl

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.SH NAME
33
oltpxcrun \- Execute oltpcore with external control
44
.SH SYNOPSIS
5-
\fBoltpxcrun [-H] [-g|-G] [-a] [-k key] [-R file] [-r runperiod] [--no-awr] [--default] [komment text ...]\fR
5+
\fBoltpxcrun [-H] [-g|-G] [-a] [-2] [-k key] [-R file] [-r runperiod] [--no-awr] [--default] [komment text ...]\fR
66
.P
77
Continuously make long runs with external control.
88
.SH OPTIONS
@@ -62,6 +62,11 @@ at the start of the run.
6262
Only use this if the automatic allocation via interval
6363
partitions appears to cause trouble
6464
.RE
65+
.P
66+
.B -2
67+
.RS 4
68+
Use side 2 of the aw_transaction workload - needed in special cases only.
69+
.RE
6570
.SH USAGE
6671
The
6772
.B oltpxcrun

oltp/plotinfo.rwl

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#
77
# Return some shell variables needed for oltpplot
88

9+
# bengsig 3-jul-2024 - 0% dropped -> no dropped
910
# bengsig 9-may-2024 - Add drop%
1011
# bengsig 19-mar-2024 - Better adtime check
1112
# bengsig 5-mar-2024 - Creation
@@ -58,15 +59,15 @@ execute at rwloadsim
5859
if forg = "GOOD" then goodcount := fgcount; end if;
5960
end loop;
6061
if failcount is not null and goodcount is not null then
61-
if failcount > 0.98 * goodcount then
62-
printf "droppct=%.0f\n", 100*failcount/goodcount;
62+
if failcount > 0.4 * goodcount then
63+
printf "droppct=%.0f%%\n", 100*failcount/goodcount;
6364
elseif failcount > 0.1 * goodcount then
64-
printf "droppct=%.1f\n", 100*failcount/goodcount;
65+
printf "droppct=%.1f%%\n", 100*failcount/goodcount;
6566
else
66-
printf "droppct=%.2f\n", 100*failcount/goodcount;
67+
printf "droppct=%.2f%%\n", 100*failcount/goodcount;
6768
end if;
6869
else
69-
printf "droppct=0\n";
70+
printf "droppct=no\n";
7071
end if;
7172

7273
end;

src/rwl.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*
1212
* History
1313
*
14+
* bengsig 8-jul-2024 - Releasing 3.1.3 production
1415
* bengsig 4-jun-2024 - $ora01013:break
1516
* bengsig 27-may-2024 - Improve some comments
1617
* bengsig 17-apr-2024 - nostatistics statement
@@ -2351,8 +2352,8 @@ extern const char rwlexecbanner[];
23512352

23522353
#define RWL_VERSION_MAJOR 3
23532354
#define RWL_VERSION_MINOR 1
2354-
#define RWL_VERSION_RELEASE 2
2355-
#define RWL_VERSION_TEXT "Development" RWL_EXTRA_VERSION_TEXT
2355+
#define RWL_VERSION_RELEASE 3
2356+
#define RWL_VERSION_TEXT "Production" RWL_EXTRA_VERSION_TEXT
23562357
#define RWL_VERSION_DATE // undef to not include compile date
23572358
extern ub4 rwlpatch;
23582359

0 commit comments

Comments
 (0)