Quantcast
Channel: Active questions tagged openvpn - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 827

How high can I tune my network stack buffer size to increase network performance due to long distance server latency?

$
0
0

I followed this guide: https://www.cyberciti.biz/faq/linux-tcp-tuning/

I added the following values into my /etc/sysctl.conf file:

net.core.wmem_max=12582912
net.core.rmem_max=12582912
net.ipv4.tcp_rmem= 10240 87380 12582912
net.ipv4.tcp_wmem= 10240 87380 12582912
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
net.ipv4.tcp_no_metrics_save = 1
net.core.netdev_max_backlog = 5000

The server I'm using is just for OpenVPN usage and has 1GB of free memory. The guide currently sets the buffer size to 12MB, but I want to MAXIMUM I can set.

How can I adjust these settings to the MAX? My main goal is to increase performance over an OpenVPN connection that has a latency of 200ms-300ms.


Viewing all articles
Browse latest Browse all 827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>