Knowledgebase

KVM Performance Tweaks on Linux MyCores

For the best performance, tweak your Linux MyCore VPS with the following commands:

 

For an official ISO Install:
echo 0 > /sys/block/sda/queue/rotational
echo 0 > /sys/block/sda/queue/rq_affinity
echo noop > /sys/block/sda/queue/scheduler
echo "echo 0 > /sys/block/sda/queue/rotational" >> /etc/rc.local
echo "echo 0 > /sys/block/sda/queue/rq_affinity" >> /etc/rc.local
echo "echo noop > /sys/block/sda/queue/scheduler" >> /etc/rc.local
echo 'vm.swappiness=5' >> /etc/sysctl.conf
echo 'vm.vfs_cache_pressure=50' >> /etc/sysctl.conf
sysctl -p

To potentially improve network performance:
echo "net.core.rmem_max=16777216" >> /etc/sysctl.conf
echo "net.core.wmem_max=16777216" >> /etc/sysctl.conf
echo "net.ipv4.tcp_rmem=4096 87380 16777216" >> /etc/sysctl.conf
echo "net.ipv4.tcp_wmem=4096 65536 16777216" >> /etc/sysctl.conf
sysctl -p

Extra Lines:
You can also add the noatime and nobarrier (barrier=0 for ext filesystems) options to your mounting setup (/etc/fstab). To remount without rebooting, use the -oremount option with the mount command.

  • speed, network, performance, slow, speedtest
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How do I connect to my VPS? (SSH)

We recommend the program PuTTY for SSH. You can download it here:...

ISO Installation: No Bootable Disk

MyCore VM support ISO installation from custom images. Most of Linux distros support Virtio...

Migrating MyCore KVM/LXC Servers to a New Region

Customers may wish to migrate MyCore KVM/LXC Servers from one region to another for a variety of...

LXC vs KVM vs Dedicated Server

If few years ago someone told me that you can get better performance with a virtualized guest at...

IPv6 broken on Debian/Ubuntu O.S.

We observed IPv6 misconfiguration on Debian/Ubuntu configuration images. If you have troubles on...