Tuning a System with Tuned

45 minutes
  • 5 Learning Objectives

About this Hands-on Lab

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
  1. List available tuned profiles.
  2. Run the appropriate tuned command to view the recommended profile.
  3. Execute the appropriate tuned command to display the active profile.
  4. View the tuned.conf file for the active profile.
Check Current System Configuration Details
  1. Use sysctl to check the IPv4 and IPv6 forwarding values.
  2. Check the /tmp directory for a tuned.txt log.
  3. Launch PowerTOP to review the recommended tunables.
    • Review the list of entries under the Tunables tab.
Create a Custom `tuned` Profile
  1. Create a custom profile directory called it_profile.
    • The profile will be created in the /etc/tuned directory.
  2. Copy the configuration files provided by the senior architect into the new directory.
    • The source directory for the files is ~/scripts/pt_profile/.
  3. 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 the tuned.sh script from the cloud_user’s scripts directory:
Enable and Validate the Custom Profile
  1. Using the appropriate tuned command, enable the profile.
  2. Verify the profile has been loaded and settings applied using the appropriate tuned command.
  3. Validate the changes on the system.
    • Confirm IPv4 and IPv6 forwarding has been enabled.
    • Check the /tmp directory to determine if a tuned.txt log file was created.
    • Launch PowerTOP, check the Tunables tab and confirm the I2C Adapter and PCI Device values have been corrected.
Reboot the Lab and Confirm Changes Persist
  1. Verify the custom profile is active.
  2. Confirm IPv4 and IPv6 forwarding are still enabled.
  3. Check the /tmp directory to determine if a tuned.txt log file was created.
  4. Launch PowerTOP, check the Tunables tab, and confirm the I2C Adapter and PCI Device values are still corrected.

Additional Resources

You are a Linux System Administrator working for a software development company. The senior architect has identified the new configuration policies and leadership has approved the changes. Your manager has assigned you the task to identifying the best method for applying and managing the changes to all systems. After some research, you have determined that Tuned may be the best option for the request. You are in the process of creating and building the custom profile to deploy the changes provided by the architect. Once completed and validated, the profile can be pushed to all the identified systems.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?