commit 87ba752d7c6bd6778b556a177ca661ac551a8697 Author: David Fifield david@bamsoftware.com Date: Sun Oct 30 21:00:37 2011 -0700
Remove the 01 experiment.
This was a repeat of the 00 (throughput experiment) with RTMFP. But RTMFP is broken for high-bandwidth local connections: It will push bytes faster than they can be sent, buffer them, and eventually crash after using up all memory. --- experiments/01 | 79 -------------------------------------------------------- 1 files changed, 0 insertions(+), 79 deletions(-)
diff --git a/experiments/01 b/experiments/01 deleted file mode 100755 index 8718e0d..0000000 --- a/experiments/01 +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash - -# Get arguments -if [ $1 ]; then - NUM_CLIENTS=$1 -else - NUM_CLIENTS=1 -fi - -# Go to flashproxy repo root dir -cd .. - -# Create 1GB dump file -echo "creating dump file..." -rm dump -dd if=/dev/null of=dump bs=1G seek=1 - -# Start http server -echo "starting http server..." -thttpd -p 1080 - -# Start crossdomain policy server -echo "starting cross domain policy server..." -sudo ./crossdomaind.py & - -# Start the facilitator -echo "starting facilitator..." -./facilitator.py 4701 -r 127.0.0.1:1080 - -# Start socat adapters -echo "starting socat adapters..." -i=1 -until [ $i -gt $NUM_CLIENTS ]; do - let local_port=2000+i - let remote_port=9000+i - socat TCP-LISTEN:${remote_port},reuseaddr,fork TCP-LISTEN:${local_port},reuseaddr & - let i=i+1 -done - -# Start the flash proxy, server side -echo "starting flash proxy server side..." -firefox & -sleep 2 -firefox --remote "openURL(http://localhost:1080/swfcat.swf?facilitator=127.0.0.1:4701)" - -# Start the flash proxy, client side -echo "starting flash proxy client side..." -i=1 -until [ $i -gt $NUM_CLIENTS ]; do - let local_port=9000+i - firefox --remote "openURL(http://localhost:1080/swfcat.swf?local=127.0.0.1:$%7Blocal_port%7D&clien...)" - let i=i+1 - sleep 2 -done - -let query_fac_time=NUM_CLIENTS+2 -sleep ${query_fac_time} - -# wget the dump file -echo "getting the dump file..." -i=2 -until [ $i -gt $NUM_CLIENTS ]; do - let local_port=2000+i - xterm -e "/bin/bash -c 'wget -t1 http://localhost:$%7Blocal_port%7D/dump -O - > /dev/null; exec /bin/bash -i'" & - let i=i+1 - sleep 2 -done - -# Use this one for delaying the termination of experiment below -wget -t1 http://localhost:2001/dump -O - > /dev/null - -echo "Press enter to continue." -read - -# Slaughter the processes -sudo killall thttpd -ps -ef | sed -n '/crossdomaind.py/{/grep/!p;}' | awk '{print$2}' | sudo xargs -i kill {} -ps -ef | sed -n '/facilitator.py/{/grep/!p;}' | awk '{print$2}' | sudo xargs -i kill {} -sudo killall socat