- Author: James Cherti <https://www.jamescherti.com/>
- License: MIT
The ansible-role-tuned Ansible playbook manages the installation and configuration of tuned.
Tuned is a dynamic adaptive system tuning tool used in Linux environments to optimize performance by adjusting various system settings dynamically. It provides pre-defined profiles that target specific use cases, such as high throughput, low latency, and energy saving, and automatically applies these configurations based on system activity.
For high traffic servers or desktop computers, using Tuned is beneficial as it can enhance network throughput and responsiveness by adjusting parameters like CPU frequency scaling, I/O scheduling, and network stack settings. This optimization results in improved performance, reduced latency, and better handling of high loads.
- Install tuned and configure it using the Ansible variables:
tuned_daemon,tuned_dynamic_tuning,tuned_sleep_interval,tuned_update_interval, andtuned_recommend_command. - Activate the specified tuned profile using the
tuned_profilevariable. (When thetuned_profileis not set, the role installs only tuned.) - Supports Debian/Ubuntu and RedHat family based operating systems.
Here is an example of how to use ansible-role-tuned after installing it in the roles/tuned directory:
- hosts: SERVER
roles:
- {role: tuned,
tuned_profile: "throughput-performance"}Copyright (C) 2020-2026 James Cherti.
Distributed under terms of the MIT license.
Other projects by the same author: