11058Sbinkertn@umich.eduifconfig eth1 mtu 9000 txqueuelen 1000 up
21058Sbinkertn@umich.edu
31058Sbinkertn@umich.edu### IPV4 specific settings
41058Sbinkertn@umich.edu# turns TCP timestamp support off, default 1, reduces CPU use
51058Sbinkertn@umich.eduecho "0" > /proc/sys/net/ipv4/tcp_timestamps
61058Sbinkertn@umich.edu
71058Sbinkertn@umich.edu# turn SACK support off, default on
81058Sbinkertn@umich.eduecho "0" > /proc/sys/net/ipv4/tcp_sack
91058Sbinkertn@umich.edu
101058Sbinkertn@umich.edu# sets min/default/max TCP read buffer, default 4096 87380 174760
111058Sbinkertn@umich.eduecho "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_rmem
121058Sbinkertn@umich.edu
131058Sbinkertn@umich.edu# sets min/pressure/max TCP write buffer, default 4096 16384 131072
141058Sbinkertn@umich.eduecho "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_wmem
151058Sbinkertn@umich.edu
161058Sbinkertn@umich.edu# sets min/pressure/max TCP buffer space, default 31744 32256 32768
171058Sbinkertn@umich.eduecho "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_mem
181058Sbinkertn@umich.edu
191058Sbinkertn@umich.edu### CORE settings (mostly for socket and UDP effect)
201058Sbinkertn@umich.edu# maximum receive socket buffer size, default 131071
211058Sbinkertn@umich.eduecho "524287" > /proc/sys/net/core/rmem_max
221058Sbinkertn@umich.edu
231058Sbinkertn@umich.edu# maximum send socket buffer size, default 131071
241058Sbinkertn@umich.eduecho "524287" > /proc/sys/net/core/wmem_max
251058Sbinkertn@umich.edu
261058Sbinkertn@umich.edu# default receive socket buffer size, default 65535
271058Sbinkertn@umich.eduecho "524287" > /proc/sys/net/core/rmem_default
281058Sbinkertn@umich.edu
291058Sbinkertn@umich.edu# default send socket buffer size, default 65535
301058Sbinkertn@umich.eduecho "524287" > /proc/sys/net/core/wmem_default
311058Sbinkertn@umich.edu
321058Sbinkertn@umich.edu# maximum amount of option memory buffers, default 10240
331058Sbinkertn@umich.eduecho "524287" > /proc/sys/net/core/optmem_max
341058Sbinkertn@umich.edu
351058Sbinkertn@umich.edu# number of unprocessed input packets before kernel starts dropping them,
361058Sbinkertn@umich.edu# default 300
371058Sbinkertn@umich.eduecho "300000" > /proc/sys/net/core/netdev_max_backlog
38