From 6adad879ebc6e5530591d7a1272b2471fde26f3d Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Tue, 22 Feb 2011 17:11:05 -0500 Subject: keep a copy of the files used for ludwig data processing --- backup/event-driven-sched-outliers.txt | 36 ++++++++++++ backup/make-model.sh | 38 +++++++++++++ backup/make-plots.sh | 95 +++++++++++++++++++++++++++++++ backup/pfair-aligned-sched-outliers.txt | 26 +++++++++ backup/pfair-staggered-sched-outliers.txt | 6 ++ 5 files changed, 201 insertions(+) create mode 100644 backup/event-driven-sched-outliers.txt create mode 100755 backup/make-model.sh create mode 100755 backup/make-plots.sh create mode 100644 backup/pfair-aligned-sched-outliers.txt create mode 100644 backup/pfair-staggered-sched-outliers.txt diff --git a/backup/event-driven-sched-outliers.txt b/backup/event-driven-sched-outliers.txt new file mode 100644 index 0000000..bd5af99 --- /dev/null +++ b/backup/event-driven-sched-outliers.txt @@ -0,0 +1,36 @@ +P-FP, 1, 1 +P-FP, 2, 2 +P-FP, 3, 1 +P-FP, 3, 1 +P-FP, 5, 2 +P-FP, 6, 3 +P-FP, 7, 1 +P-FP, 8, 2 +P-FP, 9, 1 +P-FP, 12, 2 +P-FP, 13, 1 +P-FP, 14, 2 +P-FP, 16, 1 +P-FP, 17, 4 +P-FP, 18, 1 +P-FP, 20, 3 +P-FP-RM, 1, 1 +P-EDF, 1, 1 +P-EDF, 5, 1 +P-EDF, 6, 1 +P-EDF, 7, 1 +P-EDF, 15, 1 +P-EDF-RM, 8, 1 +P-EDF-RM, 17, 2 +C-EDF-L3, 8, 1 +C-EDF-L3, 3, 1 +C-EDF-L3-RM, 8, 2 +C-EDF-L3-RM, 9, 2 +C-EDF-L3-RM, 10, 1 +C-EDF-L3-RM, 14, 1 +C-EDF-L3-RM, 18, 1 +C-EDF-L2, 6, 1 +C-EDF-L2, 7, 1 +C-EDF-L2, 10, 3 +C-EDF-L2, 18, 1 +C-EDF-L2, 20, 1 diff --git a/backup/make-model.sh b/backup/make-model.sh new file mode 100755 index 0000000..86dd4fe --- /dev/null +++ b/backup/make-model.sh @@ -0,0 +1,38 @@ + +SAMPLES_DIR=../../../Samples/cut/ +HOST=ludwig + +function run_analysis() { + ALGS=$1 + FILE="host=${HOST}.csv" + OUT="${ALGS}/${FILE}" + + SRC="${SAMPLES_DIR}/${ALGS}/" + + echo "Running analysis $SRC -> $OUT" + + # no filtering for SCHED2, RELEASE, and TICK + analyze -i 0 ${SRC}/*overhead=SCHED2.sbn > $OUT + analyze -i 0 ${SRC}/*overhead=RELEASE.sbn >> $OUT + analyze -i 0 ${SRC}/*overhead=TICK.sbn >> $OUT + + # manual filtering for SCHED + analyze -i 0 -o "${SRC}/sched-outliers.csv" \ + ${SRC}/*overhead=SCHED.sbn >> $OUT + + # IQR with extent=12 for CXS, RELEASE-LATENCY, and SEND-RESCHEd + analyze -i 12 ${SRC}/*overhead={CXS,RELEASE-LATENCY,SEND-RESCHED}.sbn >> $OUT + + cd $ALGS + extract-trends.sh "${FILE}" + cd .. +} + + +DIRS=$* + +while [ ! -z "$1" ] +do + run_analysis $1 + shift +done diff --git a/backup/make-plots.sh b/backup/make-plots.sh new file mode 100755 index 0000000..c8c8e2b --- /dev/null +++ b/backup/make-plots.sh @@ -0,0 +1,95 @@ +#!/bin/bash + +SAMPLES_DIR=../../../Samples/cut/ +MODEL_DIR=../../../Model/cut/final + +OPLOT=~/diss/sw/plot/oplot.py + +function plot_trends() { + ALGS=$1 + SRC="${MODEL_DIR}/${ALGS}/" + + echo "Plotting trends $SRC -> $ALGS/" + + $OPLOT -p "$ALGS/" ${SRC}/otrend*.csv + rm $ALGS/*-RM_*RELEASE-LATENCY_*.pdf +} + +function plot_ticks() { + $OPLOT -p event-driven/ -i 0 -x 7 -y 100000 ${SAMPLES_DIR}/event-driven/*overhead=TICK.sbn + + $OPLOT -p pfair-aligned/ -i 0 -x 30 -y 120000 \ + ${SAMPLES_DIR}/pfair-aligned/*scheduler=*{L2,L3}*_*overhead=TICK.sbn + $OPLOT -p pfair-aligned/ -i 0 -x 130 -b 2 -y 400000 \ + ${SAMPLES_DIR}/pfair-aligned/*scheduler={PD2,PD2-RM}_*overhead=TICK.sbn + + $OPLOT -p pfair-staggered/ -i 0 -x 15 -y 600000 ${SAMPLES_DIR}/pfair-staggered/*overhead=TICK.sbn +} + +function plot_release() { + $OPLOT -p event-driven/ \ + -i 0 -y 25000 -x 280 -b 4 \ + ${SAMPLES_DIR}/event-driven/*scheduler=G-*_*overhead=RELEASE.sbn + $OPLOT -p event-driven/ \ + -i 0 -y 45000 -x 60 -b 1 \ + ${SAMPLES_DIR}/event-driven/*scheduler={P,C}-*_*overhead=RELEASE.sbn + + $OPLOT -p pfair-aligned/ -i 0 -x 9 -y 70000 \ + ${SAMPLES_DIR}/pfair-aligned/*overhead=RELEASE.sbn + + $OPLOT -p pfair-staggered/ -i 0 -x 9 -y 70000 \ + ${SAMPLES_DIR}/pfair-staggered/*overhead=RELEASE.sbn +} + + +function plot_sched() { + # manual filtering for SCHED + $OPLOT -o ${SAMPLES_DIR}/event-driven/sched-outliers.csv -p event-driven/ \ + -i 0 -y 140000 -x 280 -b 4 \ + ${SAMPLES_DIR}/event-driven/*scheduler=G-*_*overhead=SCHED.sbn + $OPLOT -o ${SAMPLES_DIR}/event-driven/sched-outliers.csv -p event-driven/ \ + -i 0 -y 160000 -x 45 -b 1 \ + ${SAMPLES_DIR}/event-driven/*scheduler={P,C}-*_*overhead=SCHED.sbn + + + $OPLOT -o ${SAMPLES_DIR}/pfair-aligned/sched-outliers.csv -p pfair-aligned/ \ + -i 0 -x 130 -y 100000 -b 2 \ + ${SAMPLES_DIR}/pfair-aligned/*scheduler={PD2,PD2-RM}_**overhead=SCHED.sbn + $OPLOT -o ${SAMPLES_DIR}/pfair-aligned/sched-outliers.csv -p pfair-aligned/ \ + -i 0 -x 30 -y 30000 \ + ${SAMPLES_DIR}/pfair-aligned/*scheduler=*{L2,L3}*_**overhead=SCHED.sbn + + $OPLOT -o ${SAMPLES_DIR}/pfair-staggered/sched-outliers.csv -p pfair-staggered/ \ + -i 0 -x 15 -y 140000 \ + ${SAMPLES_DIR}/pfair-staggered/*overhead=SCHED.sbn +} + +function plot_samples() { + ALGS=$1 + SRC="${SAMPLES_DIR}/${ALGS}/" + + echo "Plotting samples $SRC -> $ALGS/" + + # no filtering for SCHED2, RELEASE, and TICK + $OPLOT -p "$ALGS/" -i 0 -x 15 -y 120000 ${SRC}/*overhead=SCHED2.sbn + + # IQR with extent=12 for CXS, RELEASE-LATENCY, and SEND-RESCHEd + $OPLOT -p "$ALGS/" -i 12 -x 15 -y 70000 ${SRC}/*overhead=CXS.sbn + $OPLOT -p "$ALGS/" -i 12 -x 15 -y 40000 ${SRC}/*overhead=RELEASE-LATENCY.sbn + $OPLOT -p "$ALGS/" -i 12 -x 15 -y 90000 ${SRC}/*overhead=SEND-RESCHED.sbn + + # remove noise + rm -f $ALGS/*-RM_*RELEASE-LATENCY.pdf +} + +plot_trends event-driven +plot_trends pfair-aligned +plot_trends pfair-staggered + +plot_samples event-driven +plot_samples pfair-aligned +plot_samples pfair-staggered + +plot_ticks +plot_sched +plot_release diff --git a/backup/pfair-aligned-sched-outliers.txt b/backup/pfair-aligned-sched-outliers.txt new file mode 100644 index 0000000..6999a65 --- /dev/null +++ b/backup/pfair-aligned-sched-outliers.txt @@ -0,0 +1,26 @@ +PD2, 2, 1 +PD2, 6, 1 +PD2, 7, 1 +PD2, 8, 1 +PD2-RM, 11, 6 +PD2-RM, 17, 1 +PD2-RM, 4, 1 +PD2-L3, 1, 1 +PD2-L3, 2, 1 +PD2-L3, 3, 1 +PD2-L3, 4, 1 +PD2-L3, 13, 1 +PD2-L3, 14, 2 +PD2-L3, 15, 1 +PD2-L3, 17, 1 +PD2-L2, 1, 1 +PD2-L2, 4, 1 +PD2-L2, 5, 1 +PD2-L2, 7, 1 +PD2-L2, 8, 1 +PD2-L2, 9, 1 +PD2-L2, 10, 1 +PD2-L2, 12, 1 +PD2-L2, 13, 1 +PD2-L2, 16, 2 +PD2-L2, 17, 1 diff --git a/backup/pfair-staggered-sched-outliers.txt b/backup/pfair-staggered-sched-outliers.txt new file mode 100644 index 0000000..c449fb3 --- /dev/null +++ b/backup/pfair-staggered-sched-outliers.txt @@ -0,0 +1,6 @@ +PD2, 1, 4 +PD2-L3, 4, 1 +PD2-L3, 5, 1 +PD2-L3, 6, 1 +PD2-L3, 15, 1 +PD2-L3-RM, 1, 1 -- cgit v1.2.2