DOI QR코드

DOI QR Code

A Adaptive Garbage Collection Policy for Flash-Memory Storage System in Embedded Systems

실시간 시스템에서의 플래시 메모리 저장 장치를 위한 적응적 가비지 컬렉션 정책

  • Received : 2017.05.12
  • Accepted : 2017.05.24
  • Published : 2017.06.30

Abstract

NAND flash memory has advantages of non-volatility, little power consumption and fast access time. However, it suffers from inability that does not provide to update-in-place and the erase cycle is limited. Moreover, the unit of read/write operation is a page and the unit of erase operation is a block. Therefore, erase operation is slower than other operations. The AGC, the proposed garbage collection policy focuses on not only garbage collection time reduction for real-time guarantee but also wear-leveling for a flash memory lifetime. In order to achieve above goals, we define three garbage collection operating modes: Fast Mode, Smart Mode, and Wear-leveling Mode. The proposed policy decides the garbage collection mode depending on system CPU usage rate. Fast Mode selects the dirtiest block as victim block to minimize the erase operation time. However, Smart Mode selects the victim block by reflecting the invalid page number and block erase count to minimizing the erase operation time and deviation of block erase count. Wear-leveling Mode operates similar to Smart Mode and it makes groups and relocates the pages which has the similar update time. We implemented the proposed policy and measured the performance compare with the existing policies. Simulation results show that the proposed policy performs better than Cost-benefit policy with the 55% reduction in the operation time. Also, it performs better than Greedy policy with the 87% reduction in the deviation of erase count. Most of all, the proposed policy works adaptively according to the CPU usage rate, and guarantees the real-time performance of the system.

Keywords

References

  1. F. Douglis, R. Caceres, M.F. Kasho, P. Krishnan, K. Li, B. Marsh, J. Tauber, "Storage Alternative for Mobile Computers," Proceedings of the 1st USENIX Symposium on Operating System Design and Implementation, pp. 25-37, 1994.
  2. M.L. Chiang, P.C.H. Lee, R.C. Chang, "Managing Flash Memory in Personal Communication Devices," Proceedings of IEEE Symposium on Consumer Electronics, pp. 177-182, 1997.
  3. M.L. Chiang, R.C .Chang, "Cleaning Policies in Mobile Computers Using Flash Memory," Journal of System and Software, Vol. 48, No. 3, pp. 213-231, 1999. https://doi.org/10.1016/S0164-1212(99)00059-X
  4. A. Kawaguchi, S. Nishioka, H. Motoda "A Flash-Memory Based File System," Proceedings of 1995 USENIX Technical Conference, pp. 155-164, 1995.
  5. O. Kwon, K. Koh, "Swap-aware Garbage Collection for NAND Flash Memory Based Embedded Systems," Proceedings of IEEE 7th International Conference on Computer and Information Technology, pp. 787-292, 2007.
  6. S.J. Baek, J.M. Choi, "Design and Implementation of MODA Allocation Scheme Based on Analysis of Block Cleaning Cost," Journal of KISE, Vol. 34, No. 11, pp. 599-609, 2007 (in Korean).
  7. S.H. Hwang, J.W. Kwak, "Garbage Collection Techniques for Reduction of Migration Overhead and Lifetime Prolongment of NAND Flash Memory," IEMEK J. Embed. Sys. Appl., Vol. 11, No. 2, pp. 125-134, 2016 (in Korean). https://doi.org/10.14372/IEMEK.2016.11.2.125
  8. S.H. Kim, J.W. Kwak, "Garbage Collection Method Using Proxy Block Considering Index Data Structure Based on Flash Memory," Journal of KSCI, Vol. 20, No. 6, pp. 1-11, 2015 (in Korean).
  9. V. Prabhakaran, T. Wobber, "SSD Extension for DiskSim Simulation Environment." Microsoft Research 2009.
  10. K9GAG08U0M 2G x 8bit MLC NAND Flash Memory Data Sheet, Samsung Electronics, https://www.samsung.com, 2007.