Analysis of caching algorithms for distributed file systems
- 1 July 1996
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGOPS Operating Systems Review
- Vol. 30 (3) , 12-21
- https://doi.org/10.1145/230908.230913
Abstract
When picking a cache replacement policy for file systems, LRU (Least Recently Used) has always been the obvious choice, because of the temporal locality found in programs and data. However, in the case of Sun NFS servers much of the locality is filtered out by the client cache. It has been conjectured that this filtering of locality by the client caches render LRU ineffective as a server cache replacement policy. This study disproves the conjecture by simulating a NFS server cache with real world traces. Traces were taken of NFS read and write requests sent to an NFS server. These traces were then run through a cache simulator using six different cache replacement policies: Least Recently Used (LRU), Least Frequently Used (LFU), Frequency Based Replacement (FBR), First In First Out (FIFO), Random (RAND), and Optimal (OPT). RAND and OPT were used to provide lower and upper bounds on performance. Results show that LRU is an effective NFS server cache replacement policy and frequency based tend to exhibit erratic behavior in the presence of temporal locality and sequentially accessed files.Keywords
This publication has 4 references indexed in Scilit:
- Data cache management using frequency-based replacementPublished by Association for Computing Machinery (ACM) ,1990
- 4.2BSD and 4.3BSD as examples of the UNIX systemACM Computing Surveys, 1985
- User Datagram ProtocolPublished by RFC Editor ,1980
- An anomaly in space-time characteristics of certain programs running in a paging machineCommunications of the ACM, 1969