KVM Optimization Guide

Network optimization:

If you're running Linux on your Owned-Networks 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:

IPv4:
8.8.8.8
8.8.4.4

IPv6:
2001:4860:4860::8888
2001:4860:4860::8844

  

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







  • 56 Users Found This Useful
Was this answer helpful?

Related Articles

ownCloud Auto Install Script on Debian 7

Here is an easy way to install ownCloud on Debian 7 with a script, but first, for those who...

NGINX – Allow access only to certain IPs

Nginx has a nice module that not many people know about, it basically enables us...

How to configure NTP client in CentOS

What's NTP? NTP stands for Network Time Protocol, and it is an Internet protocol used to...

Initial Server Setup on CentOS 6

Here are some recommendations to setup your VPS or server when you first get it, some of these...

How To Install nginx on CentOS

What is NGINX? Nginx (pronounced "engine-x") is an open source reverse proxy server for HTTP,...