1
Gbil M Gabriel Mo Goethe Un Goethe Un On Computational Models On Computational Models Motivation Hard Disks (HDD) vs Motivation Hard Disks (HDD) vs Flash memories Flash memories Between RAM memories and hard disks: f tb i th d i t t bil ti are fast becoming the dominant storage on mobile computing h l d l dt diti lh d di k d i have already replaced traditional hard disks on some devices R d/ it bl k fdt f i Characteristic RAM Flash Hard disk Read/write blocks of data of siz Volatile Yes No No Volatile Yes No No Sh k it t Y Y N Shock resistant Yes Yes No HDDs throughput provided by rea Physical size Small Small Large HDDs, throughput provided by rea Storage capacity Small Large Very large Storage capacity Small Large Very large E ti M di Hi h SSDs, results show that reads and Energy consumption - Medium High but block size for reading is smalle Price Very high Medium Very cheap but block size for reading is smalle Translation Layer (TL) Translation Layer (TL) Th l ith th bl k i (B )f d d it External Memory Sorting The algorithm uses the same block size (Br) for reads and writes, External Memory Sorting similar to the I/O-model similar to the I/O model Ol ti l I/O Only sequential I/Os The translation layer: DFS ( The translation layer: Naïve DFS (text groups B sized blocks and writes B sized blocks oblivious to algorithm #vertices TL groups Br-sized blocks and writes Bw-sized blocks oblivious to algorithm #vertices TL accommodates the model (read block size Br write block size Bw) 262,144 0.218039 accommodates the model (read block size Br, write block size Bw) 1,048,576 0.925051 4 194 304 3879 14 4,194,304 3879.14 16 777 216 54465 7 16,777,216 54465.7 Mostly ran MADALGO Center for Massive Data Algorithmics a MADALGO Center for Massive Data Algorithmics, a D k Aj i Deepak Ajwani oruz Aarhus University niversity Aarhus University niversity for Flash Memory Devices for Flash Memory Devices s Flash Disks (SSD) Unit Cost Model s Flash Disks (SSD) Unit-Cost Model Memory of size M infinite flash disk block transfers of consecutive data B d l d ti ll Memory of size M , infinite flash disk, block transfers of consecutive data e B randomly and sequentially Reads in blocks of size Br writes in blocks of size Bw Reads in blocks of size Br, writes in blocks of size Bw Cost of an algorithm: #items transferred For r reads and w writes ads and writes is the same Cost of an algorithm: #items transferred. For r reads and w writes, ads and writes is the same cost = r·Br + w· Bw cost = r · Br + w · Bw d writes are also done in blocks, Many existent algorithms in the I/O model are easy to adapt in this model er than the block size for writing Many existent algorithms in the I/O-model are easy to adapt in this model er than the block size for writing Experimental Results on Solid-State Disks Experimental Results on Solid-State Disks External memory BFS Discussion External memory BFS Discussion Smallest running times are achieved in all cases when using the translation layer! translation layer! As predicted by the unit-cost model buffering Br-sized read blocks into As predicted by the unit-cost model, buffering Br-sized read blocks into Bw-sized write blocks improves the performance Mi d ti l d d I/O Conclusion Mixed sequential and random I/Os Conclusion The unit cost model is validated by experimental results The unit-cost model is validated by experimental results b k l ih ) book algorithm) B B Br Bw Rf 0.219124 1.10229 References 0.958422 1.73248 4641 21 >20000 Deepak Ajwani Andreas Beckmann Riko Jacob Ulrich Meyer and Gabriel 4641.21 >20000 1d 1d /O Deepak Ajwani, Andreas Beckmann, Riko Jacob, Ulrich Meyer and Gabriel Moruz On Computation Models for Flash Memory Devices SEA 2009 >1 day >1 day ndom I/Os Moruz. On Computation Models for Flash Memory Devices. SEA 2009. a Center of the Danish National Research Foundation a Center of the Danish National Research Foundation

On Computational ModelsModels for Flashfor Flash Memoryy ... · for Flashfor Flash Memoryy Devices s Flash Disks (SSD) Unit -Cost Model Memory of sizeM infinite flash disk block transfers

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: On Computational ModelsModels for Flashfor Flash Memoryy ... · for Flashfor Flash Memoryy Devices s Flash Disks (SSD) Unit -Cost Model Memory of sizeM infinite flash disk block transfers

G b i l MGabriel MoGoethe UnGoethe Un

On Computational ModelsOn Computational Models Motivation Hard Disks (HDD) vsMotivation Hard Disks (HDD) vs

Flash memoriesFlash memories

Between RAM memories and hard disks:

f t b i th d i t t bil tiare fast becoming the dominant storage on mobile computing

h l d l d t diti l h d di k d ihave already replaced traditional hard disks on some devices

R d/ it bl k f d t f iCharacteristic RAM Flash Hard disk Read/write blocks of data of sizVolatile Yes No NoVolatile Yes No NoSh k i t t Y Y NShock resistant Yes Yes No

HDDs throughput provided by reaPhysical size Small Small Large HDDs, throughput provided by reay gStorage capacity Small Large Very largeStorage capacity Small Large Very largeE ti M di Hi h SSDs, results show that reads andEnergy consumption - Medium High

but block size for reading is smallePrice Very high Medium Very cheap but block size for reading is smalle

Translation Layer (TL)Translation Layer (TL)

Th l ith th bl k i (B ) f d d it External Memory SortingThe algorithm uses the same block size (Br) for reads and writes, External Memory Sortingsimilar to the I/O-modelsimilar to the I/O model

O l ti l I/OOnly sequential I/Os

The translation layer: N ï DFS (The translation layer: Naïve DFS (textgroups B sized blocks and writes B sized blocks oblivious to algorithm #vertices TLgroups Br-sized blocks and writes Bw-sized blocks oblivious to algorithm #vertices TL

accommodates the model (read block size Br write block size Bw)262,144 0.218039

accommodates the model (read block size Br, write block size Bw)1,048,576 0.925051, ,4 194 304 3879 144,194,304 3879.1416 777 216 54465 716,777,216 54465.7

Mostly ran

MADALGO Center for Massive Data Algorithmics aMADALGO – Center for Massive Data Algorithmics, a

D k Aj iDeepak Ajwanioruz p jAarhus Universityniversity Aarhus Universityniversity

for Flash Memory Devicesfor Flash Memory Devicesys Flash Disks (SSD) Unit Cost Models Flash Disks (SSD) Unit-Cost Model

Memory of size M infinite flash disk block transfers of consecutive dataB d l d ti ll

Memory of size M , infinite flash disk, block transfers of consecutive datae B randomly and sequentially

Reads in blocks of size Br writes in blocks of size BwReads in blocks of size Br, writes in blocks of size Bw

Cost of an algorithm: #items transferred For r reads and w writesads and writes is the same

Cost of an algorithm: #items transferred. For r reads and w writes,ads and writes is the same

cost = r · Br + w · Bwcost = r · Br + w · Bw

d writes are also done in blocks, Many existent algorithms in the I/O model are easy to adapt in this model

er than the block size for writingMany existent algorithms in the I/O-model are easy to adapt in this model

er than the block size for writing

Experimental Results on Solid-State DisksExperimental Results on Solid-State Disks

External memory BFS DiscussionExternal memory BFS Discussion

Smallest running times are achieved in all cases when using the

translation layer!translation layer!

As predicted by the unit-cost model buffering Br-sized read blocks intoAs predicted by the unit-cost model, buffering Br-sized read blocks into

Bw-sized write blocks improves the performance

Mi d ti l d d I/O ConclusionMixed sequential and random I/Os Conclusion

The unit cost model is validated by experimental resultsThe unit-cost model is validated by experimental results

b k l i h )book algorithm)B BBr Bw

R f0.219124 1.10229

References0.958422 1.732484641 21 >20000

Deepak Ajwani Andreas Beckmann Riko Jacob Ulrich Meyer and Gabriel4641.21 >20000

1 d 1 d/O

Deepak Ajwani, Andreas Beckmann, Riko Jacob, Ulrich Meyer and Gabriel Moruz On Computation Models for Flash Memory Devices SEA 2009

>1 day >1 day ndom I/Os Moruz. On Computation Models for Flash Memory Devices. SEA 2009.

a Center of the Danish National Research Foundationa Center of the Danish National Research Foundation