Bug 1143014
| Summary: | RFE: Please update to 2.5+ or backport --auto-tune feature | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Adam Miller <admiller> | ||||
| Component: | powertop | Assignee: | Jaroslav Škarvada <jskarvad> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Jeff Bastian <jbastian> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.0 | CC: | emcnabb | ||||
| Target Milestone: | rc | Keywords: | FutureFeature, Patch | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | powertop-2.3-9.el7 | Doc Type: | Enhancement | ||||
| Doc Text: |
Feature:
PowerTOP versions 2.5+ has one-shot mode allowing it to apply all its known low power consumption tuning.
Reason:
This may simplify tuning the system for low power consumption.
Result:
The feature was backported from upstream and one shot systemd service file was added to the package. But it may be dangerous to use this feature with some HW - e.g. the keyboard or mouse may stop responding or start lagging if USB auto suspend is not correctly supported by the HW. Other problems or performance drop may also arise. It may be safer to fine tune the PowerTOP suggestions by using powertop2tuned tool.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-11-19 08:00:21 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Adam Miller
2014-09-17 17:28:02 UTC
FYI there is currently oneshot powertop.service in F21+ (powertop-2.7-1) handling the --auto-tune. It would be nice to have this update in RHEL-7. There is also powertop2tuned utility in tuned-utils package (currently in RHEL) which can convert powertop tunings into tuned profile. This allows you to selectively enable individual powertop tunings (e.g. not enable USB PM for mouse). Created attachment 1024287 [details]
Backported fix
QE results: Verified
:::::::::::::::
:: auto-tune ::
:::::::::::::::
[root@intel-wildcatpass-02 ~]# rpm -q powertop
powertop-2.3-9.el7.x86_64
[root@intel-wildcatpass-02 ~]# powertop --help | grep auto
--auto-tune Sets all tunable options to their GOOD setting
[root@intel-wildcatpass-02 ~]# powertop --html
Loaded 0 prior measurements
Preparing to take measurements
Taking 1 measurement(s) for a duration of 20 second(s) each.
PowerTOP outputing using base filename powertop.html
[root@intel-wildcatpass-02 ~]# lynx --dump powertop.html
...
Software Settings in need of Tuning
Description Script
Enable SATA link power Managmenet for host0 echo 'min_power' >
'/sys/class/scsi_host/host0/link_power_management_policy';
VM writeback timeout echo '1500' >
'/proc/sys/vm/dirty_writeback_centisecs';
NMI watchdog should be turned off echo '0' >
'/proc/sys/kernel/nmi_watchdog';
Enable SATA link power Managmenet for host4 echo 'min_power' >
'/sys/class/scsi_host/host4/link_power_management_policy';
Enable SATA link power Managmenet for host5 echo 'min_power' >
'/sys/class/scsi_host/host5/link_power_management_policy';
...
[root@intel-wildcatpass-02 ~]# powertop --auto-tune
Loaded 0 prior measurements
Leaving PowerTOP
[root@intel-wildcatpass-02 ~]# powertop --html
Loaded 0 prior measurements
Preparing to take measurements
Taking 1 measurement(s) for a duration of 20 second(s) each.
PowerTOP outputing using base filename powertop.html
[root@intel-wildcatpass-02 ~]# lynx --dump powertop.html
...
Optimal Tuned Software Settings
Description
VM writeback timeout
Enable SATA link power Managmenet for host4
Enable SATA link power Managmenet for host5
Enable SATA link power Managmenet for host3
Enable SATA link power Managmenet for host1
NMI watchdog should be turned off
Enable SATA link power Managmenet for host0
Enable SATA link power Managmenet for host2
...
:::::::::::::::::::::::::
:: systemd integration ::
:::::::::::::::::::::::::
[root@intel-wildcatpass-02 ~]# rpm -ql powertop | grep systemd
/usr/lib/systemd/system/powertop.service
[root@intel-wildcatpass-02 ~]# cat /usr/lib/systemd/system/powertop.service
[Unit]
Description=PowerTOP autotuner
[Service]
Type=oneshot
ExecStart=/usr/sbin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
[root@intel-wildcatpass-02 ~]# systemctl status powertop.service
● powertop.service - PowerTOP autotuner
Loaded: loaded (/usr/lib/systemd/system/powertop.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@intel-wildcatpass-02 ~]# systemctl enable powertop.service
Created symlink from /etc/systemd/system/multi-user.target.wants/powertop.service to /usr/lib/systemd/system/powertop.service.
[root@intel-wildcatpass-02 ~]# reboot
...
...
...
[root@intel-wildcatpass-02 ~]# uptime
18:03:55 up 0 min, 1 user, load average: 0.12, 0.03, 0.01
[root@intel-wildcatpass-02 ~]# systemctl status -l powertop.service
● powertop.service - PowerTOP autotuner
Loaded: loaded (/usr/lib/systemd/system/powertop.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mon 2015-08-17 18:03:38 EDT; 34s ago
Process: 1818 ExecStart=/usr/sbin/powertop --auto-tune (code=exited, status=0/SUCCESS)
Main PID: 1818 (code=exited, status=0/SUCCESS)
Aug 17 18:03:34 intel-wildcatpass-02.lab.eng.rdu.redhat.com systemd[1]: Starting PowerTOP autotuner...
Aug 17 18:03:34 intel-wildcatpass-02.lab.eng.rdu.redhat.com powertop[1818]: Loaded 0 prior measurements
Aug 17 18:03:38 intel-wildcatpass-02.lab.eng.rdu.redhat.com powertop[1818]: Leaving PowerTOP
Aug 17 18:03:38 intel-wildcatpass-02.lab.eng.rdu.redhat.com systemd[1]: Started PowerTOP autotuner.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2225.html |