Efficient Buffer Allocation Policy for the Adaptive Block Replacement Scheme

적응력있는 블록 교체 기법을 위한 효율적인 버퍼 할당 정책

  • 최종무 (서울대학교 컴퓨터공학과) ;
  • 조성제 (단국대학교 전산통계학과) ;
  • 노삼혁 (홍익대학교 정보컴퓨터공학부) ;
  • 민상렬 (서울대학교 컴퓨터공학과) ;
  • 조유근 (서울대학교 컴퓨터공학과)
  • Published : 2000.03.15

Abstract

The paper proposes an efficient buffer management scheme to enhance performance of the disk I/O system. Without any user level information, the proposed scheme automatically detects the block reference patterns of applications by associating block attributes with forward distance of a block. Based on the detected patterns, the scheme applies an appropriate replacement policy to each application. We also present a new block allocation scheme to improve the performance of buffer cache when kernel needs to allocate a cache block due to a cache miss. The allocation scheme analyzes the cache hit ratio of each application based on block reference patterns and allocates a cache block to maximize cache hit ratios of system. These all procedures are performed on-line, as well as automatically at system level. We evaluate the scheme by trace-driven simulation. Experimental results show that our scheme leads to significant improvements in hit ratios of cache blocks compared to the traditional schemes and requires low overhead.

본 논문에서는 디스크 입출력 시스템의 성능을 향상시키기 위한 효율적인 버퍼 관리 기법을 제시한다. 본 기법은 사용자 수준의 정보 없이 블록의 속성과 미래 참조 거리간의 관계를 기반으로 각 응용의 블록 참조 패턴을 자동으로 발견하고, 발견된 참조 패턴에 적합한 최적 블록 교체 기법을 적용한다. 또한, 응용이 참조하는 블록이 버퍼 캐쉬에 없어 새로운 버퍼 블록이 요구될 때, 응용별로 블록 참조 패턴에 따라 버퍼 예상 적중률을 분석하여 이를 기반으로 전체 버퍼 캐쉬의 적중률이 극대화되도록 해 주는 버퍼 할당 기법을 제안한다. 이러한 모든 과정은 시스템 수준에서 자동으로 그리고 온라인으로 수행된다. 제시한 기법의 성능을 평가하기 위해 블록 참조 트레이스를 이용해 모의 실험을 수행하였다. 실험 결과 제시한 기법은 적은 오버헤드로 기존의 블록 교체 기법들보다 캐쉬 블록의 적중률을 크게 향상시켜 주었다.

Keywords

