Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

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.*

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Advanced
Duration
Clock icon 45m
Published
Clock icon Jun 30, 2021

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    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.
  2. Challenge

    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.
  3. Challenge

    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: script=/home/cloud_user/scripts/tuned.sh
  4. Challenge

    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.
  5. Challenge

    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.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans