Skip to content

Commit

Permalink
feat(exp/radice): Include scripts for running experiments
Browse files Browse the repository at this point in the history
This change adds scripts to the Radice distribution so users can
trivially repeat the experiments of this project.
  • Loading branch information
fabianishere committed Mar 11, 2022
1 parent 8f462df commit 63db02a
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opendc-experiments/opendc-experiments-radice/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ distributions {
from(cmpRuntimeClasspath) // Also includes main classpath
}

into("scripts") {
from("scripts")
}

into("traces") {
from("traces")
}
Expand Down
20 changes: 20 additions & 0 deletions opendc-experiments/opendc-experiments-radice/scripts/run-perf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
bin/radice-perf -r 32 --trace baseline --topology base --engine opendc \
-P workload=baseline -P topology=baseline
bin/radice-perf -r 4 --trace baseline --topology base --engine cloudsim-plus \
-P workload=baseline -P topology=baseline

bin/radice-perf -r 32 --trace baseline-50% --topology base --topology-scale 0.5 --engine opendc \
-P workload=baseline-50% -P topology=baseline-50%
bin/radice-perf -r 8 --trace baseline-50% --topology base --topology-scale 0.5 --engine cloudsim-plus \
-P workload=baseline-50% -P topology=baseline-50%

bin/radice-perf -r 32 --trace baseline-25% --topology base --topology-scale 0.25 --engine opendc \
-P workload=baseline-25% -P topology=baseline-25%
bin/radice-perf -r 16 --trace baseline-25% --topology base --topology-scale 0.25 --engine cloudsim-plus \
-P workload=baseline-25% -P topology=baseline-25%

bin/radice-perf -r 32 --trace baseline-10% --topology base --topology-scale 0.1 --engine opendc \
-P workload=baseline-10% -P topology=baseline-10%
bin/radice-perf -r 32 --trace baseline-10% --topology base --topology-scale 0.1 --engine cloudsim-plus \
-P workload=baseline-10% -P topology=baseline-10%
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
REPEATS=${REPEATS:-4096}
PARALLELISM=${PARALLELISM:-80}

bin/radice run -r "$REPEATS" -p "$PARALLELISM" portfolios/baseline.yml -P portfolio=baseline
bin/radice run -r "$REPEATS" -p "$PARALLELISM" portfolios/phenomena.yml -P portfolio=phenomena
bin/radice run -r "$REPEATS" -p "$PARALLELISM" portfolios/topology-opt.yml -P portfolio=topology-opt
bin/radice run -r "$REPEATS" -p "$PARALLELISM" portfolios/workload.yml -P portfolio=workload
bin/radice run -r "$REPEATS" -p "$PARALLELISM" portfolios/workload-opt.yml -P portfolio=workload-opt
bin/radice run -r "$REPEATS" -p "$PARALLELISM" portfolios/scheduler.yml -P portfolio=scheduler
bin/radice run -r "$REPEATS" -p "$PARALLELISM" portfolios/scheduler-opt.yml -P portfolio=scheduler-opt
10 changes: 10 additions & 0 deletions opendc-experiments/opendc-experiments-radice/scripts/run-qt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
REPEATS=${REPEATS:-1000000}

bin/radice qt --arrival-rate 4 --service-rate 1 --servers 5 -n "$REPEATS"
bin/radice qt --arrival-rate 4 --service-rate 1 --servers 6 -n "$REPEATS"
bin/radice qt --arrival-rate 4 --service-rate 1 --servers 10 -n "$REPEATS"
bin/radice qt --arrival-rate 28 --service-rate 3 --servers 10 -n "$REPEATS"
bin/radice qt --arrival-rate 28 --service-rate 3 --servers 12 -n "$REPEATS"
bin/radice qt --arrival-rate 16 --service-rate 0.75 --servers 22 -n "$REPEATS"
bin/radice qt --arrival-rate 16 --service-rate 0.75 --servers 24 -n "$REPEATS"

0 comments on commit 63db02a

Please sign in to comment.