RHCSA Practical Lab Series β System Performance Tuning
π 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
π Step 4: Apply the Recommended Profile
πΉ 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.
π Step 5: Apply the Recommended Profile
πΉ 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! π