Commit fd58af6d authored by Ben Hazelwood's avatar Ben Hazelwood
Browse files

Finished experiment -- need to make the sleeps more obvious!

parent e17b3f82
../scripts/loop-over-rank-performance-options.sh
\ No newline at end of file
#!/bin/bash
pids=($(pgrep $1))
for i in ${pids[*]}; do
echo $i
done
#!/bin/bash
export TEAMS=2
for interval in constant increasing random; do
for select in single rr random; do
export TMPI_FILE="$interval-$select-timings"
./rank-performance-latency.sh random random ./bin/Latency 100000 100000 1
done
done
\ No newline at end of file
if (( $# < 4)); then
echo "ERROR: At least four parameters are required"
echo "Usage: { constant | increasing | random } { single | rr | random } application [application args...]"
exit 1
fi
echo "Execute ${@:3} &"
sleep 5
pids=($(pgrep $3))
while kill -0 ${pids[0]}; do
if [ $2 = "single" ]; then
# Select same rank each time
fi
if [ $2 = "rr" ]; then
#select next rank
fi
if [ $2 = "random" ]; then
#select a random rank
fi
kill -USR1 $rank
if [ $1 = "constant" ]; then
# wait 5s
fi
if [ $1 = "increasing" ]; then
#wait 50s, 25s, 12.5s...
fi
if [ $1 = "random"]; then
#wait rand(0.1, 100)
fi
done
#!/bin/bash
if (( $# < 4)); then
echo "ERROR: At least four parameters are required"
echo "Usage: { constant | increasing | random } { single | rr | random } application [application args...]"
......@@ -36,7 +37,7 @@ while true; do
fi
if [ $1 = "increasing" ]; then
sleep $(python -c "print(max(0.5,20/$iteration))")
sleep $(python -c "print(max(0.5,25/$iteration))")
fi
if [ $1 = "random" ]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment