dirkos
By: a guest | Jul 23rd, 2008 | Syntax:
None | Size: 1.09 KB | Hits: 17 | Expires: Never
Some settings for broadband networking are adjustable from /etc/sysctl.conf. Open that file and add these lines to the end.
net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1
Those numbers are inclined toward a traditional DSL connection with a maximum speed of roughly 512Kbps. Connections that are faster than that will benefit from some different settings. The Gentoo wiki suggests these:
net.core.rmem_max=16777216
net.core.wmem_max=16777216
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_wmem=4096 65536 16777216
net.ipv4.tcp_no_metrics_save=1
Experiment and see what gives you the best results.
You can apply these settings without a reboot; this command will insert new settings into a running system.
sudo sysctl -p