RHCSA Practical Lab Series – System Performance Tuning

Expertise in Cloud, Networking & DevOps
Photo by Daniel Josef / Unsplash

πŸ” Lab 21: Configuring System Performance Optimization with tuned

πŸ“Œ Objective

In this lab, you will:
βœ” Install and configure the tuned performance tuning service
βœ” Enable and restart the tuned service
βœ” Identify the current active tuning profile
βœ” Apply the recommended performance profile


πŸ“Œ Step 1: Install the tuned Package

πŸ”Ή Ensure tuned is installed:

[root@node2 ~]# yum -y install tuned

βœ… Expected Output:

Installed: tuned-2.19.0-1.el9.x86_64

πŸ“Œ Step 2: Enable and Start tuned Service

πŸ”Ή Enable tuned to start on boot:

[root@node2 ~]# systemctl enable tuned

πŸ”Ή Start or restart tuned service:

[root@node2 ~]# systemctl restart tuned

πŸ”Ή Verify the service status:

[root@node2 ~]# systemctl status tuned

βœ… Expected Output:

● tuned.service - Dynamic system tuning daemon
   Loaded: loaded (/usr/lib/systemd/system/tuned.service; enabled; vendor preset: enabled)
   Active: active (running)

πŸ“Œ Step 3: Check Active Performance Profile

πŸ”Ή Display the currently active profile:

[root@node2 ~]# tuned-adm active

βœ… Example Output:

Current active profile: balanced

πŸ”Ή List all available tuning profiles:

[root@node2 ~]# tuned-adm list

βœ… Example Output:

Available profiles:
- balanced
- desktop
- latency-performance
- network-latency
- network-throughput
- virtual-guest
- virtual-host

πŸ”Ή Find the best recommended profile for your system:

[root@node2 ~]# tuned-adm recommend

βœ… Example Output:

virtual-guest

πŸ“Œ The system suggests using the virtual-guest profile for optimization.


πŸ”Ή Apply the suggested profile (e.g., virtual-guest):

[root@node2 ~]# tuned-adm profile virtual-guest

πŸ”Ή Verify the profile is active:

[root@node2 ~]# tuned-adm active

βœ… Expected Output:

Current active profile: virtual-guest

πŸ“Œ Step 6: Verify the Performance Tuning Configuration

πŸ”Ή Check if tuned is running after reboot:

[root@node2 ~]# reboot

πŸ”Ή After reboot, verify tuned is still enabled and active:

[root@node2 ~]# systemctl status tuned
[root@node2 ~]# tuned-adm active

βœ… Ensure the profile remains virtual-guest.


πŸ“Œ Troubleshooting Tips

πŸ”Ή If tuned fails to start, reinstall the package:

[root@node2 ~]# yum reinstall tuned -y

πŸ”Ή To revert to the default profile (balanced):

[root@node2 ~]# tuned-adm profile balanced

πŸ”Ή To manually test the effect of a profile change:

[root@node2 ~]# tuned-adm verify

βœ… Final Summary

βœ” Installed and started the tuned performance tuning service
βœ” Identified the active profile and recommended profile
βœ” Applied the virtual-guest profile
βœ” Ensured changes persist after reboot


πŸ“© Subscribe for more RHCSA hands-on labs and exam-focused tutorials! πŸš€


Read more