DOI QR코드

DOI QR Code

SAF: A Scheme of Swap Space Allocation in File Systems to Reduce Disk Seek Time

SAF: 디스크 탐색 시간 향상을 위한 파일 시스템 내 스왑 공간 할당 기법

  • Received : 2011.02.15
  • Accepted : 2011.05.04
  • Published : 2011.06.30

Abstract

In recent computer systems with high-performance, users execute programs needing large memory and programs intensively accessing files simultaneously. Such a large memory requirement makes virtual memory systems access swap spaces in disk, and intensive file accesses require file systems to access file system partitions in disk. Executing the two kinds of programs at once incurs large disk seeks between swap spaces and file system partitions frequently. To solve the problem, this paper proposes a new scheme called SAF to create several swap spaces in a file system partition, where pages to be paged out are stored. When a page is paged out, the scheme stores the page to one of the swap spaces close to a disk location where the most recently accessed file is located. The chosen swap space in the file system partition is closer to the disk location than the traditional swap space, so that our scheme can reduce the large disk seek time spent to move to the traditional swap space in paging out a page. The experiment of our scheme implemented in FreeBSD 6.2 shows that SAF reduces the execution time of several benchmarks over FreeBSD ranging from 14% to 42%.

최근 고성능 컴퓨터에서 메모리 사용량이 매우 큰 프로그램과 파일 접근을 많이 하는 프로그램을 동시에 실행하고 있다. 많은 메모리의 사용은 디스크의 스왑 공간에 대해 디스크 접근을 빈번히 발생시키고, 파일 접근은 디스크의 파일 시스템 파티션으로 디스크 접근을 야기한다. 이런 두 종류의 프로그램을 동시에 실행하면 스왑 공간과 파일 시스템 파티션 간에 디스크 탐색이 빈번히 발생할 수 있다. 이런 문제를 해결하기 위해 본 논문은 SAF 기법을 제안한다. 이 기법은 파일 시스템 파티션에 새롭게 여러 개의 스왑 공간을 배치하고, 이들 공간에 페이지-아웃되는 페이지들을 저장한다. 즉, 페이지들은 가장 최근에 접근한 파일의 디스크 위치에 근접한 스왑 공간에 저장된다. 이 스왑 공간이 기존의 스왑 공간에 비해 최근 접근된 파일의 위치로부터 가까운 거리에 있기 때문에 파일 접근 후 발생하는 디스크 탐색의 시간을 크게 줄일 수 있다. 성능 검증을 위해 BSD기반의 FreeBSD 6.2 운영체제에 SAF를 구현하였고, 5개의 벤치마크를 실행하여 성능을 측정하였다. 성능 측정 결과 SAF는 FreeBSD에 비해 벤치마크의 실행 시간을 약 14%∼42% 감소시켰다.

Keywords

References

  1. M. McKusick, W. Joy, S. Leffler and R. Fabry, "A Fast File System for UNIX," ACM Transactions on Computer Systems, vol.2, no.3, pp.181-197, 1984. https://doi.org/10.1145/989.990
  2. M. K. McKusick and G. V. Neville-Neil, The Design and Implementation of the FreeBSD Operating System, pp.183, Addison-Wesley, 2004.
  3. M. Rosenblum and J. Ousterhout, "The Design and Implementation of a Log-structured File System," Proceedings of the 13th ACM symposium on Operating Systems Principles, pp.1-15, 1992.
  4. N. Megiddo and D. S. Modha, "ARC: A Self-Tuning, Low Overhead Replacement Cache," Proceedings of the 2nd USENIX Conference on File and Storage Technologies, pp.115-130, 2003.
  5. S. Bansal and D. Modha, "CAR: Clock with Adaptive Replacement," Proceedings of the 3rd USENIX Conference on File and Storage Technologies, pp.187-200, 2004.
  6. S. Jiang, F. Chen and X. Zhang, "CLOCK-Pro: An Effective Improvement of the CLOCK Replacement", Proceedings of USENIX 2005 Annual Technical Conference, pp.323-336, 2005.
  7. M. Dillon, "Design elements of the FreeBSD VM system," Web site: http://www.freebsd.org/doc/en/articles/vm-design/article.html.
  8. D. Black, J. Carter, G. Feinberg, R. MacDonald, S. Mangalat, E. Sheinbrood, J. V. Sciver and P. Wang, "OSF/1 Virtual Memory Improvements," Proceedings of USENIX Mach Symposium, pp.87-103, 1991.
  9. J. Katcher, "PostMark: A New Filesystem Benchmark," Network Appliance, Technical Report TR-30-22, 1997.
  10. Scimark2 benchmark home page. Web site: http://math.nist.gov/scimark2.
  11. K. Smith and M. Seltzer, "File Layout and File System Performance," Harvard University TR-35-94, 1994.
  12. NS2 Simulator home page. Web site: http://ww.isi.edu/nsnam/ns/.
  13. nbench benchmark home page. Web site: http://www.tux.org/-mayer/linux/bmark.html.
  14. A. Siberschatz, P. B. Galvin and G. Gagne, Operating System Concepts, 8th Ed., Wiley, 2008.
  15. L. Wirzenius, J. Oja, S. Stafford and A. Weeks, The Linux System Administrator's Guide, Web site: http://tldp.org/LDP/sag/html/index.html.
  16. H. Huang, W. Hung and K. G. Shin, "FS2: Dynamic Data Replication in Free Disk Space for Improving Disk Performance and Energy Consumption," Proceedings of the 20th ACM Symposium on Operating System Principles, pp.263-276, 2005.