swingbench - · pdf file• overview of swingbench ... sales history dss benchmark 100/0...
TRANSCRIPT
![Page 1: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/1.jpg)
SwingbenchDominic GilesOracle UK.
![Page 2: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/2.jpg)
Agenda
• About the author• Brief History• Overview of Swingbench• Swingbench Family• Supplied Benchmarks• Running and Installing Swingbench• Other Useful Tools• What Next• Questions
![Page 3: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/3.jpg)
About the Author
![Page 4: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/4.jpg)
About the Author
• Dominic Giles• http://www.dominicgiles.com• 18 years at Oracle UK• Database specialist• The UK “Database Solutions” team
![Page 5: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/5.jpg)
Brief History
![Page 6: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/6.jpg)
Brief History
• Development started out of a need to demonstrate a load on Real Application Clusters
• Many of the commercial database solutions where simply an overkill and too difficult to obtain
• It started as a throw away project • Swingbench 2.2 is currently production• Swingbench 2.3 is now functionally complete.
![Page 7: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/7.jpg)
Overview of Swingbench
![Page 8: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/8.jpg)
Overview of Swingbench• Simple to use load generator for Oracle
databases• Three different front ends
• Swingbench• Charbench• Minibench
• Four different benchmarks.• Trivial to add you own transactions.• Written in Java so should run on any platform
with a 1.5 JVM.
![Page 9: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/9.jpg)
Overview of Swingbench
• Typically used as a standalone load generator• However a Coordinator process allows multiple
load generators to work together.• ClusterOverview aggregates all of the results
together.• Its free....
![Page 10: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/10.jpg)
Overview of Swingbench
optional system monitoroptional system monitorreports on cpu and disk reports on cpu and disk
jdbc based transactionsjdbc based transactions
• Simple Architecture
Single instance databaseSingle instance database
![Page 11: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/11.jpg)
Overview of Swingbench
optional system monitoroptional system monitorreports on cpu and disk reports on cpu and disk
jdbc based transactionsjdbc based transactions
• Advanced Architecture
Cluster OverviewCluster Overviewand Coordinatorand Coordinator
Multiple instances of swingbenchMultiple instances of swingbench
Clustered DatabaseClustered Database
![Page 12: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/12.jpg)
Swingbench Family
![Page 13: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/13.jpg)
Swingbench Family
• Several front ends to the same kernel • Configurations are saved to an xml based file
• XML schema included• Results are typically saved in xml to a results file• Choose the frontend that suits your needs
![Page 14: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/14.jpg)
Swingbench FamilySwingbench
• Rich graphical front end• Real time charting• Editing of all configuration parameters (new in
2.3)• Useful for demonstrations
![Page 15: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/15.jpg)
![Page 16: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/16.jpg)
Swingbench FamilyMinibench
• Small footprint graphical front end• Simple real time charting• Results of benchmark are placed in file• Useful for accessing in the impact of an operation
such as a backup.
![Page 17: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/17.jpg)
![Page 18: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/18.jpg)
Swingbench FamilyCharbench
• Character based• Capable of vmstat/sar like output• Wide range of command line options• Used in “serious” benchmarking tests
![Page 19: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/19.jpg)
![Page 20: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/20.jpg)
![Page 21: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/21.jpg)
Swingbench FamilyClusterOverview
• Rich graphical front end• Real time charting• Typically used to test Oracle Real Application
Clusters • Can be used to coordinate large loads against
large SMP machines.
![Page 22: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/22.jpg)
Screen Shot neededScreen Shot needed
![Page 23: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/23.jpg)
Whats New in 2.3
• Updated UI for Minibench and Swingbench• Improved overview chart• TimesTen support• Benchmark windows• Jobs• More command line options• DSS benchmark• Faster benchmark schema creation
![Page 24: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/24.jpg)
Quick demo of Swingbench
![Page 25: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/25.jpg)
Supplied Benchmarks
![Page 26: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/26.jpg)
Supplied Benchmarks• Swingbench comes with four benchmarks• Configuration files located in the sample directory
Benchmark Description Read/Write Ratio
60/40
Calling Circle 70/30
Stress Test 50/50Sales History DSS benchmark 100/0
OrderEntry Classic Order Entry Benchmark. TPC-C LikeTelco based self service applicationSimple Insert / Update / Delete / Select benchmark
![Page 27: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/27.jpg)
BenchmarksOrder Entry
• TPC-C Like.• Uses Oracle10g's “oe” schema as its basis• Grows over time• Does not require pre-generation of data for the
benchmark.• Stored procedure and native code versions• Choice of using partitioning• Maximum size 100GB*
* If using the order entry creation wizard* If using the order entry creation wizard
![Page 28: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/28.jpg)
* Wizards can be run in “lights out” (character) mode* Wizards can be run in “lights out” (character) mode
![Page 29: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/29.jpg)
BenchmarksCalling Circle
• Telco based self service benchmark• Relatively static in size• Requires the generation of a new set of data files
for each new benchmark run• The schema will eventually become “worn out”
and will need to be rebuild• Maximum size 100GB
* If using the order entry creation wizard* If using the order entry creation wizard
![Page 30: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/30.jpg)
* Wizards can be run in “lights out” (character) mode* Wizards can be run in “lights out” (character) mode
![Page 31: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/31.jpg)
BenchmarksStress Test
• Simplest of all the benchmarks• Performs simple Insert/Update/Delete/Select
operations• Schema created at run time• Useful for quick tests• Can be run against TimesTen
* If using the order entry creation wizard* If using the order entry creation wizard
![Page 32: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/32.jpg)
BenchmarksDSS
• A Data Warehousing class benchmark• Still under testing• Based on the Oracle10g “Sales History” schema• No wizard at present
• Priority to build one• Uses “Datagenerator” to populate the database.
• Scripts ship with Datagenerator
• Maximum size limited by disk and time
![Page 33: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/33.jpg)
BenchmarksDeveloping your own
• Swingbench ships with a “blank” benchmark that calls a stored procedure which can be modified to include your own transactions
• The Java source for all the transactions is shipped with swingbench.• An “Ant” script will compile your new or modified
transactions
• Simple Java API allows for the creation of new transactions
![Page 34: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/34.jpg)
Running and Installing Swingbench
![Page 35: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/35.jpg)
Running and Installing Swingbench
• Installation requires the modification of either the swingbench.env file or swingbenchenv.bat file
• Simply set the SWINGHOME and JAVAHOME to reflect your environment
• Linux/Unix executables are in the bin directory• Windows are in the winbin directory
• Download from
http://www.dominicgiles.comhttp://www.dominicgiles.com
![Page 36: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/36.jpg)
Running and Installing Swingbench
• Swingbench, Minibench and Charbench can all override settings inside of the configuration file from the command line.
$> ./swingbench -c sample/ccconfig.xml -rt 1:30 -a $> ./swingbench -c sample/ccconfig.xml -rt 1:30 -a
• You'll need to use double quotes on some commands on Windows
C:\> charbench.bat -a -v “users,tpm,tps” -rt 0:15 C:\> charbench.bat -a -v “users,tpm,tps” -rt 0:15
![Page 37: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/37.jpg)
Running and Installing Swingbench
• Its possible to compare the results of several runs with the bmcompare tool
$> ./bmcompare -r results.xml,results0001.xml $> ./bmcompare -r results.xml,results0001.xml
• This will create a html file with a comparison of several runs
![Page 38: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/38.jpg)
Other Useful Tools
![Page 39: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/39.jpg)
Other Useful Tools
• To support various aspects of current and future functionality TraceAnalyzer and Datagenerator came into existence
• Datagenerator is designed to reverse engineer simple schemas and generate dummy data
• TraceAnalyzer is designed to parse SQL trace files• In future it will create transactions for Swingbench
![Page 40: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/40.jpg)
Datagenerator
![Page 41: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/41.jpg)
TraceAnalyzer
![Page 42: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/42.jpg)
What Next?
• Swingbench 2.3 is functionally complete• Testing, Bug Fixing, Documentation, Viewlets• Testing of the DSS schema at large scale
![Page 43: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/43.jpg)
What Next? Swingbench 2.4
• Wizard for the DSS benchmark• TimesTen/Oracle Benchmark• Application server based version of Swingbench• TraceAnalyzer improvements• Merge ClusterOverview with Swingbench
![Page 44: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/44.jpg)
Questions?
![Page 45: Swingbench - · PDF file• Overview of Swingbench ... Sales History DSS benchmark 100/0 OrderEntry Classic Order Entry Benchmark. TPC-C Like Telco based self service application](https://reader034.vdocument.in/reader034/viewer/2022051406/5ab393277f8b9a00728e347b/html5/thumbnails/45.jpg)