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.*
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- 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
- 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
- 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
- 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
- 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.