GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Chowder/experiments/scripts/run_planner_sweep.sh at main · Texera/Chowder

Expand file tree

/

run_planner_sweep.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
61 lines (53 loc) · 2.47 KB
/

run_planner_sweep.sh

Copy path

File metadata and controls

executable file
·
61 lines (53 loc) · 2.47 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
# Offline planner evaluation runner on the 6,191 real-world workflows in 6K-Set (Sections 7.4 to 7.6).
#
# Usage:
# ./experiments/scripts/run_planner_sweep.sh <name> <shard_k> <num_shards> <matched_fraction> <storage_profile> <cost_model> <configs> [extra_args...]
#
# Arguments:
# name Output prefix (e.g., sweep-time, sweep-io, ablation-io-one-layer-no-jumps)
# shard_k 0-based shard index (0 .. num_shards - 1)
# num_shards Total number of parallel shards
# matched_fraction Fraction of ports with matched cached results (e.g., 0.3 or 0.6)
# storage_profile B (uniform storage: w_write = w_read = w_cache = 1) or
# C (two-tier storage: w_write = w_read = 1, w_cache = 5)
# cost_model time (Execution-Time cost) or io (Storage-I/O cost)
# configs Comma-separated planner configurations (e.g., eager,two-layer,one-layer)
#
# Example (single shard over all 6,191 workflows under Execution-Time cost, two-tier profile, 30% cached):
# ./experiments/scripts/run_planner_sweep.sh sweep-time 0 1 0.3 C time \
# eager,eager-materialized,two-layer,one-layer \
# --two-layer-limit-fallback greedy --one-layer-limit-fallback greedy \
# --cutoffs-ms 10,25,50,100
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
NAME=$1; K=$2; N=$3; FRACTION=$4; READING=$5; COST=$6; CONFIGS=$7; shift 7
HEAP=${HEAP:-2g}
[[ $NAME == ablation-io-* ]] && HEAP=${ABLATION_HEAP:-3g}
TIMEOUT_MS=${TIMEOUT_MS:-10000}
WT=${WT:-$REPO_ROOT}
PLANS_DIR=${PLANS_DIR:-$REPO_ROOT/experiments/workflows/6k_set/plans_json}
OUT=${OUT:-$REPO_ROOT/experiments/results/raw-sweeps}
mkdir -p "$OUT"
CP="$WT/amber/target/scala-2.13/test-classes:$WT/amber/target/scala-2.13/classes:$(cat "$WT/test-classpath.txt")"
case $COST in
io) COSTARGS=(--operator-work region-max) ;;
time) COSTARGS=(--operator-work region-max --compute-cost-per-input-unit 1 --source-cost-per-output-unit 1) ;;
*) echo "cost_model must be 'io' or 'time'" >&2; exit 2 ;;
esac
cd "$WT"
export LC_ALL=C.UTF-8
exec java -Xmx$HEAP -cp "$CP" \
org.apache.texera.amber.engine.architecture.scheduling.experiment.ReusePlanningExperiment \
--plans "$PLANS_DIR" \
--shard "$K/$N" \
--out "$OUT/$NAME-f$FRACTION-$READING-shard-$K-of-$N.csv" \
--matched-fraction "$FRACTION" \
--seed 1 \
--reading "$READING" \
"${COSTARGS[@]}" \
--timeout-ms "$TIMEOUT_MS" \
--max-log10-space 6 \
--resume \
--configs "$CONFIGS" \
"$@"
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.