Performance tuning with tuned and tuned-adm in Redhat and CentOS
The tuned is a dynamic adaptive system tuning daemon running on Redhat or CentOS. It can adapt the operating system to perform better under certain workloads by setting a tuning profile.
1 | [root@vm1 ~]# cat /etc/centos-release |
The tuned-adm command-line tool allows users to switch between different tuning profiles.
1 | [root@vm1 ~]# tuned-adm -h |
To list the available tuning profiles:
1 | [root@vm1 ~]# tuned-adm list |
To check the current active tuning profile:
1 | [root@vm1 ~]# tuned-adm active |
The configuration for each tuning profile can be found in the tuned.conf file under directory /usr/lib/tuned/[tuning profile]/.
1 | [root@vm1 ~]# ls -la /usr/lib/tuned/ |
To examine the tuning parameters for the tuning profile:
1 | [root@vm1 ~]# cat /usr/lib/tuned/balanced/tuned.conf |
To activate a tuning profile,
1 | [root@vm1 ~]# tuned-adm profile [new_profile] |
You can also create your own custom profile by simply copying the existing profile and modifying the parameters accordingly.
1 | [root@vm1 ~]# cp -r /usr/lib/tuned/throughput-performance /usr/lib/tuned/my-throughput-performance |