postgresql portland performance practice project - database test 2 background
DESCRIPTION
Portland State University Computer Science Department sponsored speaker series. Background information for Database Test 2 (DBT-2).TRANSCRIPT
PostgreSQL PortlandPerformance Practice Project
Database Test 2 (DBT-2)Background
Mark [email protected]
Portland State University
January 8, 2009
Contents
◮ DBT-2 Background
◮ Test Architecture
◮ Database Schema
◮ Transactions
Once upon a time. . .
The OSDL (Open Source Development Labs) mission was:
Providing Open Source developers with computingresources to build data center and telco classenhancements into Linux and its Open Source softwarestack, enabling it to become the leading UNIX OperatingSystem for e-Business development and deployment.1
1http://web.archive.org/web/20020517124256/http://www.osdl.org/lab/mission.html
One approach to achieve the OSDL mission
The DBT (Database Test) kits were derived from industrystandard specifications that have well understood workloads tocharacterize Linux based systems. But when using a completelyopen source software stack, it turned from an operating systemoriented characterization to a database management systemstuning and development exercise. In other words the focus turnedto open source database management systems.
Database Test 2 (DBT-2)
What DBT-2 Is
◮ Test Kit
◮ OLTP Workload
◮ TPC-C Fair-Use Derivative
◮ Open Source
What DBT-2 Is Not
◮ Marketing benchmarking kit
◮ TPC-C Benchmarkcompliant
Online transaction processing (OLTP)
Online transaction processing, or OLTP, refers to a classof systems that facilitate and managetransaction-oriented applications, typically for data entryand retrieval transaction processing. The term issomewhat ambiguous; some understand a ”transaction”in the context of computer or database transactions,while others (such as the Transaction ProcessingPerformance Council) define it in terms of business orcommercial transactions.2 OLTP has also been used torefer to processing in which the system respondsimmediately to user requests. An automatic tellermachine (ATM) for a bank is an example of acommercial transaction processing application.3
2Transaction Processing Performance Council website(http://www.tpc.org/)
3http://en.wikipedia.org/wiki/OLTP
TPC (Transaction Processing Performance Council)
The TPC is a non-profit corporation founded to definetransaction processing and database benchmarks and todisseminate objective, verifiable TPC performance datato the industry.4
4http://www.tpc.org/information/about/about.asp
TPC-C Benchmark
Approved in July of 1992, TPC Benchmark C is anon-line transaction processing (OLTP) benchmark.TPC-C is more complex than previous OLTP benchmarkssuch as TPC-A because of its multiple transaction types,more complex database and overall execution structure.TPC-C involves a mix of five concurrent transactions ofdifferent types and complexity either executed on-line orqueued for deferred execution. The database is comprisedof nine types of tables with a wide range of record andpopulation sizes. TPC-C is measured in transactions perminute (tpmC).5
5http://www.tpc.org/tpcc/
Why DBT-2?
A TPC-C open source fair-use implementation for testing andcharacterizing database management systems.
Why isn’t this a TPC-C?
◮ Kit not audited by 3rd party auditor.
◮ No terminal emulator.
◮ No commercially supported transaction manager.
◮ No ACID tests.
◮ No pricing information.
What does a TPC-C look like?
Have a look:http://www.tpc.org/tpcc/results/tpcc_results.asp
What does DBT-2 look like?
Have a look:http://osdldbt.sourceforge.net/dbt2/pgsql/report/
DBT-2 Components
DBT-2 Transactions
5 Transactions
◮ Delivery - Read/Write
◮ New Order - Read/Write
◮ Order Status - Read/Write
◮ Payment - Read/Write
◮ Stock Level - Read Only
Materials Are Freely Available
◮ http://www.slideshare.net/markwkm
LATEX Beamer (source)◮ http://git.postgresql.org/?p=~markwkm/performance-tuning.git
Time and Location
When: 2nd Thursday of the monthLocation: Portland State UniversityRoom: FAB 86-01 (Fourth Avenue Building)Map: http://www.pdx.edu/map.html
Coming up next time. . .
Diving deep into the DBT-2 kit.
/ \~~~/ \ . o O ( Thank you! )
,----( oo )
/ \ /
/| (\ |(
^ \ / \ /\ |
| | | | -"
Acknowledgements
Haley Jane Wakenshaw
/ \~~~/ \,----( oo )
/ \ /
/| (\ |(
^ \ / \ /\ |
| | | | -"
License
This work is licensed under a Creative Commons Attribution 3.0Unported License. To view a copy of this license, (a) visithttp://creativecommons.org/licenses/by/3.0/us/; or, (b)send a letter to Creative Commons, 171 2nd Street, Suite 300, SanFrancisco, California, 94105, USA.