18
Anti-Caching in Main Memory Database Systems Justin DeBrabant Brown University [email protected] n.edu

Anti-Caching in Main Memory Database Systems

  • Upload
    edmund

  • View
    197

  • Download
    6

Embed Size (px)

DESCRIPTION

Anti-Caching in Main Memory Database Systems. Justin DeBrabant Brown University [email protected]. A bit of history…. 1974 – System R. query optimization recovery transaction serialization lots of locks. Application. Buffer Pool. Primary Storage. Change is Good. - PowerPoint PPT Presentation

Citation preview

Page 1: Anti-Caching in Main Memory Database Systems

Anti-Caching in Main Memory Database Systems

Justin DeBrabantBrown University

[email protected]

Page 2: Anti-Caching in Main Memory Database Systems

A bit of history…

Page 3: Anti-Caching in Main Memory Database Systems

1974 – System R

• query optimization • recovery • transaction serialization– lots of locks

Page 4: Anti-Caching in Main Memory Database Systems

Application

Primary Storage

Buffer Pool

Page 5: Anti-Caching in Main Memory Database Systems

Change is Good

1970 1973 1976 1979 1982 1985 1988 1991 1994 1997 2000 2003 2006 2009 20121E+00

1E+02

1E+04

1E+06

1E+08

1E+10

USD

($)

source: http://www.archivebuilders.com/whitepapers/22045p.pdf

Page 6: Anti-Caching in Main Memory Database Systems

Great, that’s what the buffer pool is for...right?

Page 7: Anti-Caching in Main Memory Database Systems

OLTP Through the Looking Glass, and What We Found ThereSIGMOD ‘08, pp. 981-992, 2008.

31%

31%

26%

12%

Buffer Pool

Locking

Recovery

Real Work

Page 8: Anti-Caching in Main Memory Database Systems

What to do with all this memory?

Application

Consistent?Updates?Writes?

Page 9: Anti-Caching in Main Memory Database Systems

Parallel Main MemoryTransaction Processing System

H-Store: A High-Performance, DistributedMain Memory Transaction Processing SystemVLDB 2008.

Page 10: Anti-Caching in Main Memory Database Systems

YCSB, Update-Heavy, data < memory

Page 11: Anti-Caching in Main Memory Database Systems

<>

Page 12: Anti-Caching in Main Memory Database Systems

Anti-Caching in H-Store

• Memory becomes primary storage for “hot” data

• “Cold” data is evicted to disk in blocks, fetched when requested by a transaction

• Still no locks/latches

Page 13: Anti-Caching in Main Memory Database Systems

Application

Anti-Cache

Primary Storage

Page 14: Anti-Caching in Main Memory Database Systems

YCSB, Update-Heavy, data > memory

15x

Page 15: Anti-Caching in Main Memory Database Systems

+ Anti-Caching > + Buffer

Pool

The New Traditional Wisdom

Page 16: Anti-Caching in Main Memory Database Systems

Future Work

• Alternative eviction strategies• Larger-than-memory queries• New hardware –flash, persistent memory

Page 17: Anti-Caching in Main Memory Database Systems

The Team

StanZdonik(Brown)

MikeStonebraker(MIT)

StephenTu(MIT)

AndyPavlo(Brown)

JustinDeBrabant(Brown)

Anti-Caching: A New Approach toDatabase Management System ArchitectureIn Preparation.

Page 18: Anti-Caching in Main Memory Database Systems

Questions?

[email protected]