Last active
August 29, 2015 14:14
-
-
Save pandada8/1890695c237bee6e513c to your computer and use it in GitHub Desktop.
Test your net.ipv4.tcp_congestion_control config with iperf
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
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