From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
# Check that you have {{package|tuned|tuned package}} version 2 installed: | # Check that you have {{package|tuned|tuned package}} version 2 installed: | ||
#:<pre>$ rpm -q tuned</pre> | #:<pre>$ rpm -q tuned</pre> | ||
#:There must be installed tuned version 2 (not 1). | #:There must be installed tuned version 2 (not 1) and tuned-utils subpackage. | ||
#* If not install it: | #* If not install it: | ||
#:<pre># yum install tuned</pre> | #:<pre># yum install tuned tuned-utils</pre> | ||
|actions= | |actions= | ||
# Start tuned (via systemd): | # Start tuned (via systemd): | ||
Line 17: | Line 17: | ||
#:<pre># tuned-adm active</pre> | #:<pre># tuned-adm active</pre> | ||
# Try several other profiles. | # Try several other profiles. | ||
# Try to generate tuned profile from powertop's suggestions: | |||
#:<pre># powetop2tuned test-profile</pre> | |||
#: 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: | |||
#:<pre># tuned-adm profile test-profile</pre> | |||
# Switch back to ''balanced'' profile: | |||
#:<pre># tuned-adm profile balanced</pre> | |||
# Remove generated profile: | |||
#:<pre># rm -rf /etc/tuned/test-profile</pre> | |||
# When done switch tuned completely off by: | # When done switch tuned completely off by: | ||
#:<pre># systemctl stop tuned.service</pre> | #:<pre># systemctl stop tuned.service</pre> | ||
Line 23: | Line 32: | ||
|results= | |results= | ||
# No errors while switching profiles. | # No errors while switching / generating profiles. | ||
# No left tuned process when switched off. | # No left tuned process when switched off. | ||
}} | }} | ||
[[Category:Power_Management_Test_Cases]] | [[Category:Power_Management_Test_Cases]] |
Revision as of 17:18, 3 April 2012
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 installed:$ rpm -q tuned
- There must be installed tuned version 2 (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
- 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:
# powetop2tuned 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 tuned
Expected Results
- No errors while switching / generating profiles.
- No left tuned process when switched off.