KVM Optimization Guide (Linux)

Network optimization:

If you're running Linux on your PotPocAck Cloud VPS, here are some tweaks that will improve your network speed, these commands should be ran once you've logged in via ssh:

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

We recommend that you use the following DNS Servers from Google:




Optimizing Disk I/O:

Our templates by default will use the Virtio disk driver, however, if you install from a Linux ISO make sure to change to this driver to see I/O improvements, you can do this from SolusVM under Settings, simply change the disk driver from IDE to Virtio, you'll be required to power cycle your Cloud VPS for changes to take effect.

Additionally, if you're running Linux the following commands will improve I/O performance:


echo 0 > /sys/block/vda/queue/rotational
echo 0 > /sys/block/vda/queue/rq_affinity
echo noop > /sys/block/vda/queue/scheduler
echo "echo 0 > /sys/block/vda/queue/rotational" >> /etc/rc.local
echo "echo 0 > /sys/block/vda/queue/rq_affinity" >> /etc/rc.local
echo "echo noop > /sys/block/vda/queue/scheduler" >> /etc/rc.local
echo 'vm.swappiness=5' >> /etc/sysctl.conf
echo 'vm.vfs_cache_pressure=50' >> /etc/sysctl.conf
sysctl -p

  • kvm optimization, linux optimization, linux tweaking
  • 22 Users Found This Useful
Was this answer helpful?

Related Articles

How to configure SIP account in Groundwire

This guide will help you configure your newly assigned SIP account in your iPhone or Android...

How to reinstall the OS of the VPS from SolusVM

Here is a simple guide with images that show how to easily do a reinstallation of the OS on your...