gdunlap/sched-sim.hg

changeset 9:0ec40a1605a3

Some updates (and hard-code changes, deal with it)
author George Dunlap <gdunlap@xensource.com>
date Tue Oct 20 18:01:15 2009 +0100 (2009-10-20)
parents 92a58ca1e356
children a0da04ca71ee
files run.sh
line diff
     1.1 --- a/run.sh	Tue Oct 20 18:00:49 2009 +0100
     1.2 +++ b/run.sh	Tue Oct 20 18:01:15 2009 +0100
     1.3 @@ -1,8 +1,12 @@
     1.4  #!/bin/bash
     1.5 -./simulator --scheduler=credit01 --workload=Sx3 > /tmp/1
     1.6 +sched=credit01
     1.7 +workload=N2s2
     1.8 +file_base=${sched}.${workload}
     1.9 +./simulator --scheduler=${sched} --workload=${workload} > /tmp/${file_base}.all
    1.10  for C in credit runtime; do 
    1.11 -    for I in 0 1 2 ; do 
    1.12 -	grep -a "^$C v$I" /tmp/1 | awk '{print $3 " " $4;}' > /tmp/1.$C.$I.csv 
    1.13 +    for I in 0 1 2 3 4 ; do 
    1.14 +	grep -a "^$C v$I" /tmp/${file_base}.all | awk '{print $3 " " $4;}' > /tmp/${file_base}.$C.$I.csv 
    1.15      done
    1.16 -    ygraph -c /tmp/1.$C.*.csv & 
    1.17 +    ygraph -c /tmp/${file_base}.$C.*.csv & 
    1.18  done
    1.19 +tail -25 /tmp/$file_base.all