Lets Talk About Storage & Recovery Methods for Non-Volatile - - PowerPoint PPT Presentation

let s talk about storage recovery methods for non
SMART_READER_LITE
LIVE PREVIEW

Lets Talk About Storage & Recovery Methods for Non-Volatile - - PowerPoint PPT Presentation

Lets Talk About Storage & Recovery Methods for Non-Volatile Memory OLTP Database Systems Andy Pavlo + Joy Arulraj Carnegie Mellon University Winter Winter 2013: 2013: Fir irst B t Blood lood Initial evaluation of existing DBMSs


slide-1
SLIDE 1

Let’s Talk About Storage & Recovery Methods for Non-Volatile Memory OLTP Database Systems

Andy Pavlo + Joy Arulraj Carnegie Mellon University

slide-2
SLIDE 2

Winter Winter 2013: 2013: Fir irst B t Blood lood

2
  • Initial evaluation of

existing DBMSs on Intel NVM SDV

  • Results published

ADMS@VLDB’14

slide-3
SLIDE 3 3

MyS MySQL L vs.

  • vs. H

H-Sto Store

90% Reads / 10% Writes 50% Reads / 50% Writes

slide-4
SLIDE 4

Summer Summer 2014 2014: : Fir irst t Blood lood, P , Par art II t II

4
  • Evaluate storage and

recovery methods for NVM.

  • Preparing SIGMOD’14

submission.

slide-5
SLIDE 5

DBMS DBMS Tes estbe tbed

5
  • Custom lightweight DBMS.

–Uses NUMA & PMFS interfaces. –No volatile DRAM.

  • Partition-based locking CC.
  • Pluggable architecture:

–Supports different storage engines.

slide-6
SLIDE 6

Engine ngine #1 #1 – In In-pla place ce U Upda pdate tes

6
  • Apply change to tuples directly.

–VoltDB with ARIES. –Table storage + write-ahead log. –STX B+Tree

slide-7
SLIDE 7

Engine ngine #2 #2 – Copy

  • py-on
  • n-Write U

ite Upda pdate tes

7
  • Make new copy before updating:

–Shadow paging using LMDB Persistent B+Tree. –No logging. –Background garbage collection.

slide-8
SLIDE 8

Engine ngine #3 #3 – Log

  • g-bas

based U ed Updat ates es

8
  • Changes only written to log.

–Based on LevelDB’s LSM. –No table storage. –Background level compaction.

slide-9
SLIDE 9 9

Stor Storage E Engin ngines

Tabl able St Stor

  • rag

age Loggi gging Ex Examp mple

In-Place Yes Yes VoltDB Copy-on-Write Yes No LMDB Log-based No Yes LevelDB

slide-10
SLIDE 10

NVM O Optimiz ptimized E Engine ngines

10
  • Refactored engines to be

“pointer-oriented”.

  • Extended Intel’s libpmem

allocation library.

–Added arena-based allocation. –Significantly improved throughput.

slide-11
SLIDE 11

Expe xperime imenta tal E l Evalua aluatio tion

11
  • Yahoo! Cloud Serving Benchmark:

–2 million records (~2GB) –Two workload mixtures –Two skew settings –1 million transactions

slide-12
SLIDE 12

Expe xperime imenta tal E l Evalua aluatio tion

12
  • NVM Latency Configuration:

–2x DRAM (~200ns) –8x results not shown.

  • 8 partitions on 8 cores.
slide-13
SLIDE 13 13

Throughput

  • ughput

90% Reads / 10% Writes 50% Reads / 50% Writes

4x 4x

slide-14
SLIDE 14 14

NVM R Read eads/Wr Write ites

90% Reads / 10% Writes 50% Reads / 50% Writes

Stores Loads

slide-15
SLIDE 15 15

Reco ecovery T Time ime

Zero Recovery

slide-16
SLIDE 16

Dis iscu cussio ion

16
  • NVM engines outperforms

“traditional” engines:

–Higher throughput –Reduced wear on device.

  • In-place performs best overall.
slide-17
SLIDE 17

N-STORE STORE

nstore.cs.cmu.edu

slide-18
SLIDE 18

Fall all 2014 2014: : N-Sto Store

18
  • First DBMS for NVM-only
  • perating environment.
  • OLTP/OLAP hybrid

–Column-store that supports fast in- place updates.

  • Indexing + Many-Core
slide-19
SLIDE 19

Andy Pavlo

  • Col. Stan

Zdonik Mike Stonebraker Justin DeBrabant Joy Arulraj Subramanya Dulloor Rajesh Sankaran Jeff Parkhurst

slide-20
SLIDE 20

@ANDY_PAVLO

END