Sysctl: diferència entre les revisions

De WikiMar
Salta a la navegació Salta a la cerca
(Es crea la pàgina amb «===Linix config for fast 1 Gbps connections=== See current config sysctl -a /etc/sysctl.conf <pre> #marti: https://fasterdata.es.net/host-tuning/linux/ # allow test...».)
(Cap diferència)

Revisió del 16:03, 21 maig 2017

Linix config for fast 1 Gbps connections

See current config

sysctl -a

/etc/sysctl.conf

#marti: https://fasterdata.es.net/host-tuning/linux/
# allow testing with buffers up to 32MB
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
# increase Linux autotuning TCP buffer limit to 16MB
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
# recommended default congestion control is htcp   (enlloc de la per defecte cubic)
net.ipv4.tcp_congestion_control=htcp
# recommended for hosts with jumbo frames enabled
net.ipv4.tcp_mtu_probing=1
net.ipv4.tcp_slow_start_after_idle=0
# crec que ja esta activat per defecte:
net.ipv4.tcp_sack=1

Apply changes

sysctl -p 


Check speed of internet connection (no root needed)

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod a+rx speedtest.py
./speedtest.py