psy0rz / zfs_autobackup

ZFS autobackup is used to periodicly backup ZFS filesystems to other locations. Easy to use and very reliable.
https://github.com/psy0rz/zfs_autobackup
GNU General Public License v3.0
601 stars 63 forks source link

TCP tuning suggestion #120

Closed xrobau closed 2 years ago

xrobau commented 2 years ago

I'm not sure if you want to actually put this into the README.md, so I thought I'd mention it here.

By default, the linux kernel uses cubic as the TCP Congestion Control protocol. This is extremely good for almost all situations, except for moving huge amounts of data over the public internet where you can have brief bursts of congestion (and therefore packet loss).

Changing this to scaleable makes TCP sessions recover much faster from packet loss, and return to the full speed available without the extended recovery of the normal cubic protocol.

I suggest you add this as a suggestion if people are sending data over the internet:

/etc/sysctl.d/60-send-bulk-tcp.conf:

# Recovers rapidly from congestion
net.ipv4.tcp_congestion_control = scalable

https://en.wikipedia.org/wiki/Scalable_TCP

psy0rz commented 2 years ago

thanks, ill add it to the performance tips.

psy0rz commented 2 years ago

done