From Fedora Project Wiki

m (Minor wiki tweaks)
Line 9: Line 9:
{{admon/important|System must remain idle|Please do not do any other work on the system while running this test, otherwise power usage figures may be inaccurate.}}  
{{admon/important|System must remain idle|Please do not do any other work on the system while running this test, otherwise power usage figures may be inaccurate.}}  
# Make sure laptop battery is fully charged.
# Make sure laptop battery is fully charged.
# Reboot laptop to single user mode.
# Reboot laptop to single user mode. Refer to the [http://docs.fedoraproject.org/install-guide/f{{FedoraVersion}}/en-US/html/s1-rescuemode-booting-single.html Install guide] for more information about single user mode
# Unplug AC power from the laptop.
# '''Unplug''' AC power from the laptop.
# run: <code>for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo max_performance > $i; done</code>
# Enable max link performance using the following command:
# run: <code>powertop -d -t 60 {{!}} grep 'Power usage'</code>
#: <pre>for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo max_performance > $i; done</pre>
# Record power usage using the following command:
#: <pre>powertop -d -t 60 | grep 'Power usage'</pre>
# Record the ACPI power usage estimate printed in Watts(W). This will be the power consumption at the max_performance setting.
# Record the ACPI power usage estimate printed in Watts(W). This will be the power consumption at the max_performance setting.
# run: <code>for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo medium_power > $i; done</code>
# <<FIXME>>
# run: <code>powertop -d -t 60 {{!}} grep 'Power usage'</code>
#: <pre>for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo medium_power > $i; done</pre>
# <<FIXME>>
#: <pre>powertop -d -t 60 | grep 'Power usage'</pre>
# Record the ACPI power usage estimate printed in Watts(W). This will be the power consumption at the medium_power setting.
# Record the ACPI power usage estimate printed in Watts(W). This will be the power consumption at the medium_power setting.
# run: <code>for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo min_power > $i; done</code>
# <<FIXME>>
# run: <code>powertop -d -t 60 {{!}} grep 'Power usage'</code>
#: <pre>for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo min_power > $i; done</pre>
# <<FIXME>>
#: <pre>powertop -d -t 60 | grep 'Power usage'</pre>
# Record the ACPI power usage estimate printed in Watts(W). This will be the power consumption at the min_power setting.
# Record the ACPI power usage estimate printed in Watts(W). This will be the power consumption at the min_power setting.


Line 28: Line 34:
# You may return your system to its default state by running the command in step 4 again or just reboot.
# You may return your system to its default state by running the command in step 4 again or just reboot.
}}
}}
<references/>


[[Category:Power Management Test Cases]]
[[Category:Power Management Test Cases]]

Revision as of 19:49, 21 October 2009

Description

A simple test to determine effect of SATA link power management settings on power consumption.
Privileges: Root
Runlevel: singleuser
ETA: 10 minutes


How to test

Note.png
Live Image Friendly
You may run this test case using the USB or CD live image if you install the powertop utility with yum install powertop
Stop (medium size).png
Hotplug issues
SATA link power states other than max_performance may cause problems with hotplugable external SATA ports and devices attached to those ports may have problems. Internal devices should be unaffected.
Important.png
System must remain idle
Please do not do any other work on the system while running this test, otherwise power usage figures may be inaccurate.
  1. Make sure laptop battery is fully charged.
  2. Reboot laptop to single user mode. Refer to the Install guide for more information about single user mode
  3. Unplug AC power from the laptop.
  4. Enable max link performance using the following command:
    for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo max_performance > $i; done
  5. Record power usage using the following command:
    powertop -d -t 60 | grep 'Power usage'
  6. Record the ACPI power usage estimate printed in Watts(W). This will be the power consumption at the max_performance setting.
  7. <<FIXME>>
    for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo medium_power > $i; done
  8. <<FIXME>>
    powertop -d -t 60 | grep 'Power usage'
  9. Record the ACPI power usage estimate printed in Watts(W). This will be the power consumption at the medium_power setting.
  10. <<FIXME>>
    for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo min_power > $i; done
  11. <<FIXME>>
    powertop -d -t 60 | grep 'Power usage'
  12. Record the ACPI power usage estimate printed in Watts(W). This will be the power consumption at the min_power setting.

Expected Results

Please add the following to the results table.

  1. Power consumption for all three link power settings, max_performance, medium_power, min_power.
  2. Your smolt system profile. (no need to resubmit if you have already for one of the other tests)
  3. Please open bugs if you notice any abnormal behavior such as system hangs, kernel oops messages, serious IO performance degradation.
  4. You may return your system to its default state by running the command in step 4 again or just reboot.