next up previous
Next: Simulation Results Up: Experiment Previous: Experimental Environment

Trace-Driven Simulation

We have developed a simulator which models the behavior of a cache manager for a Web server. We use the approach of trace-driven simulation: the request arrivals of the simulator are taken from a log file. When a new request arrives in the simulator, it checks the contents of the cache to see whether the corresponding documents is already in it (according to its URL). If yes, the cache is left unchanged and the hit counter of the document is increased by one. Otherwise, the reference of the file corresponding to the request is fetched into the cache, provided the cache is not full. In the case where the cache is full, some documents are removed from the cache according to a predefined removal policy, until there is sufficient room for the new file. We also use a threshold: documents with a size greater than 50% of the cache size are never put in the cache.

We analyze two measures of efficiency of the removal policies, where the second one seems to be more relevant to the performance of the Web server.

Different cache removal policies have been investigated:

In order to compare the efficiency in a fair way, we run the simulation with log files for several consecutive days. For each day, we have run the simulator and have looked at the hit rate and weighted hit rate during this day. For the static policy, we have filled up the cache with the most popular documents of the previous day. For the others policies, the cache is initialized with the documents that were in the cache at the end of the previous simulation. We have done this both with the W3C and the INRIA traces.


next up previous
Next: Simulation Results Up: Experiment Previous: Experimental Environment
Nicolas Niclausse
8/25/1997