Skip to content

Commit

Permalink
Add JFI/util graphs to background topo eval
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed Feb 26, 2024
1 parent d54dc1a commit 58188e2
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions unfair/scripts/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,12 +1527,12 @@ def eval_background(args, our_label, matched):
)

(
_, # jfis_disabled,
_, # jfis_enabled,
jfis_disabled,
jfis_enabled,
_, # jfi_deltas,
_, # jfi_deltas_percent,
_, # overall_utils_disabled,
_, # overall_utils_enabled,
overall_utils_disabled,
overall_utils_enabled,
_, # overall_util_deltas_percent,
foreground_flows_utils_disabled,
foreground_flows_utils_enabled,
Expand Down Expand Up @@ -1596,6 +1596,29 @@ def eval_background(args, our_label, matched):
# title='CDF of background flow link utilization,\nwith and without RateMon',
colors=[COLORS_MAP["orange"], COLORS_MAP["red"], COLORS_MAP["blue"]],
)
plot_cdf(
args,
lines=[jfis_disabled, jfis_enabled],
labels=["Original", our_label],
x_label="JFI",
x_max=1.0,
filename="jfi_cdf.pdf",
linestyles=["dashed", "dashdot"],
colors=COLORS[:2],
# title="CDF of JFI,\nwith and without RateMon",
)
plot_cdf(
args,
lines=[overall_utils_disabled, overall_utils_enabled],
labels=["Original", our_label],
x_label="Overall link utilization (%)",
x_max=100,
filename="util_cdf.pdf",
linestyles=["dashed", "dashdot"],
colors=COLORS[:2],
legendloc="upper left",
# title="CDF of overall link utilization,\nwith and without RateMon",
)
return 0


Expand Down

0 comments on commit 58188e2

Please sign in to comment.