postgresql portland performance practice project - database test 2 background

19
PostgreSQL Portland Performance Practice Project Database Test 2 (DBT-2) Background Mark Wong [email protected] Portland State University January 8, 2009

Upload: mark-wong

Post on 18-Dec-2014

5.002 views

Category:

Technology


1 download

DESCRIPTION

Portland State University Computer Science Department sponsored speaker series. Background information for Database Test 2 (DBT-2).

TRANSCRIPT

Page 1: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

PostgreSQL PortlandPerformance Practice Project

Database Test 2 (DBT-2)Background

Mark [email protected]

Portland State University

January 8, 2009

Page 2: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

Contents

◮ DBT-2 Background

◮ Test Architecture

◮ Database Schema

◮ Transactions

Page 3: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

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

Page 4: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

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.

Page 5: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

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

Page 6: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

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

Page 7: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

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

Page 8: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

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/

Page 9: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

Why DBT-2?

A TPC-C open source fair-use implementation for testing andcharacterizing database management systems.

Page 10: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

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.

Page 11: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

What does a TPC-C look like?

Have a look:http://www.tpc.org/tpcc/results/tpcc_results.asp

Page 12: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

What does DBT-2 look like?

Have a look:http://osdldbt.sourceforge.net/dbt2/pgsql/report/

Page 13: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

DBT-2 Components

Page 14: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

DBT-2 Transactions

5 Transactions

◮ Delivery - Read/Write

◮ New Order - Read/Write

◮ Order Status - Read/Write

◮ Payment - Read/Write

◮ Stock Level - Read Only

Page 15: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

Materials Are Freely Available

PDF

◮ http://www.slideshare.net/markwkm

LATEX Beamer (source)◮ http://git.postgresql.org/?p=~markwkm/performance-tuning.git

Page 16: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

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

Page 17: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

Coming up next time. . .

Diving deep into the DBT-2 kit.

/ \~~~/ \ . o O ( Thank you! )

,----( oo )

/ \ /

/| (\ |(

^ \ / \ /\ |

| | | | -"

Page 18: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

Acknowledgements

Haley Jane Wakenshaw

/ \~~~/ \,----( oo )

/ \ /

/| (\ |(

^ \ / \ /\ |

| | | | -"

Page 19: PostgreSQL Portland Performance Practice Project - Database Test 2 Background

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.