Design, Implementation, and Performance Evaluation of a Detection-Based Adaptive Block Replacement Scheme

A new buffer replacement scheme, called DEAR (detection-based adaptive replacement), is presented for effective caching of disk blocks in the operating system. The proposed DEAR scheme automatically detects block reference patterns of applications and applies different replacement policies to different applications depending on the detected reference pattern. The detection is made by a periodic process and is based on the relationship between block attribute values, such as backward distance and frequency gathered in a period, and the forward distance observed in the next period. This paper also describes an implementation and performance measurement of the DEAR scheme in FreeBSD. The results from performance measurements of several real applications show that, compared with the LRU scheme, the proposed scheme reduces the number of disk I/Os by up to 51 percent, and the response time by up to 35 percent in the case of single application executions. For multiple application executions, the results show that the proposed scheme reduces the number of disk I/Os by up to 20 percent and the overall response time by up to 18 percent.

[1]  Pei Cao,et al.  Adaptive page replacement based on memory reference behavior , 1997, SIGMETRICS '97.

[2]  Mary Baker,et al.  Measurements of a distributed file system , 1991, SOSP '91.

[3]  Christos Faloutsos,et al.  Flexible and Adaptable Buffer Management Techniques for Database Management Systems , 1995, IEEE Trans. Computers.

[4]  B. Gopinath,et al.  An inter-reference gap model for temporal locality in program behavior , 1995, SIGMETRICS '95/PERFORMANCE '95.

[5]  Maurice J. Bach The Design of the UNIX Operating System , 1986 .

[6]  Jim Zelenka,et al.  Informed prefetching and caching , 1995, SOSP.

[7]  Harrick M. Vin,et al.  Design and Implementation of Symphony: An Integrated Multimedia File System , 1997 .

[8]  FaloutsosChristos,et al.  Flexible and Adaptable Buffer Management Techniques for Database Management Systems , 1995 .

[9]  G. C. Polyzos,et al.  A static analysis of I/O characteristics of scientific applications in a production workload , 1993, Supercomputing '93.

[10]  J. T. Robinson,et al.  Data cache management using frequency-based replacement , 1990, SIGMETRICS '90.

[11]  Gerhard Weikum,et al.  The LRU-K page replacement algorithm for database disk buffering , 1993, SIGMOD Conference.

[12]  Todd C. Mowry,et al.  Automatic compiler-inserted I/O prefetching for out-of-core applications , 1996, OSDI '96.

[13]  Kai Li,et al.  Application-Controlled File Caching Policies , 1994, USENIX Summer.

[14]  Sang Lyul Min,et al.  On the existence of a spectrum of policies that subsumes the least recently used (LRU) and least frequently used (LFU) policies , 1999, SIGMETRICS '99.

[15]  Sang Lyul Min,et al.  Towards application/file-level characterization of block references: a case for fine-grained buffer management , 2000, SIGMETRICS '00.

[16]  Peter J. Denning,et al.  Operating Systems Theory , 1973 .

[17]  Uresh K. Vahalia UNIX Internals: The New Frontiers , 1995 .

[18]  Asit Dan,et al.  Generalized interval caching policy for mixed interactive and long video workloads , 1996, Electronic Imaging.

[19]  P ? ? ? ? ? ? ? % ? ? ? ? , 1991 .