IPoIB tuning

startup script

in cron
@reboot /etc/path_to_script

script..
#!/bin/bash

echo “connected > /sys/class/net/ib0/mode”
echo “connected > /sys/class/net/ib0/mode”

ibconfig ib0 mtu 65520
ibconfig ib1 mtu 65520

#make sure sdp is loaded… just in case!
/sbin/modprobe ib_sdp

#TCP Tuning for IPOIB
/sbin/sysctl -w net.ipv4.tcp_timestamps=0
/sbin/sysctl -w net.ipv4.tcp_sack=0
/sbin/sysctl -w net.core.netdev_max_backlog=250000
/sbin/sysctl -w net.core.rmem_max=16777216
/sbin/sysctl -w net.core.wmem_max=16777216
/sbin/sysctl -w net.core.rmem_default=16777216
/sbin/sysctl -w net.core.wmem_default=16777216
/sbin/sysctl -w net.core.optmem_max=16777216
/sbin/sysctl -w net.ipv4.tcp_mem=”16777216 16777216 16777216″
/sbin/sysctl -w net.ipv4.tcp_rmem=”4096 87380 16777216″
/sbin/sysctl -w net.ipv4.tcp_wmem=”4096 65536 16777216″

Comments are closed.