SKVM Performance Tweaks

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

For a SolusVM OS Template Install
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

We are currently re-evaluating the commands above. Results seem to vary widely. Use at your own discretion.

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.
  • 44 Users Found This Useful
Was this answer helpful?

Related Articles

cPanel Reverts to Trial Mode

If your cPanel install on a KVM VPS reverts to trial mode, please see this link:...

My KVM VPS Fails to Boot

If your KVM VPS refuses to boot, and particularly if VNC refuses to load, make sure you have...

How do I verify my cPanel/WHM license?

Log into your VPS with SSH and run:/usr/local/cpanel/cpkeyclt

Where is the IRC channel?

You can join our IRC channel at #ramnode on with your IRC client. You can also...

How do I order more bandwidth?

To order extra bandwidth, log into the Client Area. Go to Services > View Available...