DOI QR코드

DOI QR Code

An Efficient Cleaning Scheme for File Defragmentation on Log-Structured File System

로그 구조 파일 시스템의 파일 단편화 해소를 위한 클리닝 기법

  • 박종규 (성균관대학교 소프트웨어대학) ;
  • 강동현 (성균관대학교 정보통신대학) ;
  • 서의성 (성균관대학교 소프트웨어대학) ;
  • 엄영익 (성균관대학교 소프트웨어대학)
  • Received : 2016.03.08
  • Accepted : 2016.03.22
  • Published : 2016.06.15

Abstract

When many processes issue write operations alternately on Log-structured File System (LFS), the created files can be fragmented on the file system layer although LFS sequentially allocates new blocks of each process. Unfortunately, this file fragmentation degrades read performance because it increases the number of block I/Os. Additionally, read-ahead operations which increase the number of data to request at a time exacerbates the performance degradation. In this paper, we suggest a new cleaning method on LFS that minimizes file fragmentation. During a cleaning process of LFS, our method sorts valid data blocks by inode numbers before copying the valid blocks to a new segment. This sorting re-locates fragmented blocks contiguously. Our cleaning method experimentally eliminates 60% of file fragmentation as compared to file fragmentation before cleaning. Consequently, our cleaning method improves sequential read throughput by 21% when read-ahead is applied.

로그 구조 파일 시스템에서는 쓰기 작업을 처리할 때 새로운 블록들이 순차적으로 할당된다. 그러나, 다수의 프로세스가 번갈아가며 동기적 쓰기 작업을 요청할 경우, 파일 시스템 상에서는 각 프로세스가 생성한 파일이 단편화될 수 있다. 이 파일 단편화는 읽기 요청을 처리할 때 다수의 블록 I/O를 발생시키기 때문에 읽기 성능을 저하시킨다. 게다가, 미리 읽기 기능은 한 번에 요청되는 데이터의 양을 증가시킴으로써 성능 저하를 더욱 심화시킨다. 이에, 본 논문에서는 파일 단편화 문제를 해결하기 위해 로그구조 파일 시스템의 새로운 클리닝 기법을 제안한다. 제안 기법은 로그 구조 파일 시스템의 클리닝 과정 중 유효 데이터 블록을 아이노드 번호 순으로 정렬함으로써 한 파일의 데이터 블록들을 인접하게 재배치한다. 실험 결과, 제안한 클리닝 기법이 클리닝 전에 비해 약 60%의 파일 단편화를 제거하였고, 그 결과로 미리 읽기 기능을 적용했을 때 읽기 성능을 최고 21%까지 향상시키는 것을 확인하였다.

Keywords

Acknowledgement

Supported by : 한국연구재단

References

  1. Y. Kang, K. Han, and D. Shin, "Improving the Performance of Log-Structured File Systems Using Logical Copy Technique," Proc. of the KIISE Korea Computer Congress, pp. 1258-1260, 2008. (in Korean)
  2. C. Min, K. Kim, H. Cho, S. Lee, and Y. Eom, "SFS: Random Write Considered Harmful in Solid State Drives," Proc. of USENIX Conference on File and Storage Technologies, pp. 12, 2012.
  3. J. Engel and R. Mertens, "LogFS-finally a Scalable Flash File System," Proc. of International Linux System Technology Conference, pp. 135-142, 2005.
  4. A. Schierl, G. Schellhom, D. Haneberg, and W. Reif, "Abstract Specification of the UBIFS File System for Flash Memory," Proc. of International Symposium on Formal Methods, pp. 190-206, 2009.
  5. S. Lim and K. Park, "An Efficient NAND Flash File System for Flash Memory Storage," IEEE Transactions on Computers, Vol. 55, No. 7, pp. 906-912, 2006. https://doi.org/10.1109/TC.2006.96
  6. M. Rosenblum and J. K. Ousterhout, "The Design and Implementation of a Log-Structured File System," ACM Transactions on Computer Systems, Vol. 10, No. 1, pp. 26-52, 1992. https://doi.org/10.1145/146941.146943
  7. L. Robert, Linux Kernel Development, 3rd edition, Pearson Education, 2010.
  8. V. Steve, C. Frost, and E. Kohler, "Reducing Seek Overhead with Application-Directed Prefetching," Proc. of USENIX Annual Technical Conference, pp. 24, 2009.
  9. M. Kaczmarczyk, M. Barczynski, W. Kilian, and C. Dubnicki, "Reducing Impact of Data Fragmentation Caused by In-line Deduplication," Proc. of ACM International Systems and Storage Conference, pp. 15, 2012.
  10. K. A. Smith and M. I. Seltzer, "File System Aging-Increasing the Relevance of File System Benchmarks," ACM SIGMETRICS Performance Evaluation Review, Vol. 25, No. 1, pp. 203-213, 1997. https://doi.org/10.1145/258623.258689
  11. R. Mendel and J. K. Ousterhout, "The LFS Storage Manager," Proc. of USENIX Summer 1990 Technical Conference, pp. 315-324, 1990.
  12. T. Blackwell, J. Harris, and M. I. Seltzer, "Heuristic Cleaning Algorithms in Log-Structured File Systems," Proc. of USENIX 1995 Technical Conference, pp. 277-288, 1995.
  13. C. Lee, D. Sim, J. Hwang, and S. Cho, "F2FS: A New File System for Flash Storage," Proc. of USENIX Conference on File and Storage Technologies, pp. 273-286, 2015.
  14. W. D. Norcott and D. Cappas. (2016, Jan 23). IOzone filesystem benchmark [Online]. Available: http://www.iozone.org/ (downloaded 2016, Feb. 12)