- Lab
- A Cloud Guru
Tuning a System with Tuned
In this hands-on lab, you will be using `Tuned` to monitor and optimize the performance of a lab system. As part of the lab, you will view a list of available profiles using `tuned-adm`. This same command displays the recommended profile for the lab system and will follow up by showing the currently active profile. For the final part of the lab, you will create a custom `Tuned` profile based on a template. You will modify the custom profile, enable select values, add some system settings, and finally add a custom script. *This course is not approved or sponsored by Red Hat.*
Path Info
Table of Contents
-
Challenge
Review `tuned` Profiles
- List available
tuned
profiles. - Run the appropriate
tuned
command to view the recommended profile. - Execute the appropriate
tuned
command to display the active profile. - View the
tuned.conf
file for the active profile.
- List available
-
Challenge
Check Current System Configuration Details
- Use
sysctl
to check the IPv4 and IPv6 forwarding values. - Check the
/tmp
directory for atuned.txt
log. - Launch
PowerTOP
to review the recommended tunables.- Review the list of entries under the
Tunables
tab.
- Review the list of entries under the
- Use
-
Challenge
Create a Custom `tuned` Profile
- Create a custom profile directory called
it_profile
.- The profile will be created in the
/etc/tuned
directory.
- The profile will be created in the
- Copy the configuration files provided by the senior architect into the new directory.
- The source directory for the files is
~/scripts/pt_profile/
.
- The source directory for the files is
- Edit the configuration file, making the following changes.
- In the
[sysctl]
section, enable IPv4 and IPv6 forwarding:net.ipv4.conf.all.forwarding = 1
net.ipv6.conf.all.forwarding = 1
- In the
[sysfs]
section, enable the first 2 entries:- Runtime PM for I2C Adapter i2c-0 (SMBus PIIX4 adapter at b100)
- Runtime PM for PCI Device Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
- At the end of the file, add a
[script]
section and call thetuned.sh
script from the cloud_user's scripts directory:script=/home/cloud_user/scripts/tuned.sh
- In the
- Create a custom profile directory called
-
Challenge
Enable and Validate the Custom Profile
- Using the appropriate
tuned
command, enable the profile. - Verify the profile has been loaded and settings applied using the appropriate
tuned
command. - Validate the changes on the system.
- Confirm IPv4 and IPv6 forwarding has been enabled.
- Check the
/tmp
directory to determine if atuned.txt
log file was created. - Launch
PowerTOP
, check theTunables
tab and confirm the I2C Adapter and PCI Device values have been corrected.
- Using the appropriate
-
Challenge
Reboot the Lab and Confirm Changes Persist
- Verify the custom profile is active.
- Confirm IPv4 and IPv6 forwarding are still enabled.
- Check the
/tmp
directory to determine if atuned.txt
log file was created. - Launch
PowerTOP
, check theTunables
tab, and confirm the I2C Adapter and PCI Device values are still corrected.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.