Advanced
Searching inHow-to guides
How to search
  • Type the task in your own words (find port, open firewall, disk full) or paste an error message in quotes.
  • Choose "Quick answer" to see only the commands, or an area to stay in one field.
  • "two words" finds the exact phrase.
  • Plain words find names, texts and examples.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search
Try:

How-to 221System · Performance

How to choose a performance profile with tuned

A database server, a VM in the cloud and a laptop want different kernel and power settings: CPU frequency, disk scheduler, swappiness, network buffers. tuned applies a whole set of such settings as one profile and keeps them in place. RHEL ships it by default. This how-to shows the active profile, lets tuned recommend one, switches profiles, and builds a small custom profile on top of a standard one.

  • 5 Lessons
  • 3 Commands

$ run as a normal user# run as root (or with sudo)

221.1

The quick answer

tuned-adm active
tuned-adm recommend
tuned-adm profile virtual-guest
tuned-adm verify

221.2

Step by step

  1. Install and start (RHEL has it; Debian/Ubuntu: apt install tuned): systemctl enable --now tuned.
  2. See the active profile and the recommendation (lines 1–2) — tuned recommends based on the hardware (for example virtual-guest in a VM).
  3. Common profiles — tuned-adm list shows all:
    • virtual-guest — VMs (lower swappiness, throughput settings).
    • throughput-performance — servers with heavy load.
    • latency-performance / network-latency — low latency, more power use.
    • powersave / balanced — laptops, idle machines.
  4. Switch (line 3) — applies at once and stays after reboot.
  5. Check it is really applied (line 4) — verify compares the current system with the profile and reports differences (for example a value someone changed by hand).
  6. Custom profile — keep the standard profile and change only a few values:
/etc/tuned/db-server/tuned.conf
[main]
summary=Database server on a VM
include=virtual-guest
 
[sysctl]
vm.swappiness=5
vm.dirty_ratio=10
 
[vm]
transparent_hugepages=never
tuned-adm profile db-server
  1. Measure — compare the app's response times or throughput before and after; keep the profile only if it helps.

221.3

Check that it worked

tuned-adm active prints Current active profile: db-server; tuned-adm verify says Verification succeeded, current system settings match the preset profile; sysctl vm.swappiness prints 5; after a reboot the profile is still active.

221.4

Common problems

ProblemCauseFix
Cannot talk to TuneD daemonService not running.systemctl enable --now tuned.
verify failsA value was changed by hand or by another tool.Find the other setting (sysctl file, script); keep one source.
sysctl file values overwrittentuned and /etc/sysctl.d set the same key.Set each key in one place only.
No change in a containerContainers cannot change most host settings.Run tuned on the host.
Custom profile not listedWrong folder or file name./etc/tuned/NAME/tuned.conf.
Worse performanceWrong profile for the workload.Measure; go back with tuned-adm profile or recommend.

221.5

Go further

1What does tuned-adm recommend do?

It suggests the profile that fits the hardware, for example virtual-guest inside a VM.

2How do you change a few values without losing a standard profile?

Create a custom profile with include= of the standard profile and only the changed values.

All commands in this chapter