Skip to content

Instantly share code, notes, and snippets.

@pandada8
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandada8/1890695c237bee6e513c to your computer and use it in GitHub Desktop.
Save pandada8/1890695c237bee6e513c to your computer and use it in GitHub Desktop.
Test your net.ipv4.tcp_congestion_control config with iperf
algos=$(find /lib/modules/`uname -r` -type f -name "*.ko" | sed -n "s/.*ipv4\/tcp_\(\w*\)\..*/\1/p" | sort -u)
server="XXX.XXX.XX.XXX"
filesize="10M"
for i in $algos
do
echo "Test $i";
sudo modprobe tcp_$i;
for t in {1..3}
do
sudo iperf -c $server -Z $i -n $filesize
done
done
# just simply run the iperf in the server and run this script in client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment