setup revision 1058:4717c6cc329d
1ifconfig eth1 mtu 9000 txqueuelen 1000 up
2
3### IPV4 specific settings
4# turns TCP timestamp support off, default 1, reduces CPU use
5echo "0" > /proc/sys/net/ipv4/tcp_timestamps
6
7# turn SACK support off, default on
8echo "0" > /proc/sys/net/ipv4/tcp_sack
9
10# sets min/default/max TCP read buffer, default 4096 87380 174760
11echo "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_rmem
12
13# sets min/pressure/max TCP write buffer, default 4096 16384 131072
14echo "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_wmem
15
16# sets min/pressure/max TCP buffer space, default 31744 32256 32768
17echo "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_mem
18
19### CORE settings (mostly for socket and UDP effect)
20# maximum receive socket buffer size, default 131071
21echo "524287" > /proc/sys/net/core/rmem_max
22
23# maximum send socket buffer size, default 131071
24echo "524287" > /proc/sys/net/core/wmem_max
25
26# default receive socket buffer size, default 65535
27echo "524287" > /proc/sys/net/core/rmem_default
28
29# default send socket buffer size, default 65535
30echo "524287" > /proc/sys/net/core/wmem_default
31
32# maximum amount of option memory buffers, default 10240
33echo "524287" > /proc/sys/net/core/optmem_max
34
35# number of unprocessed input packets before kernel starts dropping them,
36# default 300
37echo "300000" > /proc/sys/net/core/netdev_max_backlog
38