TCP Tweak

In file /etc/sysctl.conf

# tweak - start
net.ipv4.tcp_rmem= 10240 87380 33554432
net.ipv4.tcp_wmem= 10240 87380 33554432
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
net.ipv4.tcp_no_metrics_save = 1
net.core.netdev_max_backlog = 5000
# tweak - end


In file /etc/rc.local

ip link set mtu 7000 dev enp4s0

Set MTU size by add this line

ip link set mtu [supported MTU] dev [NIC]

Check MTU size that your NIC supported first.

sudo ifconfig [NIC] mtu [MTU]

One thought on “TCP Tweak

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s