Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
1a1a11a committed May 29, 2024
1 parent 963d0dc commit 50bfac5
Show file tree
Hide file tree
Showing 138 changed files with 81 additions and 36 deletions.
Binary file added fig/datav2/miss_ratio_algo_box_0.pdf
Binary file not shown.
Binary file added fig/datav2/miss_ratio_algo_box_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/datav2/miss_ratio_algo_box_4.pdf
Binary file not shown.
Binary file added fig/datav2/miss_ratio_algo_box_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/datav2/miss_ratio_corr_box_0.pdf
Binary file not shown.
Binary file added fig/datav2/miss_ratio_corr_box_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/datav2/miss_ratio_corr_box_4.pdf
Binary file not shown.
Binary file added fig/datav2/miss_ratio_corr_box_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/datav2/miss_ratio_corr_box_5.pdf
Binary file not shown.
Binary file added fig/datav2/miss_ratio_corr_box_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/datav2/miss_ratio_corr_box_6.pdf
Binary file not shown.
Binary file added fig/datav2/miss_ratio_corr_box_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/datav2/miss_ratio_corr_box_7.pdf
Binary file not shown.
Binary file added fig/datav2/miss_ratio_corr_box_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/datav2/w106_vscsi1.vscsitrace.pdf
Binary file not shown.
Binary file added fig/metadatav2/miss_ratio_algo_box_0.pdf
Binary file not shown.
Binary file added fig/metadatav2/miss_ratio_algo_box_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/metadatav2/miss_ratio_algo_box_4.pdf
Binary file not shown.
Binary file added fig/metadatav2/miss_ratio_algo_box_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/metadatav2/miss_ratio_corr_box_0.pdf
Binary file not shown.
Binary file added fig/metadatav2/miss_ratio_corr_box_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/metadatav2/miss_ratio_corr_box_4.pdf
Binary file not shown.
Binary file added fig/metadatav2/miss_ratio_corr_box_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/metadatav2/miss_ratio_corr_box_5.pdf
Binary file not shown.
Binary file added fig/metadatav2/miss_ratio_corr_box_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/metadatav2/miss_ratio_corr_box_6.pdf
Binary file not shown.
Binary file added fig/metadatav2/miss_ratio_corr_box_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/metadatav2/miss_ratio_corr_box_7.pdf
Binary file not shown.
Binary file added fig/metadatav2/miss_ratio_corr_box_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w15_vscsi1.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w16_vscsi2.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w18_vscsi2.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w20_vscsi1.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w21_vscsi1.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w22_vscsi2.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w26_vscsi1.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w31_vscsi1.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w32_vscsi1.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w33_vscsi1.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w36_vscsi1.vscsitrace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/mrc/!w39_vscsi1.vscsitrace.png
Binary file added fig/mrc/!w50_vscsi1.vscsitrace.png
Binary file added fig/mrc/!w54_vscsi2.vscsitrace.png
Binary file added fig/mrc/!w56_vscsi1.vscsitrace.png
Binary file added fig/mrc/!w62_vscsi1.vscsitrace.png
Binary file added fig/mrc/!w64_vscsi2.vscsitrace.png
Binary file added fig/mrc/!w65_vscsi1.vscsitrace.png
Binary file added fig/mrc/!w86_vscsi1.vscsitrace.png
Binary file added fig/mrc/!w92_vscsi1.vscsitrace.png
Binary file added fig/mrc/miss_ratio_algo_box_0.png
Binary file added fig/mrc/miss_ratio_algo_box_0a.png
Binary file added fig/mrc/miss_ratio_algo_box_4.png
Binary file added fig/mrc/miss_ratio_algo_box_4a.png
Binary file added fig/mrc/miss_ratio_corr_box_0.png
Binary file added fig/mrc/miss_ratio_corr_box_4.png
Binary file added fig/mrc/w02_vscsi1.vscsitrace.png
Binary file added fig/mrc/w100_vscsi1.vscsitrace.png
Binary file added fig/mrc/w101_vscsi1.vscsitrace.png
Binary file added fig/mrc/w102_vscsi1.vscsitrace.png
Binary file added fig/mrc/w103_vscsi1.vscsitrace.png
Binary file added fig/mrc/w104_vscsi1.vscsitrace.png
Binary file added fig/mrc/w105_vscsi1.vscsitrace.png
Binary file added fig/mrc/w106_vscsi1.vscsitrace.png
Binary file added fig/mrc/w10_vscsi1.vscsitrace.png
Binary file added fig/mrc/w11_vscsi1.vscsitrace.png
Binary file added fig/mrc/w12_vscsi1.vscsitrace.png
Binary file added fig/mrc/w13_vscsi1.vscsitrace.png
Binary file added fig/mrc/w14_vscsi1.vscsitrace.png
Binary file added fig/mrc/w17_vscsi1.vscsitrace.png
Binary file added fig/mrc/w19_vscsi1.vscsitrace.png
Binary file added fig/mrc/w23_vscsi1.vscsitrace.png
Binary file added fig/mrc/w24_vscsi1.vscsitrace.png
Binary file added fig/mrc/w25_vscsi1.vscsitrace.png
Binary file added fig/mrc/w27_vscsi2.vscsitrace.png
Binary file added fig/mrc/w28_vscsi2.vscsitrace.png
Binary file added fig/mrc/w29_vscsi2.vscsitrace.png
Binary file added fig/mrc/w30_vscsi1.vscsitrace.png
Binary file added fig/mrc/w34_vscsi1.vscsitrace.png
Binary file added fig/mrc/w35_vscsi2.vscsitrace.png
Binary file added fig/mrc/w37_vscsi1.vscsitrace.png
Binary file added fig/mrc/w38_vscsi1.vscsitrace.png
Binary file added fig/mrc/w40_vscsi1.vscsitrace.png
Binary file added fig/mrc/w41_vscsi1.vscsitrace.png
Binary file added fig/mrc/w42_vscsi1.vscsitrace.png
Binary file added fig/mrc/w43_vscsi1.vscsitrace.png
Binary file added fig/mrc/w44_vscsi2.vscsitrace.png
Binary file added fig/mrc/w45_vscsi1.vscsitrace.png
Binary file added fig/mrc/w46_vscsi2.vscsitrace.png
Binary file added fig/mrc/w47_vscsi1.vscsitrace.png
Binary file added fig/mrc/w48_vscsi1.vscsitrace.png
Binary file added fig/mrc/w49_vscsi2.vscsitrace.png
Binary file added fig/mrc/w51_vscsi2.vscsitrace.png
Binary file added fig/mrc/w52_vscsi1.vscsitrace.png
Binary file added fig/mrc/w53_vscsi2.vscsitrace.png
Binary file added fig/mrc/w55_vscsi2.vscsitrace.png
Binary file added fig/mrc/w57_vscsi1.vscsitrace.png
Binary file added fig/mrc/w58_vscsi1.vscsitrace.png
Binary file added fig/mrc/w59_vscsi1.vscsitrace.png
Binary file added fig/mrc/w60_vscsi1.vscsitrace.png
Binary file added fig/mrc/w61_vscsi1.vscsitrace.png
Binary file added fig/mrc/w63_vscsi1.vscsitrace.png
Binary file added fig/mrc/w66_vscsi1.vscsitrace.png
Binary file added fig/mrc/w67_vscsi1.vscsitrace.png
Binary file added fig/mrc/w68_vscsi1.vscsitrace.png
Binary file added fig/mrc/w69_vscsi1.vscsitrace.png
Binary file added fig/mrc/w70_vscsi1.vscsitrace.png
Binary file added fig/mrc/w71_vscsi1.vscsitrace.png
Binary file added fig/mrc/w72_vscsi1.vscsitrace.png
Binary file added fig/mrc/w73_vscsi1.vscsitrace.png
Binary file added fig/mrc/w74_vscsi1.vscsitrace.png
Binary file added fig/mrc/w75_vscsi1.vscsitrace.png
Binary file added fig/mrc/w76_vscsi1.vscsitrace.png
Binary file added fig/mrc/w77_vscsi1.vscsitrace.png
Binary file added fig/mrc/w78_vscsi1.vscsitrace.png
Binary file added fig/mrc/w79_vscsi1.vscsitrace.png
Binary file added fig/mrc/w80_vscsi1.vscsitrace.png
Binary file added fig/mrc/w81_vscsi1.vscsitrace.png
Binary file added fig/mrc/w82_vscsi1.vscsitrace.png
Binary file added fig/mrc/w83_vscsi2.vscsitrace.png
Binary file added fig/mrc/w84_vscsi1.vscsitrace.png
Binary file added fig/mrc/w85_vscsi1.vscsitrace.png
Binary file added fig/mrc/w87_vscsi2.vscsitrace.png
Binary file added fig/mrc/w88_vscsi1.vscsitrace.png
Binary file added fig/mrc/w89_vscsi2.vscsitrace.png
Binary file added fig/mrc/w90_vscsi1.vscsitrace.png
Binary file added fig/mrc/w91_vscsi1.vscsitrace.png
Binary file added fig/mrc/w93_vscsi2.vscsitrace.png
Binary file added fig/mrc/w94_vscsi1.vscsitrace.png
Binary file added fig/mrc/w95_vscsi1.vscsitrace.png
Binary file added fig/mrc/w96_vscsi1.vscsitrace.png
Binary file added fig/mrc/w97_vscsi1.vscsitrace.png
Binary file added fig/mrc/w98_vscsi1.vscsitrace.png
Binary file added fig/mrc/w99_vscsi1.vscsitrace.png
Binary file added result_datav2.tar.zst
Binary file not shown.
Binary file added result_metadatav2.tar.zst
Binary file not shown.
66 changes: 39 additions & 27 deletions scripts/plot/plot_mr_red_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ def update_algo_name(algo_name):
name_dict = {
"WTinyLFU-w0.01-SLRU": "TinyLFU",
"S3FIFO-0.1000-2": "S3FIFO",
"S3FIFOv2-0.1000-2": "S3FIFO",
"Cloud2QPlus-0.1000-2-0.50": "Cloud2Q+0.5",
"Cloud2QPlus-0.1000-2-0.00": "Cloud2Q+",
"Cloud2QPlus2-0.1000-2-0.00": "Cloud2Q+2",
"Cloud2QPlus2-0.1000-2-0.50": "Cloud2Q+2-0.5",
"Cloud2QPlus4-0.1000-2-0.00": "Cloud2Q+4",
"Cloud2QPlus4-0.1000-2-0.50": "Cloud2Q+4-0.5",
"Cloud2QPlus2-0.1000-2-0.50": "Cloud2Q+2",
"Cloud2QPlus4-0.1000-2-0.00": "Cloud2Q+",
"Cloud2QPlus4-0.1000-2-0.50": "Cloud2Q+",
}

