From 63db02a7c3ea57a1a39c1b70360c66a6a20678fd Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 10 Mar 2022 10:07:10 +0100 Subject: [PATCH] feat(exp/radice): Include scripts for running experiments This change adds scripts to the Radice distribution so users can trivially repeat the experiments of this project. --- .../build.gradle.kts | 4 ++++ .../scripts/run-perf.sh | 20 +++++++++++++++++++ .../scripts/run-portfolios.sh | 11 ++++++++++ .../scripts/run-qt.sh | 10 ++++++++++ 4 files changed, 45 insertions(+) create mode 100755 opendc-experiments/opendc-experiments-radice/scripts/run-perf.sh create mode 100755 opendc-experiments/opendc-experiments-radice/scripts/run-portfolios.sh create mode 100755 opendc-experiments/opendc-experiments-radice/scripts/run-qt.sh diff --git a/opendc-experiments/opendc-experiments-radice/build.gradle.kts b/opendc-experiments/opendc-experiments-radice/build.gradle.kts index 2ada09762..aa072afb2 100644 --- a/opendc-experiments/opendc-experiments-radice/build.gradle.kts +++ b/opendc-experiments/opendc-experiments-radice/build.gradle.kts @@ -134,6 +134,10 @@ distributions { from(cmpRuntimeClasspath) // Also includes main classpath } + into("scripts") { + from("scripts") + } + into("traces") { from("traces") } diff --git a/opendc-experiments/opendc-experiments-radice/scripts/run-perf.sh b/opendc-experiments/opendc-experiments-radice/scripts/run-perf.sh new file mode 100755 index 000000000..7cc265326 --- /dev/null +++ b/opendc-experiments/opendc-experiments-radice/scripts/run-perf.sh @@ -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% diff --git a/opendc-experiments/opendc-experiments-radice/scripts/run-portfolios.sh b/opendc-experiments/opendc-experiments-radice/scripts/run-portfolios.sh new file mode 100755 index 000000000..c5d1cb1c8 --- /dev/null +++ b/opendc-experiments/opendc-experiments-radice/scripts/run-portfolios.sh @@ -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 diff --git a/opendc-experiments/opendc-experiments-radice/scripts/run-qt.sh b/opendc-experiments/opendc-experiments-radice/scripts/run-qt.sh new file mode 100755 index 000000000..f3fc56cf4 --- /dev/null +++ b/opendc-experiments/opendc-experiments-radice/scripts/run-qt.sh @@ -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"