RHCSA Rapid Track
In this exercise, you will tune a server’s performance by activating the tuned service and applying a tuning profile.
Outcomes
You should be able to configure a system to use a tuning profile.
Log in as the student user on workstation using student as the password.
From workstation, run the lab tuning-profiles start command.
The command runs a start script to determine if the servera host is reachable on the network.
[student@workstation ~]$lab tuning-profiles start
From
workstation, use SSH to log in toserveraas thestudentuser. The systems are configured to use SSH keys for authentication, therefore a password is not required.[student@workstation ~]$ssh student@servera...output omitted...[student@servera ~]$Verify that the tuned package is installed, enabled, and started.
Use yum to confirm that the tuned package is installed.
[student@servera ~]$yum list tuned...output omitted... Installed Packagestuned.noarch2.10.0-15.el8 @anacondaThe systemctl is-enabled tuned command shows whether the service is enabled.
[student@servera ~]$systemctl is-enabled tunedenabledThe systemctl is-active tuned command show whether the service is currently running.
[student@servera ~]$systemctl is-active tunedactive
List the available tuning profiles and identify the active profile. If
sudoprompts for a password, enterstudentafter the prompt.[student@servera ~]$sudo tuned-adm list[sudo] password for student:studentAvailable 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-guestChange the current active tuning profile to
powersave, then confirm the results. Ifsudoprompts for a password, enterstudentafter the prompt.Change the current active tuning profile.
[student@servera ~]$sudo tuned-adm profile powersaveConfirm that
powersaveis the active tuning profile.[student@servera ~]$sudo tuned-adm activeCurrent active profile:powersave
Exit from
servera.[student@servera ~]$exitlogout Connection to servera closed. [student@workstation ~]$