KVM Tweaks for CentOS

Introduction

In this article, we will explain to you KVM tweaks for Debian and Ubuntu. So we will help you to get the best performance for your VPS by following this article. Below are various tweaks which can be made to your system with CentOS installed. These tweaks will provide additional performance and/or stability.

Prerequisites

You will need:

  • VPS running CentOS


CentOS 6 x64

  • Install tuned service 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 tuned service 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.

  • 1 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

List of Available Installation ISOs and Templates for KVM VPS

ISO Operating Systems Arch Linux Boot2Docker CentOS 5 CentOS 6 CentOS 7 ClearOS 7 CoreOS...

What is the difference between LXC and KVM?

LXC and KVM virtualization technologies are both great in their own respects. There are some...

How to Begin Installation from ISO

Introduction In this article, we will explain How To  Begin Installation from ISO. LaunchVPS...

How to Schedule Automated VPS Image Backups

Introduction In this article, we will explain to you how to Schedule Automated VPS Image...

How to Perform a Manual VPS Image Backup

Introduction In this article, we will explain how to Perform a Manual VPS Image Backup. Image...