1a1a11a / libCacheSim

a high performance library for building cache simulators
GNU General Public License v3.0
159 stars 34 forks source link

How do you warm up? #7

Closed gwanil closed 2 years ago

gwanil commented 2 years ago

[Juncheng Yang, Yao Yue, Rashmi Vinayak, A large scale analysis of hundreds of in-memory cache clusters at Twitter. 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI 20), 2020]

In this paper, it says that I warmed up 5 days in Sector 6.2 Simulation Setup, but I don't know how to warm up traces except for open_trace when I used a simulator. How can I warm up while using Quickstart? I downloaded the trace used in the current experiment.

1a1a11a commented 2 years ago

you can read requests from the trace, send to cache, continue until the a certain criteria (e.g. 5 days of requests) The flow is 1. create a reader, 2. create a cache, 3. read the first request, send to cache, 4. loop step 3 till the the request is 5 days after the first request

gwanil commented 2 years ago

Currently, I want to download trace from Snia and do an experiment through test.c. To do that, I want to warm up the data for 5 days and measure the miss ratio through the trace for 1 day, should I read the trace format as txt or binary?

1a1a11a commented 2 years ago

Yes. You can try both, we have been using binary trace, but it also supports plain text as well.