git clone https://github.com/sergiosuarez/cachesimulator
cd cachesimulator
sudo python setup.py
chmod +x cacheSim.py
python-numpy
python-scipy
python-matplotlib
./cacheSim.py <archivo-con-cadena-de-referencia> <política de desalojo> <tamaño-de-caché>
- LRU
- FIFO
- ÓPTIMO
- CLOCK
./cacheSim.py workload.txt LRU 50000
./optimo.py workload.txt 50000
./plot.py
python2 -O -m py_compile cacheSim.py
chmod +x cachesim.pyo
time python2 cacheSim.pyo workload.txt lru 50000