Manage Tuning Profiles

LinuxIntermediate
Practice Now

Introduction

As a system administrator, you are responsible for optimizing the performance of the systems under your care. One important aspect of this is managing tuning profiles with tuned, which allows you to customize the system's behavior to meet specific requirements. In this challenge, you will learn how to create a custom tuning profile on a Red Hat Enterprise Linux (RHEL) system.

Create a Custom Tuning Profile

Your first task is to create a new directory for a custom tuning profile and configure it. This profile will inherit settings from the balanced profile and add a custom limit for the maximum number of open files.

Tasks

  • Create a directory for a new custom tuning profile named myprofile.
  • Create a configuration file tuned.conf that includes the balanced profile.
  • Create a limits.conf file to set the maximum number of open files.

Requirements

  • The custom tuning profile directory must be created at /etc/tuned/myprofile.
  • The configuration file /etc/tuned/myprofile/tuned.conf must include the balanced profile.
  • A new file /etc/tuned/myprofile/limits.conf must be created.
  • The limits.conf file must set both the soft and hard limits for nofile (number of open files) to 4096 for all users.
  • All operations that modify files in /etc must be performed with sudo privileges.

Example

After creating the custom tuning profile, the contents of the /etc/tuned/myprofile/tuned.conf file should be:

[main]
include=balanced

The /etc/tuned/myprofile/limits.conf file should contain:

* soft nofile 4096
* hard nofile 4096

Hints

  • Use the sudo mkdir -p command to create the necessary directory structure.
  • Use a text editor like nano to create and edit the configuration files. For example: sudo nano /etc/tuned/myprofile/tuned.conf.
  • Remember to use sudo when creating or editing files in the /etc directory, as these actions require root permissions.

Summary

In this challenge, you have learned how to create a custom tuned profile on a Red Hat Enterprise Linux system. You created a directory for a profile named myprofile, configured it to inherit from the balanced profile, and added a custom setting to increase the maximum number of open files. This skill is fundamental for system administrators who need to tailor system performance to specific application workloads.

✨ Check Solution and Practice