Skip to content

Commit

Permalink
fix inconsistency with function signature (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
haochengxia authored Dec 14, 2024
1 parent 2c22bcf commit 48e1cb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions scripts/plot_mrc_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,13 @@ def run():

import glob

cachesim_path = "/proj/redundancy-PG0/jason/libCacheSim/_build/cachesim"
algos = "lru,slru,arc,lirs,lhd,tinylfu,s3fifo,sieve"
cache_sizes = "0.01,0.02,0.05,0.075,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.5,0.6,0.7,0.8"

for tracepath in glob.glob("/disk/data/*.zst"):
dataname = extract_dataname(tracepath)

mrc_dict = run_cachesim_size(
cachesim_path, tracepath, algos, cache_sizes, ignore_obj_size=True
)

mrc_dict = run_cachesim_size(tracepath, algos, cache_sizes,
ignore_obj_size=True)
# save the results in pickle
with open("{}.mrc".format(dataname), "wb") as f:
pickle.dump(mrc_dict, f)
Expand Down
2 changes: 1 addition & 1 deletion scripts/plot_mrc_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def run():
print(cache_sizes)

for tracepath in glob.glob("/disk/data/*.zst"):
dataname = tracepath.split("/")[-1].split(".")[0]
dataname = extract_dataname(tracepath)
mrc_dict = run_cachesim_time(tracepath, algos, cache_sizes)
plot_mrc_time(mrc_dict, dataname)

Expand Down

0 comments on commit 48e1cb4

Please sign in to comment.