3 Reviewing TuneD Global Settings

This following section provides an overview of global settings that configure the tuned service.

TuneD Global Configuration File

TuneD can be configured globally by editing the /etc/tuned/tuned-main.conf file. The following sample provides an example configuration:

# Global tuned configuration file.

# Whether to use daemon. Without daemon it just applies tuning. It is
# not recommended, because many functions don't work without daemon,
# e.g. there will be no D-Bus, no rollback of settings, no hotplug,
# no dynamic tuning, ...
daemon = 1

# Dynamicaly tune devices, if disabled only static tuning will be used.
dynamic_tuning = 0

# How long to sleep before checking for events (in seconds)
# higher number means lower overhead but longer response time.
sleep_interval = 1

# Update interval for dynamic tunings (in seconds).
# It must be multiply of the sleep_interval.
update_interval = 10

# Recommend functionality, if disabled "recommend" command will be not
# available in CLI, daemon will not parse recommend.conf but will return
# one hardcoded profile (by default "balanced").
recommend_command = 1
...

The following are sample cases for which you can configure parameters in /etc/tuned/tuned-main.conf:

Selecting Static or Dynamic Tuning

With the dynamic_tuning parameter, you can select whether system tuning is static or dynamic.

By default, static tuning is operative in the system. Static tuning applies settings that have been predefined for sysctl and sysfs commands, or those that are set for configuration tools at the moment these tools are activated. Thereafter, no more tuning is performed.

Dynamic tuning instead is performed continuously. TuneD monitors the system at intervals throughout the system's up time. Based on the information gathered at a specific interval, TuneD optimizes the system. The interval at which TuneD monitors and optimizes components is configured by the value of the uptime_interval, which by default is set to 10 seconds.

Selecting Daemon or No-Daemon Mode

With the daemon parameter, you can set the mode for system tuning.

By default, the functionalities of TuneD are active if the daemon is running. If TuneD is switched to run with the daemon disabled, then TuneD applies the profile settings and then exits. This mode isn't recommended because some TuneD functionalities, such as compatibility with DBus, hotplugging, and rollback of settings, are absent if the daemon is disabled.