Log In
New Account
  
 
Home My Page Project Tree Code Snippets Project Openings NUTSS
 
 
Summary Tracker Lists CVS Files
 

CVS | Administration


File:  [GForge:cvsroot/nutss] / libnutss / examples / swp_vl_test
Revision 1.4: download - view: text, annotated - select for diffs
Sat Jun 30 20:57:28 2007 UTC (10 years, 2 months ago) by ths
Branches: MAIN
CVS tags: HEAD
more fixes and lterations to the swaplinks test.

#!/bin/bash

trap "killall lt-nutssd lt-slinksvariableload" SIGINT SIGTERM

if [ "$#" == "0" ]; then
    echo -e "Usage:\n  swp_vl_test number_of_nodes number_of_peers time_limit max_flow_duration max_flow_weight max_load"
    exit 0
fi

if [ ! -x "./slinksvariableload" -o ! -x "./nutssd" ]; then
    echo "Cannot file slinkapp and nutssd."
    echo "The test must be run from the libnutss/examples directory"
    exit 0
fi

mkdir -p output
rm output/*

killall lt-nutssd
./nutssd -stwn -r sip.nutss.net:5060 -p ths1 ths1@nutss.net >output/debug_registrar.txt &

for i in $(seq $1); do
	./slinksvariableload $i $2 $3 `expr $RANDOM % $4 + 1` `expr $RANDOM % $5 + 1` `expr $RANDOM % $6 + 1` &
done

#export K = `expr $1 + 1`

#while true; do
#	sleep 20
#	./slinksvariableload $K $2 $3 `expr $RANDOM % $4 + 1` `expr $RANDOM % $5 + 1` `expr $RANDOM % $6 + 1` &	
#	export K = `expr $K + 1`
#done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
 

GForge.cis.cornell.edu is brought to you by

Cornell Computing and Information Science


Powered By GForge Collaborative Development Environment