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

CVS | Administration

Diff for /libnutss/examples/swp_vl_test between versions 1.10 and 1.11

version 1.10, 2007/07/20 17:00:22 version 1.11, 2007/07/28 00:41:57
Line 3 Line 3
 trap "killall lt-nutssd lt-slinksvariableload" SIGINT SIGTERM  trap "killall lt-nutssd lt-slinksvariableload" SIGINT SIGTERM
   
 if [ "$#" == "0" ]; then  if [ "$#" == "0" ]; then
   echo -e "Usage:\n  swp_vl_test number_of_nodes number_of_peerstime_limit percent_to_send max_flow_duration max_flow_weightmax_load percent_to_finish"    echo -e "Usage:\n  swp_vl_test num_nodes num_peersnum_msgs percent_load max_flow_duration max_flow_weightexperiment_duration"
     exit 0      exit 0
 fi  fi
   
Line 18  rm output/* Line 18  rm output/*
   
 echo nodes: $1 > output/param1.txt  echo nodes: $1 > output/param1.txt
 echo peers: $2 > output/param2.txt  echo peers: $2 > output/param2.txt
echotime limit: $3 > output/param3.txtechorequests per node: $3 > output/param3.txt
 echo max percent load: $4 > output/param4.txt  echo max percent load: $4 > output/param4.txt
 echo max flow duration: $5 > output/param5.txt  echo max flow duration: $5 > output/param5.txt
 echo max flow weight: $6 > output/param6.txt  echo max flow weight: $6 > output/param6.txt
echomax load: $7 > output/param7.txtechoexperiment duration: $7 > output/param7.txt
echo percent to finish: $8 > output/param8.txt 
   
 cat output/param* > output/args.txt  cat output/param* > output/args.txt
 rm output/param*  rm output/param*
Line 33  killall lt-nutssd Line 32  killall lt-nutssd
 ./nutssd -stwn -r sip.nutss.net:5060 -p ths1 ths1@nutss.net >output/debug_registrar.txt &  ./nutssd -stwn -r sip.nutss.net:5060 -p ths1 ths1@nutss.net >output/debug_registrar.txt &
   
 for i in $(seq $1); do  for i in $(seq $1); do
       ./slinksvariableload $i$2 $3 $4 `expr $RANDOM %\( $5 / 4 \) + $5 - \( $5 / 8 \)` `expr $RANDOM % \( $6 / 4 \) + $6 - \( $6 / 8 \)``expr $RANDOM %\( $7 / 4 \) + $7 - \( $7 / 8 \)` &        ./slinksvariableload $i`expr $RANDOM % $2 + 5` $3 $4 `expr $RANDOM %$5 + 60` `expr $RANDOM % \( $6 / 4 \) + $6 - \( $6 / 8 \)`&
        ./slinksvariableload $i `expr $RANDOM %$2 + 5` $3 $4 `expr $RANDOM % $5 + 120` $6 &
 done  done
   
./slinksvariableload 99 $1 $2 $8 &./slinksvariableload 99 $1 $2 $7 &
 
#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 

Removed from v.1.10  
changed lines
  Added in v.1.11


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