This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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