Modify an existing TuneD profile

You can modify the parameters of an existing profile to suit your custom requirements. A modified child profile can be created based on an existing TuneD profile.

Before you begin

Procedure

  1. In the /etc/tuned/profiles directory, create a new directory named the same as the profile that you want to create:
    # mkdir /etc/tuned/profiles/modified-profile
  2. In the new directory, create a file named tuned.conf, and set the [main] section as follows:
    [main]
    include=parent-profile

    Replace parent-profile with the name of the profile you are modifying, for example: throughput-performance

  3. Include your profile modifications. For example, to lower swappiness in the throughput-performance profile, change the value of vm.swappiness to 5, instead of the default 10, use:
    [main]
    include=throughput-performance
    
    [sysctl]
    vm.swappiness=5
  4. Activate the profile.
    # tuned-adm profile modified-profile

Results

  • View the profile is active and applied:
    $ tuned-adm active
    Current active profile: modified-profile
    $ tuned-adm verify
    Verification succeeded, current system settings match the preset profile. See tuned log file ('/var/log/tuned/tuned.log') for details.