storage R&D guy.
全部博文(1000)
分类: 服务器与存储
2014-06-18 11:07:50
|
echo 1 > /proc/sys/net/ipv4/ip_forward |
General |
ifconfig ethX mtu 9000 |
OS Tunings |
ethtool -L ethX combined 8 |
|
perf_tune_benet.sh -t ethX |
NAME
perf_tune_benet.sh - configures Linux system parameters for
best performance from be2net driver
SYNOPSIS
perf_tune_benet.sh [-t|-l|-p|-r]
DESCRIPTION
perf_tune_benet.sh configures some Linux system parameters for best
performance from be2net driver. One or more interface names created
by be2net should be specified. Following options are supported :
-t configures the parameters for highest throughput
-l configures the parameters for lowest latency
-p configures the parameters for highest packet / sec rate
-r restores the system default parameters. Use this option
to restore the system parameters to original values.
For the -t, -l and -p options above, the script disables automatic balancing
of interrupt load (irqbalance) and pins interrupts to specific CPU cores
for optimal performance. The script also increases the core rmem and wmem
to larger values as below :
echo 64000000 > /proc/sys/net/core/rmem_default
echo 64000000 > /proc/sys/net/core/rmem_max
echo 32000000 > /proc/sys/net/core/wmem_default
echo 32000000 > /proc/sys/net/core/wmem_max
For -t option, the script does the following TCP configurations :
echo 4096 87380 16777216 > /proc/sys/net/ipv4/tcp_rmem
echo 4096 65536 16777216 > /proc/sys/net/ipv4/tcp_wmem
echo 0 > /proc/sys/net/ipv4/tcp_timestamps
echo 0 > /proc/sys/net/ipv4/tcp_sack
echo 0 > /proc/sys/net/ipv4/tcp_ecn
Additionally for -t option, the script increases the devices backlog queue
length to 50000 and the txqueuelen to 10000.
For -l option, the script configures TCP for low latency and also disables
adaptive interrupt coalescing in driver with the interrupt coalescing
delay set to 0.
EXAMPLE
./perf_tune_benet.sh -t eth0 eth1 eth2 eth3
BUGS
Not tested on AMD processor based machines.
Supports only Linux OS's
NO support for XEN varients and citrix OS's.