A mean field model for a class of garbage collection algorithms in flash-based solid state drivesA mean field model for a class of garbage collection algorithms in flash-based solid state drives
Faculty of Sciences. Mathematics and Computer Science
Modeling Of Systems and Internet Communication (MOSAIC)
Queueing systems. - Basel
77(2014):2, p. 149-176
University of Antwerp
Garbage collection (GC) algorithms play a key role in reducing the write amplification in flash-based solid state drives, where the write amplification affects the lifespan and speed of the drive. This paper introduces a mean field model to assess the write amplification and the distribution of the number of valid pages per block for a class of GC algorithms. Apart from the Random GC algorithm, class includes two novel GC algorithms: the -Choices GC algorithm, that selects blocks uniformly at random and erases the block containing the least number of valid pages among the selected blocks, and the Random++ GC algorithm, that repeatedly selects another block uniformly at random until it finds a block with a lower than average number of valid blocks. Using simulation experiments, we show that the proposed mean field model is highly accurate in predicting the write amplification (for drives with blocks). We further show that the -Choices GC algorithm has a write amplification close to that of the Greedy GC algorithm even for small values, e.g., , and offers a more attractive trade-off between its simplicity and its performance than the Windowed GC algorithm introduced and analyzed in earlier studies. The Random++ algorithm is shown to be less effective as it is even inferior to the FIFO algorithm when the number of pages per block is large (e.g., for b >= 64).