Skip to content

Simple N-way set associative LRU cache simulator written in Python.

License

Notifications You must be signed in to change notification settings

oleg-codaio/CacheSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CacheSim

CacheSim is a simple cache simulator, written in Python, that implements an N-way set-associative LRU cache, used for exploring the cache hit and miss rates when feeding in address traces from two programs, generated by the pinatrace Pin tool. These accesses are interleaved to simulate context switching between different threads.

This program is compatible with Python 2.6.

To generate an input file, run:

pin -t /path/to/pinatrace.so -- <executable>

Good sample programs to try are those involving interesting data reference patterns, such as image processing programs or those working with matrices. Trace files around a gigabyte in size are relatively quick to work with.

CacheSim also allows for working with and implementing different cache partitioning mechanisms. Built-in ones include no partitioning, static partitioning, and dynamic partitioning. Run cachesim.py --help to see other configurable options.

About

Simple N-way set associative LRU cache simulator written in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages