Saturday, 6 February 2016

NAS tcp tuning

I found some article that set up for low-latency general purpose network desktop.
This settings keep until reboot.

$ su
$ echo 12582912 > /proc/sys/net/core/rmem_max
$ echo 12582912 > /proc/sys/net/core/wmem_max
$ echo '10240 87380 12582912' > /proc/sys/net/ipv4/tcp_rmem
$ echo '10240 87380 12582912' > /proc/sys/net/ipv4/tcp_wmem
$ echo 32768 > /proc/sys/net/core/netdev_max_backlog

On NAS the previous settings decrease the number of this kind of messages from dmesg:

TCP: Peer xxx.yyy.191.66:8153/4109 unexpectedly shrunk window 735219438:735220878 (repaired)
TCP: Peer xxx.yyy.191.66:8153/4109 unexpectedly shrunk window 735219438:735220878 (repaired)

No comments:

Post a Comment