By Colingpt
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!
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
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:
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.
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.
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.
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.
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.