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 Utenti hanno trovato utile questa risposta
Hai trovato questa risposta utile?

Articoli Correlati

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...

Migrare MyCore KVM/LXC Servers in una nuova Region

I clienti possono avere necessità di migrare MyCore KVM/LXC tra le region per varie motivazioni....

Performance LXC vs KVM vs Server Dedicato

Se qualche anno fa mi avessero detto che sarebbe stato possibile ottenere migliori prestazioni su...

IPv6 broken on Debian/Ubuntu O.S.

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