return name_dict.get(algo_name, algo_name)
Expand Down Expand Up @@ -77,12 +78,13 @@ def plot_box_algo(datapath, size_idx=0, metric="miss_ratio"):
"""

algo_list = [
"S3FIFO-0.1000-2",
"Cloud2QPlus-0.1000-2-0.50",
"Cloud2QPlus-0.1000-2-0.00",
"Cloud2QPlus2-0.1000-2-0.00",
"Cloud2QPlus2-0.1000-2-0.50",
"Cloud2QPlus4-0.1000-2-0.00",
# "S3FIFO-0.1000-2",
"S3FIFOv2-0.1000-2",
# "Cloud2QPlus-0.1000-2-0.50",
# "Cloud2QPlus-0.1000-2-0.00",
# "Cloud2QPlus2-0.1000-2-0.00",
# "Cloud2QPlus2-0.1000-2-0.50",
# "Cloud2QPlus4-0.1000-2-0.00",
"Cloud2QPlus4-0.1000-2-0.50",
"LIRS",
"TwoQ",
Expand All @@ -97,7 +99,7 @@ def plot_box_algo(datapath, size_idx=0, metric="miss_ratio"):
)
print(name_list)

plt.figure(figsize=(24, 8))
plt.figure(figsize=(24, 9.9))

print([len(mr_reduction_dict_list[size_idx][algo]) for algo in algo_list])

Expand All @@ -111,8 +113,8 @@ def plot_box_algo(datapath, size_idx=0, metric="miss_ratio"):
medianprops=dict(color="black", linewidth=1.6),
)

plt.ylabel("Miss ratio reduction\n from FIFO")
plt.xticks(range(1, len(algo_list) + 1), name_list, rotation=90)
plt.ylabel("Miss ratio reduction from FIFO")
plt.xticks(range(1, len(algo_list) + 1), name_list, rotation=0)
plt.grid(linestyle="--")
plt.savefig("{}_algo_box_{}.png".format(metric, size_idx), bbox_inches="tight")
plt.savefig("{}_algo_box_{}.pdf".format(metric, size_idx), bbox_inches="tight")
Expand All @@ -128,21 +130,22 @@ def plot_box_corr(datapath, size_idx=0, metric="miss_ratio"):
"""