References

  1. A. J. Smith, 'Disk cache-miss ratio analysis and design considerations,' ACM Trans. on Computer Systems, 3(3), pp 161-203, August 1985 https://doi.org/10.1145/3959.3961
  2. P. M. Chen, et al., 'Raid: High-Performance, Reliable Secondary Storage,' ACM Computing Surveys, 26(2), pp 145-182, June 1994 https://doi.org/10.1145/176979.176981
  3. E. G. Coffman and P. J. Denning, Operating Systems Theory, Prentice-Hall, Englewood Cliffs, New Jersey, 1973
  4. M. G. Baker, J. H. Hartman, M. D. Kupfer, K. W. Shirriff, and J. K. Ousterhout, 'Measurements of a Distributed File System,' Proceedings of the 13th Symposium on Operating System Principles, pp 198-212, 1991 https://doi.org/10.1145/121132.121164
  5. J. T. Robinson and M. V. Devarakonda, 'Data Cache Management Using Frequency-Based Replacement,' Proc. of the 1990 ACM SIGMETRICS Conf., pp 134-142, 1990 https://doi.org/10.1145/98457.98523
  6. E. J. O'Neil, P. E. O'Neil and G. Weikum, 'The LRU-K Page Replacement Algorithm for Database Disk Buffering,' Proc. of the 1993 ACM SIGMOD Conf., pp 297-306, 1993 https://doi.org/10.1145/170035.170081
  7. V. Phalke and B. Gopinath, 'An Inter-Reference Gap Model for Temporal Locality in Program Behavior,' Proc. of the 1995 ACM SIGMETRICS Conference, pp 291-300, 1995 https://doi.org/10.1145/223587.223620
  8. D. Lee, J. Choi, H. Choe, S. H. Noh, S. L. Min, and Y. Cho, 'Implementation and Performance Evaluation of the LRFU Replacement Policy,' Proceedings of the 23th Euromicro Conference, pp 106-111, 1997 https://doi.org/10.1109/EMSCNT.1997.658446
  9. K. Korner, 'Intelligent Caching for Remote File System,' Proceedings of the 10 th international Conference on Distributed Computing Systems, pp 220-226, May 1990
  10. C. D. Tait and D. Duchamp, 'Detection and Exploitation of File Working Sets,' Proceedings of the 11th International Conference on Distributed Computing Systems, pp 2.-9, May 1991 https://doi.org/10.1109/ICDCS.1991.148635
  11. G. Glass and P. Cao, 'Adaptive Page Replacement Based on Memory Reference Behavior,' Proceedings of the 1997 ACM SIGMETRICS Conference, pp 115-126, June 1997 https://doi.org/10.1145/258612.258681
  12. Patterson, G. A. Gibson, E. Ginting, D. Stodolsky, and J. Zelenka, 'Informed Prefetching and Caching,' Proceedings of the 15th Symposium on Operating System Principles, pp 1-16, 1995
  13. P. Cao, E. W. Felten, and K. Li, 'Implementation and Performance of Application Controlled File Caching,' Proceedings of the 1st USENIX Symposium on Operating Systems Design and Implementation, pp 165-178, 1994
  14. C. Faloutsos, R. Ng, and T. Sellis, 'Flexible and Adaptable Buffer Management Techniques for Database Management Systems,' IEEE Transactions on Computers, 44(4):546-560, April 1995 https://doi.org/10.1109/12.376169
  15. T. C. Mowry, A. K. Demke, and O. Krieger, 'Automatic Compiler-Inserted I/O Prefetching for Out-of-Core Applications,' Proceedings of the Second USENIX Symposium on Operating Systems Design and Implementation, pp 3-17, 1996 https://doi.org/10.1145/238721.238734
  16. B. K. Pasquale and G. C. Polyzos, 'A Static Analysis of I/O Characteristics of Scientific Applications in a Production Workload,' Proceedings of Supercomputing '93, pp 388-397, 1993 https://doi.org/10.1145/169627.169759
  17. A. Dan, P. S. Yu, and J. Y. Chung, 'Characterization of Database Access Pattern for Analytic Prediction of Buffer Hit Probability,' VLDB Journal, 4(1):127-154, January 1995 https://doi.org/10.1007/BF01232474
  18. M. F. Arlitt and C. L. Williamson, 'Web Server Workload Characterization The Search for Invariants,' Proceedings of the 1996 ACM SIGMETRICS Conference, pp 126-137, 1996 https://doi.org/10.1145/233013.233034
  19. P. J. Shenoy, P. Goyal, S. S. Rao, and H. M. Vin, 'Symphony: An Integrated Multimedia File System,' Proceedings of Multimedia Computing and Networking (MMCN) Conference, pp 124-138, 1998
  20. J. Choi, S. H. Noh, S. L. Min, and Y. Cho, 'An Implementation Study of a Detection-Based Adaptive Block Replacement Scheme,' Proceedings of the 1999 USENIX Annual Technical Conference, pp 239-252, 1999
  21. J. R. Spirn, 'Distance String Models for Program Behavior,' Computer, vol. 9, pp 14-20, Nov, 1976
  22. J. R. Spirn, Program Behavior: Models and Measurements, Elsevier-North Holland, N.Y., 1977
  23. J. Choi, 'Block Reference Behavior and Detection Results by the DEAR Scheme,' Technical Memo, http://ssrnet.snu.ac.kr/-choijm/DEAR/TM2.ps