From 15d8db0fc18153d97ecb6240d2dda708782696aa Mon Sep 17 00:00:00 2001 From: haochengxia Date: Fri, 13 Dec 2024 09:53:03 -0600 Subject: [PATCH] fix inconsistency with function signature --- scripts/plot_mrc_size.py | 8 ++------ scripts/plot_mrc_time.py | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/plot_mrc_size.py b/scripts/plot_mrc_size.py index 3ce10e4b..065d17a6 100644 --- a/scripts/plot_mrc_size.py +++ b/scripts/plot_mrc_size.py @@ -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) diff --git a/scripts/plot_mrc_time.py b/scripts/plot_mrc_time.py index f2b888d5..442c31d5 100644 --- a/scripts/plot_mrc_time.py +++ b/scripts/plot_mrc_time.py @@ -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)