algo_list = [
"S3FIFO-0.1000-2",
"Cloud2QPlus2-0.1000-2-0.00",
"Cloud2QPlus2-0.1000-2-0.01",
"Cloud2QPlus2-0.1000-2-0.05",
"Cloud2QPlus2-0.1000-2-0.10",
"Cloud2QPlus2-0.1000-2-0.20",
"Cloud2QPlus2-0.1000-2-0.30",
"Cloud2QPlus2-0.1000-2-0.40",
"Cloud2QPlus2-0.1000-2-0.50",
"Cloud2QPlus2-0.1000-2-0.60",
"Cloud2QPlus2-0.1000-2-0.70",
"Cloud2QPlus2-0.1000-2-0.80",
"Cloud2QPlus2-0.1000-2-0.90",
# "Cloud2QPlus2-0.1000-2-0.99",
"Cloud2QPlus2-0.1000-2-1.00",
# "S3FIFO-0.1000-2",
# "S3FIFOv2-0.1000-2",
"Cloud2QPlus4-0.1000-2-0.00",
"Cloud2QPlus4-0.1000-2-0.01",
# "Cloud2QPlus4-0.1000-2-0.05",
"Cloud2QPlus4-0.1000-2-0.10",
"Cloud2QPlus4-0.1000-2-0.20",
# "Cloud2QPlus4-0.1000-2-0.30",
"Cloud2QPlus4-0.1000-2-0.40",
# "Cloud2QPlus4-0.1000-2-0.50",
"Cloud2QPlus4-0.1000-2-0.60",
# "Cloud2QPlus4-0.1000-2-0.70",
"Cloud2QPlus4-0.1000-2-0.80",
"Cloud2QPlus4-0.1000-2-0.90",
# "Cloud2QPlus4-0.1000-2-0.99",
"Cloud2QPlus4-0.1000-2-1.00",
]

