From Fedora Project Wiki
Description
This test case tests the basic functionality of tuned tool. This tool can statically and dynamically tune your system according to selected profile.
Setup
- Check that you have
tuned package
version 2 or newer installed:$ rpm -q tuned
- There must be installed tuned version 2 or newer (but not 1) and tuned-utils subpackage.
- If not install it:
# yum install tuned tuned-utils
How to test
- Start tuned (via systemd):
# systemctl start tuned.service
- List all available profiles:
# tuned-adm list
- Let tuned to recommend you the best profile for your system:
# tuned-adm recommend
# tuned-adm list
- Try to switch between profiles, e.g. for powersave profile:
# tuned-adm profile powersave
- Check if the profile was really set by:
# tuned-adm active
- Try several other profiles.
- Try to generate tuned profile from powertop's suggestions:
# powertop2tuned test-profile
- In this generated profile all powertop's tunings are initially disabled, you can selectively enable them by editing /etc/tuned/test-profile/script.sh.
- Try to switch to generated profile:
# tuned-adm profile test-profile
- Switch back to balanced profile:
# tuned-adm profile balanced
- Remove generated profile:
# rm -rf /etc/tuned/test-profile
- When done switch tuned completely off by:
# systemctl stop tuned.service
- Check if the tuned process is not left running by:
# pgrep -l tuned
Expected Results
- No errors while switching / generating profiles.
- Tuned should recommend the 'balanced' profile in the most cases on the bare metal, the 'virtual-guest' profile when running in the virtual machine. The rules for selecting the best profile can be customized in the /etc/tuned/recommend.conf (you can use /usr/lib/tuned/recommend.conf as a template, copy it to the /etc/tuned and edit).
- No left tuned process when switched off (ksmtuned not counted).