Class Simulator


  • public final class Simulator
    extends Object
    A simulator that broadcasts the recorded cache events to each policy and generates an aggregated report. See reference.conf for details on the configuration.

    The simulator reports the hit rate of each of the policy being evaluated. A miss may occur due to,

    • Conflict: multiple entries are mapped to the same location
    • Compulsory: the first reference misses and the entry must be loaded
    • Capacity: the cache is not large enough to contain the needed entries
    • Coherence: an invalidation is issued by another process in the system

    It is recommended that multiple access traces are used during evaluation to see how the policies handle different workload patterns. When choosing a policy some metrics that are not reported may be relevant, such as the cost of maintaining the policy's internal structures.

    • Constructor Detail

      • Simulator

        public Simulator​(Config config)
    • Method Detail

      • run

        public void run()
        Broadcast the trace events to all of the policy actors.
      • main

        public static void main​(String[] args)