From Fedora Project Wiki

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests the basic functionality of [http://fedorahosted.org/tuned tuned tool]. This tool can statically and dynamically tune your system according to selected profile.
|description=This test case tests the basic functionality of [http://fedorahosted.org/tuned tuned] tool. This tool can statically and dynamically tune your system according to selected profile.
|setup=
|setup=
# Check that you have {{package|tuned|tuned package}} version 2 or newer installed:
# Check that you have {{package|tuned|tuned package}} version 2 or newer installed:
Line 11: Line 11:
#:<pre># systemctl start tuned.service</pre>
#:<pre># systemctl start tuned.service</pre>
# List all available profiles:
# List all available profiles:
#:<pre># tuned-adm list</pre>
# Let tuned to recommend you the best profile for your system:
#:<pre># tuned-adm recommend</pre>
#:<pre># tuned-adm list</pre>
#:<pre># tuned-adm list</pre>
# Try to switch between profiles, e.g. for ''powersave'' profile:
# Try to switch between profiles, e.g. for ''powersave'' profile:
Line 16: Line 19:
# Check if the profile was really set by:
# Check if the profile was really set by:
#:<pre># tuned-adm active</pre>
#:<pre># tuned-adm active</pre>
# Try several other profiles.
# Try several other profiles, you can use the:
#:<pre># pmtd-selinux-test</pre>
#: to automatically go through all available (installed) profiles in a loop and output SELinux AVCs.
# Try to generate tuned profile from powertop's suggestions:
# Try to generate tuned profile from powertop's suggestions:
#:<pre># powertop2tuned test-profile</pre>
#:<pre># powertop2tuned test-profile</pre>
Line 33: Line 38:
|results=
|results=
# No errors while switching / generating profiles.
# No errors while switching / generating profiles.
# No SELinux AVCs.
#:* In case there are some SELinux AVCs (they look like the example bellow, please file a bug on component selinux-policy:
#:*:<pre>type=SYSCALL msg=audit(10/10/2012 08:11:23.095:165) : arch=x86_64 syscall=statfs success=no exit=-13(Permission denied) ...</pre>
# 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).
# No left tuned process when switched off (ksmtuned not counted).
}}
}}


[[Category:Power_Management_Test_Cases]]
[[Category:Power_Management_Test_Cases]]

Latest revision as of 17:21, 15 April 2013

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

  1. Check that you have Package-x-generic-16.pngtuned 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

  1. Start tuned (via systemd):
    # systemctl start tuned.service
  2. List all available profiles:
    # tuned-adm list
  3. Let tuned to recommend you the best profile for your system:
    # tuned-adm recommend
    # tuned-adm list
  4. Try to switch between profiles, e.g. for powersave profile:
    # tuned-adm profile powersave
  5. Check if the profile was really set by:
    # tuned-adm active
  6. Try several other profiles, you can use the:
    # pmtd-selinux-test
    to automatically go through all available (installed) profiles in a loop and output SELinux AVCs.
  7. 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.
  8. Try to switch to generated profile:
    # tuned-adm profile test-profile
  9. Switch back to balanced profile:
    # tuned-adm profile balanced
  10. Remove generated profile:
    # rm -rf /etc/tuned/test-profile
  11. When done switch tuned completely off by:
    # systemctl stop tuned.service
  12. Check if the tuned process is not left running by:
    # pgrep -l tuned

Expected Results

  1. No errors while switching / generating profiles.
  2. No SELinux AVCs.
    • In case there are some SELinux AVCs (they look like the example bellow, please file a bug on component selinux-policy:
      type=SYSCALL msg=audit(10/10/2012 08:11:23.095:165) : arch=x86_64 syscall=statfs success=no exit=-13(Permission denied) ...
  3. 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).
  4. No left tuned process when switched off (ksmtuned not counted).