Tuned – automatic performance tuning of Linux servers

Linux Kernel offers ‘tuned’ feature to automatically fine tune the Linux servers based on predefined profiles.

Installation of ‘tuned’ daemon

#yum install tuned

Start the service:

#systemctl start tuned

Here, I used two different Linux servers

1. Server (cent7-host-01) is Physical server (laptop) with CentOS7 Operating system
[root@cent7-host-01 ~]# dmidecode | grep -i manufacture
Manufacturer: LENOVO
Manufacturer: Intel(R) Corporation
Manufacturer: Intel Corp.
[root@cent7-host-01 ~]#

2. Server (centos7) is Virtual machine (VM) virtual box with CentOS7 Operating system

List out available ‘tuned profiles’ in our server by executing the below command
# tuned-adm list

[root@centos7 ~]# tuned-adm list
Available profiles:
- balanced - General non-specialized tuned profile
- desktop - Optimize for the desktop use-case
- latency-performance - Optimize for deterministic performance at the cost of increased power consumption
- network-latency - Optimize for deterministic performance at the cost of increased power consumption, focused on low latency network performance
- network-throughput - Optimize for streaming network throughput, generally only necessary on older CPUs or 40G+ networks
- powersave - Optimize for low power consumption
- throughput-performance - Broadly applicable tuning that provides excellent performance across a variety of common server workloads
- virtual-guest - Optimize for running inside a virtual guest
- virtual-host - Optimize for running KVM guests
Current active profile: virtual-guest
[root@centos7 ~]#

When listing the active profile on physical server (cent7-host-01), it is ‘Balanced’ profile

[root@cent7-host-01 ~]# tuned-adm active
Current active profile: balanced
[root@cent7-host-01 ~]#

When listing the active profile on VM server (centos7), it is ‘virtual-host’

[root@centos7 ~]# tuned-adm active
Current active profile: virtual-host
[root@centos7 ~]#

Changing Tuning profile:

We can alter the tuning profile using the below command,

# tuned-adm profile virtual-host

[root@centos7 ~]# tuned-adm active
Current active profile: virtual-guest
[root@centos7 ~]# tuned-adm profile virtual-host
[root@centos7 ~]# tuned-adm active
Current active profile: virtual-host
[root@centos7 ~]#

Above screen-shot shows that we have changed the ‘tuned’ profile from ‘virtual-guest’ to ‘virtual-host’ in VM server (centos7)

In physical server(cent7-host-01), we have changed the profile from ‘balanced’ to ‘desktop’ as below,

[root@cent7-host-01 ~]# tuned-adm active
Current active profile: balanced
[root@cent7-host-01 ~]# tuned-adm profile desktop
[root@cent7-host-01 ~]# tuned-adm active
Current active profile: desktop
[root@cent7-host-01 ~]#

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: