From d8ec9e6a16cf56738f3abc647090b187b8c49732 Mon Sep 17 00:00:00 2001 From: Job Snijders Date: Fri, 20 Dec 2013 12:45:58 +0100 Subject: [PATCH] Update README.md add linux tuning example --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 86024aa..af53ee0 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,14 @@ due to lacking tcp buffer size. To avoid this, tune your OS. FreeBSD can be tuned in the following way: sysctl -w net.inet.tcp.sendbuf_max=16777216 + +Linux can be tuned in the following way: + + sysctl -w net.ipv4.tcp_window_scaling=1 + sysctl -w net.core.rmem_max=16777216 + sysctl -w net.core.wmem_max=16777216 + sysctl -w net.ipv4.tcp_rmem="4096 87380 16777216" + sysctl -w net.ipv4.tcp_wmem="4096 65536 16777216" Please note that generated prefix-lists may not fit your router's limitations. For example, JunOS supports only 85,325 prefixes in