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

CVS | Administration

Annotation of libnutss/examples/swp_vl_test, revision 1.11

1.1       ths         1: #!/bin/bash
                      2:
                      3: trap "killall lt-nutssd lt-slinksvariableload" SIGINT SIGTERM
                      4:
                      5: if [ "$#" == "0" ]; then
1.11    ! ths         6:     echo -e "Usage:\n  swp_vl_test num_nodes num_peers num_msgs percent_load max_flow_duration max_flow_weight experiment_duration"
1.1       ths         7:     exit 0
                      8: fi
                      9:
                     10: if [ ! -x "./slinksvariableload" -o ! -x "./nutssd" ]; then
                     11:     echo "Cannot file slinkapp and nutssd."
                     12:     echo "The test must be run from the libnutss/examples directory"
                     13:     exit 0
                     14: fi
                     15:
                     16: mkdir -p output
                     17: rm output/*
                     18:
1.9       ths        19: echo nodes: $1 > output/param1.txt
                     20: echo peers: $2 > output/param2.txt
1.11    ! ths        21: echo requests per node: $3 > output/param3.txt
1.10      ths        22: echo max percent load: $4 > output/param4.txt
1.9       ths        23: echo max flow duration: $5 > output/param5.txt
                     24: echo max flow weight: $6 > output/param6.txt
1.11    ! ths        25: echo experiment duration: $7 > output/param7.txt
1.5       ths        26:
                     27: cat output/param* > output/args.txt
                     28: rm output/param*
                     29:
1.9       ths        30: killall lt-slinksvariableload
1.1       ths        31: killall lt-nutssd
1.2       ths        32: ./nutssd -stwn -r sip.nutss.net:5060 -p ths1 ths1@nutss.net >output/debug_registrar.txt &
1.1       ths        33:
1.2       ths        34: for i in $(seq $1); do
1.11    ! ths        35:       ./slinksvariableload $i `expr $RANDOM % $2 + 5` $3 $4 `expr $RANDOM % $5 + 60` `expr $RANDOM % \( $6 / 4 \) + $6 - \( $6 / 8 \)` &
        !            36:      ./slinksvariableload $i `expr $RANDOM % $2 + 5` $3 $4 `expr $RANDOM % $5 + 120` $6 &
1.1       ths        37: done
                     38:
1.11    ! ths        39: ./slinksvariableload 99 $1 $2 $7 &

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