I want to ask if there such kinds of traces and scripts

188 views
Skip to first unread message

Gary Lee

unread,
Mar 21, 2021, 9:31:14 PM3/21/21
to cache-trace
I want to do some research about caching with low locality(means large reuse distance), but I didn't find such nice traces.

So I want to ask if there such kinds of traces in this project? Or any scripts to get L2 traces by doing L1 filtering?

Thank you for your time.

peter.waynechina

unread,
Mar 21, 2021, 10:48:57 PM3/21/21
to cache-trace
Hi Gary,
     The following clusters have large inter-arrival gap, cluster4, cluster11, cluster19, cluster34, cluster48, cluster50, cluster54. I have attached the inter-arrival gap distribution.

In terms of scripts to generate a L2 trace, sorry, I just realize that my scripts are for a different format and have some dependencies. But I have attached a code snippet of L1 (FIFO) for you to get start. You can develop a more complete solution using PyMimircache or libCacheSim.



fifo_list = deque()
fifo_set = set()
for req in trace:
    if req in fifo_dict:
        continue 
    fifo_set.add(req)
    fifo_list.append(req)
    if len(fifo_list) > L1_size:
        evict = fifo_list.popleft()
        fifo_set.remove(evict)


cluster4.pdf
cluster50.pdf
cluster48.pdf
cluster54.pdf
cluster34.pdf
cluster19.pdf
cluster11.pdf
Reply all
Reply to author
Forward
0 new messages