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.8 and 1.9

version 1.8, 2007/07/17 02:17:30 version 1.9, 2007/07/18 05:09:39
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_peers time_limit percent_to_send max_flow_duration max_flow_weight max_load"    echo -e "Usage:\n  swp_vl_test number_of_nodes number_of_peers time_limit percent_to_send max_flow_duration max_flow_weight max_loadpercent_to_finish"
     exit 0      exit 0
 fi  fi
   
Line 16  fi Line 16  fi
 mkdir -p output  mkdir -p output
 rm output/*  rm output/*
   
echo nodes: $1 > output/param0.txtecho nodes: $1 > output/param1.txt
echo peers: $2 > output/param1.txtecho peers: $2 > output/param2.txt
echo time limit: $3 > output/param2.txtecho time limit: $3 > output/param3.txt
echo max flow duration: $4 > output/param3.txtecho max flow duration: $4 > output/param4.txt
echo max flow duration: $5 > output/param4.txtecho max flow duration: $5 > output/param5.txt
echo max flow weight: $6 > output/param5.txtecho max flow weight: $6 > output/param6.txt
echo max load: $7 > output/param6.txtecho max load: $7 > output/param7.txt
 echo max load: $8 > output/param8.txt
   
 cat output/param* > output/args.txt  cat output/param* > output/args.txt
 rm output/param*  rm output/param*
   
   killall lt-slinksvariableload
 killall lt-nutssd  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 &
   
Line 34  for i in $(seq $1); do Line 36  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 $2 $3 $4 `expr $RANDOM % \( $5 / 4 \) + $5 - \( $5 / 8 \)` `expr $RANDOM % \( $6 / 4 \) + $6 - \( $6 / 8 \)` `expr $RANDOM % \( $7 / 4 \) + $7 - \( $7 / 8 \)` &
 done  done
   
./slinksvariableload 99 $1&./slinksvariableload 99 $1$2 $8 &
   
 #export K = `expr $1 + 1`  #export K = `expr $1 + 1`
   

Removed from v.1.8  
changed lines
  Added in v.1.9


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