Let’s Talk About Storage & Recovery Methods for Non-Volatile Memory OLTP Database Systems
Andy Pavlo + Joy Arulraj Carnegie Mellon University
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
Let’s 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
2existing DBMSs on Intel NVM SDV
ADMS@VLDB’14
MyS MySQL L vs.
H-Sto Store
90% Reads / 10% Writes 50% Reads / 50% Writes
Summer Summer 2014 2014: : Fir irst t Blood lood, P , Par art II t II
4recovery methods for NVM.
submission.
DBMS DBMS Tes estbe tbed
5–Uses NUMA & PMFS interfaces. –No volatile DRAM.
–Supports different storage engines.
Engine ngine #1 #1 – In In-pla place ce U Upda pdate tes
6–VoltDB with ARIES. –Table storage + write-ahead log. –STX B+Tree
Engine ngine #2 #2 – Copy
ite Upda pdate tes
7–Shadow paging using LMDB Persistent B+Tree. –No logging. –Background garbage collection.
Engine ngine #3 #3 – Log
based U ed Updat ates es
8–Based on LevelDB’s LSM. –No table storage. –Background level compaction.
Stor Storage E Engin ngines
Tabl able St Stor
age Loggi gging Ex Examp mple
In-Place Yes Yes VoltDB Copy-on-Write Yes No LMDB Log-based No Yes LevelDB
NVM O Optimiz ptimized E Engine ngines
10“pointer-oriented”.
allocation library.
–Added arena-based allocation. –Significantly improved throughput.
Expe xperime imenta tal E l Evalua aluatio tion
11–2 million records (~2GB) –Two workload mixtures –Two skew settings –1 million transactions
Expe xperime imenta tal E l Evalua aluatio tion
12–2x DRAM (~200ns) –8x results not shown.
Throughput
90% Reads / 10% Writes 50% Reads / 50% Writes
4x 4x
NVM R Read eads/Wr Write ites
90% Reads / 10% Writes 50% Reads / 50% Writes
Stores Loads
Reco ecovery T Time ime
Zero Recovery
Dis iscu cussio ion
16“traditional” engines:
–Higher throughput –Reduced wear on device.
nstore.cs.cmu.edu
Fall all 2014 2014: : N-Sto Store
18–Column-store that supports fast in- place updates.
Andy Pavlo
Zdonik Mike Stonebraker Justin DeBrabant Joy Arulraj Subramanya Dulloor Rajesh Sankaran Jeff Parkhurst
@ANDY_PAVLO