Skip to content

gws8820/2-Level-libCacheSim

Repository files navigation

2-Level libCacheSim

  • a high-performance cache simulator for running cache simulations.
  • runs in 2-Level so can set different replacement algorithm and cache size for each level.

Supported algorithms

libCachesim supports the following algorithms:

Eviction algorithms

Admission algorithms

Prefetching algorithms


Build and Install

One-line install

We provide some scripts for quick installation of libCacheSim.

cd scripts && bash install_dependency.sh && bash install_libcachesim.sh

Build libCacheSim

cmake recommends out-of-source build, so we do it in a new directory:

git clone https://github.com/gws8820/2-Level-libCacheSim
pushd libCacheSim
mkdir _build && cd _build
cmake .. && make -j
[sudo] make install
popd

Usage

cachesim (a high-performance cache simulator)

After building and installing libCacheSim, cachesim should be in the _build/bin/ directory.

basic usage

./bin/cachesim trace_path trace_type l1_eviction_algo l1_cache_size l2_eviction_algo l2_cache_size

use ./bin/cachesim --help to get more information.

Run a 2-level cache simulation

# Note that no space between the cache size and the unit, and the unit is not case-sensitive
./bin/cachesim ../data/trace.vscsi vscsi lru 128mb fifo 1gb

License

This project uses libCacheSim developed by 1a1a11a.

See LICENSE for details.

About

2-Level Cache Simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published