KVM Tweaks for CentOS Печать

  • 1

Introduction

In this article, we will explain to you tweaks for CentOS 6 and 7 KVM VPS. These configurations will help you to get the best performance for your VPS by following this article.

Prerequisites

You will need:

  • VPS running CentOS


CentOS 6 x64

  • Install tuned service by running this command:

yum -y install tuned

  • Use chkconfig to turn on tuned service:

chkconfig tuned on

  • Now configure the tuned service to optimize systems running as a virtual guest:

tuned-adm profile virtual-guest



Mount Options

  • Add the following options to your root partition in /etc/fstab:

noatime,discard,barrier=0

Packaging

  • Install the epel-release package in order to allow installation of common packages not including within the default repositories:

yum -y install epel-release


CentOS 7 x64

 

  • Install the tuned service by running this command:

yum -y install tuned

  • Start and enable tuned service:

systemctl enable tuned
systemctl start tuned

  • Now configure the tuned service to optimize systems running as a virtual guest:

tuned-adm profile virtual-guest



Mount Options

  • Add the following options to your root partition in /etc/fstab:

noatime,discard,barrier=0


Packaging

  • Install the epel-release package in order to allow installation of common packages not including within the default repositories:

yum -y install epel-release

Conclusion

You have successfully tweaked your CentOS KVM VPS. This should boost your disk I/O speed 4-5 times more than the default installation allows.


Помог ли вам данный ответ?

« Назад