Skip to content

@sebhtml /gist:1233173
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
#!/bin/bash
# how to use:
# first execute the on node1
# then run it on node2
# you have to change node1 and node2
firstPort=18515
lastPort=18525
iterations=1000000
node1=colosse1
node2=colosse2
hostname=$(hostname)
for port in $(seq $firstPort $lastPort)
do
if test $hostname = $node1
then
(
echo "$(date) start $hostname $port "
ibv_rc_pingpong --port $port --iters $iterations
echo "$(date) end $hostname $port"
) &> $0.$hostname.$port.txt &
else
(
echo "$(date) start $hostname $port"
ibv_rc_pingpong --port $port --iters $iterations $node1
echo "$(date) end $hostname $port"
) &> $0.$hostname.$port.txt &
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.