1
Fast Transaction Logging for Smartphones
Hao Luo, University of Nebraska Lincoln Hong Jiang, University of Texas Arlington Zhichao Yan, University of Texas Arlington Yaodong Yang, University of Nebraska Lincoln
Fast Transaction Logging for Smartphones Hao Luo , University of - - PowerPoint PPT Presentation
Fast Transaction Logging for Smartphones Hao Luo , University of Nebraska Lincoln Hong Jiang , University of Texas Arlington Zhichao Yan , University of Texas Arlington Yaodong Yang , University of Nebraska Lincoln 1 Outline Introduction
1
Fast Transaction Logging for Smartphones
Hao Luo, University of Nebraska Lincoln Hong Jiang, University of Texas Arlington Zhichao Yan, University of Texas Arlington Yaodong Yang, University of Nebraska Lincoln
2
Outline
3
ubiquitous.
performance.
Introduction
4
data persistency
Introduction
5
drastically slows down the mobile databases
Introduction
6
Transaction Commit Path
DB file Log file A
Memory
7
Transaction Commit Path
DB file Log file A’
Memory
8
Transaction Commit Path
DB file Log file A’
Memory Upon Txn Commit
9
Transaction Logging
10
SQLite Write Ahead Log
11
LevelDB Logging
12
devices, we set up a simple benchmark test
configurations
Logging Overhead
13
Logging Overhead
14
Log File Size
500 1000 1500 2000 2500 3000 3500 Seq Rnd Seq Rnd LevelDB SQLite
Log File Size (KB)
Ext4 F2FS
15
more data to the log files.
Log File Size
16
Data Written to Log File
1000 2000 3000 4000 5000 6000 7000 8000 Seq Rnd Seq Rnd LevelDB SQLite
Data Written to Log File (KB)
Ext4 F2FS
17
Data Written to Log File
18
Data Written to Device
5000 10000 15000 20000 25000 30000 Seq Rnd Seq Rnd LevelDB SQLite
Data Written to Device (KB)
Ext4 F2FS
19
mobile devices.
qNVRAM
20
xLog
Android Binder App App xLog Service Process qNVRAM buffer Log file
21
Evaluation
22
Micro-benchmark Performance
23
Micro-benchmark Write Amplification
24
Evaluation
25
Evaluation
192 231 265 278 2050 2104 2174 2417 500 1000 1500 2000 2500 3000 100 400 800 1600 100 400 800 1600 xLog write()+fsync() Average Latency (µs) Value Size (Byte) Logging Other
26
logging service that uses qNVRAM as a buffer, for Android smartphones.
tranditional logging scheme
amplification from 122x to 1.6x.
Conclusion
27