name_list = [algo.split("-")[-1] for algo in algo_list]
Expand Down Expand Up @@ -196,3 +199,12 @@ def plot_box_corr(datapath, size_idx=0, metric="miss_ratio"):
plot_box_corr(
"/disk/result/", size_idx=4, metric="miss_ratio"
)
plot_box_corr(
"/disk/result/", size_idx=5, metric="miss_ratio"
)
plot_box_corr(
"/disk/result/", size_idx=6, metric="miss_ratio"
)
plot_box_corr(
"/disk/result/", size_idx=7, metric="miss_ratio"
)
47 changes: 40 additions & 7 deletions scripts/plot/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ done
./bin/cachesim $f vscsi twoQ 0 --ignore-obj-size 1 &

for f in ../anonymized106/w*; do
echo ./cachesim $f vscsi S3FIFOv2 0 --ignore-obj-size 1 -e "move-to-main-threshold=2" >> task
# echo ./cachesim $f vscsi cloud2QPlus 0 --ignore-obj-size 1 -e "move-to-main-threshold=2" >> task
# echo ./cachesim $f vscsi cloud2QPlus 0 --ignore-obj-size 1 >> task

for ignore_perc in 0.01 0.05 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1; do
for ignore_perc in 0 0.01 0.05 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1; do
echo ./cachesim $f vscsi cloud2QPlus 0 --ignore-obj-size 1 -e "move-to-main-threshold=2,corr-window-ratio=${ignore_perc}" >> task;
done
done
Expand All @@ -25,17 +26,49 @@ for ignore_perc in 0 0.01 0.05 0.1 0.2 0.4 0.6 0.8 0.9 1; do
./cachesim $f oracleGeneral cloud2QPlus 0 --ignore-obj-size 1 -e "move-to-main-threshold=2,corr-window-ratio=${ignore_perc}";
done

./cachesim $f vscsi S3FIFO,cloud2QPlus 0 --ignore-obj-size 1
./bin/cachesim anonymized106/w100_vscsi1.vscsitrace vscsi cloud2QPlus 0 --ignore-obj-size 1 -e "move-to-main-threshold=2,corr-window-ratio=0"
./bin/cachesim anonymized106/w100_vscsi1.vscsitrace vscsi S3FIFO 0 --ignore-obj-size 1
f=anonymized106/w100_vscsi1.vscsitrace
./bin/cachesim $f vscsi cloud2QPlus 0 --ignore-obj-size 1 -e "move-to-main-threshold=2,corr-window-ratio=1"
./bin/cachesim $f vscsi S3FIFOv2,cloud2QPlus 0 --ignore-obj-size 1

