Slower download speeds after rebuilding machine from Vyatta to VyOS

Here are some performance related settings to laborate with:

https://docs.vyos.io/en/latest/configuration/system/option.html#cfgcmd-set-system-option-performance-throughput-latency

https://docs.vyos.io/en/latest/configuration/system/conntrack.html#cfgcmd-set-system-conntrack-table-size-1-50000000

https://docs.vyos.io/en/latest/configuration/system/conntrack.html#cfgcmd-set-system-conntrack-expect-table-size-1-50000000

https://docs.vyos.io/en/latest/configuration/system/conntrack.html#cfgcmd-set-system-conntrack-hash-size-1-50000000

https://docs.vyos.io/en/latest/configuration/interfaces/ethernet.html#cfgcmd-set-interfaces-ethernet-interface-offload-gro-gso-lro-rps-sg-tso

And also (dunno why documentation is missing for this):

set interfaces ethernet <interface> ring-buffer rx 4096
set interfaces ethernet <interface> ring-buffer tx 4096

When it comes to conntrack sizes it depends on available RAM but I run with all three settings set to 10485760.

The point here is to minimize CPU usage to locate a bucket. As I recall it a single conntrack will use in total 300 bytes or so of RAM.

When it comes to timeout it can be sane to at least lower the established timeout (normally you dont need a flow to occupy space in your conntrack tables for 2 weeks without a single packet in either direction):

https://docs.vyos.io/en/latest/configuration/system/conntrack.html

Note that regarding offloading you could try to enable all offloading options and then reboot the device however from time to time (depending on NIC and driver) some offloading options can make things worser so try to enable them all and then laborate by disable them one by one to find out if thats the issue in your case.

Also note that I would recommend to reboot the device after changing above settings.

1 Like