Difference between revisions of "Increase network throughput"

From Luna Node
Jump to: navigation, search
(Created page with "On some operating systems, the default network settings limit the possible TCP throughput. If you find that your Linux VM is not able to use up the network port, then open /et...")
 
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
On some operating systems, the default network settings limit the possible TCP throughput. If you find that your Linux VM is not able to use up the network port, then open /etc/sysctl.conf in an editor and add at the bottom:
+
On some operating systems, the default network settings limit the possible TCP throughput. If you find that your Linux VM is not able to push more than 20 MB/s on a gigabit port, then open <code>/etc/sysctl.conf</code> in an editor and add at the bottom:
  
<code>net.core.rmem_max=16777216
+
<nowiki>net.core.rmem_max=16777216
 
net.core.wmem_max=16777216
 
net.core.wmem_max=16777216
 
net.ipv4.tcp_rmem=4096 87380 16777216
 
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_wmem=4096 65536 16777216</code>
+
net.ipv4.tcp_wmem=4096 65536 16777216</nowiki>
 +
 
 +
Once saved, execute <code>sysctl -p</code> and try a test download.

Latest revision as of 20:44, 20 April 2014

On some operating systems, the default network settings limit the possible TCP throughput. If you find that your Linux VM is not able to push more than 20 MB/s on a gigabit port, then open /etc/sysctl.conf in an editor and add at the bottom:

net.core.rmem_max=16777216
net.core.wmem_max=16777216
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_wmem=4096 65536 16777216

Once saved, execute sysctl -p and try a test download.