f=/users/juncheng/data/wiki_2019t.oracleGeneral.sample10.zst
./bin/cachesim $f oracleGeneral cloud2QPlus 0 --ignore-obj-size 1 -e "move-to-main-threshold=2,corr-window-ratio=1" &
./bin/cachesim $f oracleGeneral S3FIFO,2Q,S3FIFOv2,cloud2QPlus 0 --ignore-obj-size 1


rm -r bin4/result2; cp -r bin4/result bin4/result2
sed -i "s/Cloud2QPlus/Cloud2QPlus4/g" bin4/result2/*
rm -rf /disk/result; cp -r result_data /disk/result; for f in bin4/result2/*; do fn=$(basename $f); cat $f >> /disk/result/${fn}; done

rm -r bin_metadata/result2; cp -r bin_metadata/result bin_metadata/result2
sed -i "s/Cloud2QPlus/Cloud2QPlus4/g" bin_metadata/result2/*
rm -rf /disk/result; cp -r result_metadata /disk/result; for f in bin_metadata/result2/*; do fn=$(basename $f); cat $f >> /disk/result/${fn}; done




for i in `seq 80 106`; do
./bin/cachesim anonymized106/w${i}_vscsi1.vscsitrace vscsi s3fifo,cloud2qplus 0.2,0.4,0.6,0.8,0.9999 --ignore-obj-size 1
done

./bin/cachesim anonymized106/w106_vscsi1.vscsitrace vscsi s3fifo,cloud2qplus 0.2,0.4,0.6,0.8 --ignore-obj-size 1

for f in /disk/data/*; do
./bin/cachesim $f oracleGeneral s3fifo,cloud2qplus 0.01,0.1,0.2,0.4,0.6,0.8,0.9999 --ignore-obj-size 1 &
done


rm -rf /disk/result; cp -r result /disk/; for f in _build/bin_insert_main_first/result/*; do fn=$(basename $f); cat $f >> /disk/result/${fn}; done
for f in _build/bin2/result/*; do fn=$(basename $f); cat $f >> /disk/result/${fn}; done
sed -i "s/Cloud2QPlus2/Cloud2QPlus4/g" result/*
for f in _build/anonymized106/w4*; do
python3 scripts/plot_mrc_size.py --tracepath $f --algos fifo,lru,cloud2qplus,s3fifo --trace-format vscsi --sizes 0.001,0.002,0.005,0.01,0.02,0.05,0.1,0.15,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.99 --ignore-obj-size
done
python3 scripts/plot_mrc_size.py --tracepath _build/anonymized106/w106_vscsi1.vscsitrace --algos fifo,lru,cloud2qplus,s3fifo --trace-format vscsi --sizes 0.001,0.002,0.005,0.01,0.02,0.05,0.1,0.15,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.99 --ignore-obj-size


for f in /disk/data/sample/other/*; do
python3 scripts/plot_mrc_size.py --tracepath $f --algos fifo,lru,cloud2qplus,s3fifo --trace-format oracleGeneral --sizes 0.001,0.002,0.005,0.01,0.02,0.05,0.1,0.15,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.99 --ignore-obj-size
done

for f in /disk/data/msr/*; do
python3 scripts/plot_mrc_size.py --tracepath $f --algos fifo,lru,cloud2qplus,s3fifo --trace-format oracleGeneral --sizes 0.001,0.002,0.005,0.01,0.02,0.05,0.1,0.15,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.99 --ignore-obj-size
done


4 changes: 2 additions & 2 deletions scripts/plot_mrc_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ def plot_mrc_size(mrc_dict: Dict[str, Tuple[int, float]],
frame.set_facecolor('0.9')
frame.set_edgecolor('0.9')
plt.grid(linestyle='--')
plt.savefig("{}.pdf".format(name), bbox_inches="tight")
plt.savefig("{}.png".format(name), bbox_inches="tight")
plt.show()
plt.clf()
print("plot is saved to {}.pdf".format(name))
print("plot is saved to {}.png".format(name))


def run():
Expand Down

0 comments on commit 50bfac5

Please sign in to comment.