gdunlap/sched-sim.hg

annotate run.sh @ 17:03ad237559b4

Fix-up options, scheduler list
author George Dunlap <george.dunlap@eu.citrix.com>
date Fri Jul 16 11:58:53 2010 +0100 (2010-07-16)
parents 0ec40a1605a3
children
rev   line source
gdunlap@6 1 #!/bin/bash
gdunlap@9 2 sched=credit01
gdunlap@9 3 workload=N2s2
gdunlap@9 4 file_base=${sched}.${workload}
gdunlap@9 5 ./simulator --scheduler=${sched} --workload=${workload} > /tmp/${file_base}.all
gdunlap@6 6 for C in credit runtime; do
gdunlap@9 7 for I in 0 1 2 3 4 ; do
gdunlap@9 8 grep -a "^$C v$I" /tmp/${file_base}.all | awk '{print $3 " " $4;}' > /tmp/${file_base}.$C.$I.csv
gdunlap@6 9 done
gdunlap@9 10 ygraph -c /tmp/${file_base}.$C.*.csv &
gdunlap@6 11 done
gdunlap@9 12 tail -25 /tmp/$file_base.all