Report this

What is the reason for this report?

Does Linux distribution influence network speed?

Posted on October 16, 2015

Hi guys,

Just find something interesting. Today, when I use Centos5 x86, I did a network speed test by : wget --no-check-certificate freevps.us/downloads/bench.sh -O - -o /dev/null | bash then get result for 4.5 mb/s from cachefly and other locations around 2-3 mb/s.

When I change to Centos6 x86 and Detian8 X86, doing the same thing , then result become 22 mb/s from cachefly and other locations around 5-8 mb/s. Just 5 times more.

Centos5 picture Centos6 picutre Debian8 picture

i didn’t test on Ubuntu.

What’s wrong here? Just curious… Is this a issue related to OS or just DO template problem or anything else?

My vps current in Singapore, all systems are tested serval times with clean install.

Any ideas?

Thanks.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I have solved this by edit /etc/sysctl.conf, with:

[root@centos5 ~]# sysctl -a  | grep mem
net.ipv4.udp_wmem_min = 4096
net.ipv4.udp_rmem_min = 4096
net.ipv4.udp_mem = 49056    65408   98112
net.ipv4.tcp_rmem = 10240   87380   12582912
net.ipv4.tcp_wmem = 10240   87380   12582912
net.ipv4.tcp_mem = 12288    16384   24576
net.ipv4.igmp_max_memberships = 20
net.core.optmem_max = 10240
net.core.rmem_default = 110592
net.core.wmem_default = 110592
net.core.rmem_max = 12582912
net.core.wmem_max = 12582912
vm.lowmem_reserve_ratio = 256   256 32
vm.overcommit_memory = 0

more information can be found here and here

Here is a more general answer to the question in case anyone comes here for the title like I did:

Yes, the Linux distribution can influence network speed, but it’s typically indirect. Here’s how:

  1. Kernel Version: Different distributions may use different versions of the Linux kernel, which can affect network performance. Newer kernels usually have optimizations and better hardware support.

  2. Network Stack Configuration: Some distributions come with default network settings optimized for general use, while others (like those aimed at servers) may be tuned for high-performance networking out of the box.

  3. Installed Packages: The choice of network management tools and drivers can vary between distributions, which might affect performance. For example, some distributions might have more efficient network drivers or include optimizations for certain hardware.

  4. Default System Configuration: Distributions aimed at performance (like CentOS or Debian for servers) may have configurations that reduce latency and improve throughput compared to desktop-oriented distributions.

  5. Resource Usage: Lightweight distributions may leave more CPU and memory available for network tasks, indirectly improving network speed.

In summary, while the underlying Linux kernel and hardware are crucial, the distribution’s configuration and optimizations can influence network performance.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.