Upload
elvin-holmes
View
218
Download
0
Embed Size (px)
DESCRIPTION
Background Previous study for NAND flash & Access patterns FAB, BPLRU, etc 3 Weak from sequential write patterns Weak from random write patterns
Citation preview
ExLRU : A Unified Write Buffer Cache Management for Flash Memory
EMSOFT '11
Liang Shi1,2, Jianhua Li1,2, Chun Jason Xue1, Chengmo Yang3 and Xuehai Zhou2 1Department of Computer Science, City University of Hong Kong, Kowloon, Hong Kong2Department of Computer Science, University of Science and Technology of China, Hefei, China3Department of Electrical & Commputer Engineering, University of Delaware2012. 01. 12 (Thu)
Kwangwoon univ. SystemSoftware Lab.
HoSeok Seo1
2
Introduction Propose
Write buffer management scheme for Flash memory
Purpose of write buffer? Increase the write performance Reduce the number of erase operations on flash memory
Why consider NAND Flash characteristics? Write operation time is longer than read operation NAND Flash has limited erase operation count Out-place-update
3
Background Previous study for NAND flash & Access patterns
FAB, BPLRU, etc
Weak from sequen-tial write patterns
Weak from random write patterns
4
Motivation Previous schemes is
Managed with the block-level information. Lack of the page-level information.
Result in inappropriate eviction decisions, as fol-lows:
Slow retirement of large cold blocks.- Block size is big, but pages is cold.
Early eviction of small hot blocks.- Block size is small, but pages is hot.
Cold page retention in heat-imbalanced blocks.- Few pages is hot, but most pages is cold.
Thus, ExLRU takes the page-level access in-formationand the characteristics of flash memory.
5
Cost Model of ExLRU The page-level information and the block-level infor-
mation
6
Cost Model of ExLRU Averaged Frequency of Pages (AFP)
Averaged Frequency of Block (AFB)
Unified eviction cost of block x (UC)
7
Cost Model of ExLRU Example
Cost is
8
Efficient ExLRU The cost model of ExLRU has the overhead of O(n).
Efficient ExLRU Proposed to reduce the overhead. Identify the block with UC value low enough, not the lowest. Pre-identify blocks during the idle time between two write
requests
Cost is
9
Efficient ExLRU Two processes
Scanning process and victim block selection process
(WR) (ER)
10
Efficient ExLRU In scanning process.
Work in time between two write requests, if the number of blocks in ER is smaller than a threshold Nmin.
Move blocks into ER, if UC < TUC
In victim block selection process. Select a block at LRU position of ER when the buffer is
full. If block miss in ER, UC values of blocks decrease. If hit in ER, re-compute UC, and move a block WR or
not. If page miss in ER, add pages a block, and re-compute
UC, and move a block MRU position of ER
11
Experimental Methodology Use event-driven Simulator SSD capacity : 8GB A page size : 2KB A block size : 64 pages FTL algorithm : FAST Trace : Financial, PC
12
Experimental Results Average Size and Number of Evicted Blocks
ExLRU_S : TUC is static ( 0.1 x 10-5 )ExLRU_D : TUC is dynamic
19.7% decrease 19.1% increase
13
Experimental Results Write and Erase Reduction in Financial trace
Best case10.4% decrease
Average3% decrease
14
Experimental Results Write and Erase Reduction in Financial trace
15
Parameter Sensitive Studies
Nmin : Min number of blocks of ERTUC : Max value for ERTSCAN. : Max number of blocks at scan
16
Conclusion This scheme is designed to improve the write per-
formance and reduce the number of erase opera-tions
Care about diverse type of access patterns.
Exploit the page-level information and the block size