Bug 1003967
Summary: | powertop can't generate tuned profile | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Martin <mholec> | ||||||||
Component: | powertop | Assignee: | Jaroslav Škarvada <jskarvad> | ||||||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 22 | CC: | d.fedora, johnny, jskarvad, karl+rhbugzilla, kcleveng, metherid, msanchez, pbrobinson, rfranr, shawn.starr, tpelka | ||||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2015-07-28 08:40:30 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
Martin
2013-09-03 15:12:11 UTC
This error persists on Fedora 20: powertop-2.5-2.fc20.x86_64 tuned-utils-2.3.0-3.fc20.noarch (In reply to Dominik Grafenhofer from comment #2) > This error persists on Fedora 20: > > powertop-2.5-2.fc20.x86_64 > tuned-utils-2.3.0-3.fc20.noarch Please provide output of: # LANG=C powertop --html # LANG=C powertop --html Loaded 0 prior measurements RAPL device for cpu 0 RAPL device for cpu 0 RAPL device for cpu 0 Preparing to take measurements unknown op '{' Taking 1 measurement(s) for a duration of 20 second(s) each. PowerTOP outputing using base filename powertop.html (In reply to Dominik Grafenhofer from comment #4) > # LANG=C powertop --html > > Loaded 0 prior measurements > RAPL device for cpu 0 > RAPL device for cpu 0 > RAPL device for cpu 0 > Preparing to take measurements > unknown op '{' > Taking 1 measurement(s) for a duration of 20 second(s) each. > PowerTOP outputing using base filename powertop.html Sorry, could you provide the resulting powertop.html file? Created attachment 895961 [details]
powertop.html
Censored version of powertop.html
I can confirm this still happening in Fedora 22 with the following packages: powertop-2.7-5.fc22.x86_64 tuned-utils-2.4.1-5.fc22.noarch (In reply to Mario Sanchez Prada from comment #8) > I can confirm this still happening in Fedora 22 with the following packages: > > powertop-2.7-5.fc22.x86_64 > tuned-utils-2.4.1-5.fc22.noarch Works for me, please provide output of: # LANG=C powertop --html I can't really unplug my computer right now for a few weird reasons but here you have the output anyway, in case it's not relevant: $ sudo LANG=C powertop --html [sudo] password for mario: Loaded 230 prior measurements RAPL device for cpu 0 RAPL Using PowerCap Sysfs : Domain Mask f RAPL device for cpu 0 RAPL Using PowerCap Sysfs : Domain Mask f RAPL device for cpu 0 RAPL Using PowerCap Sysfs : Domain Mask f Devfreq not enabled Preparing to take measurements unknown op '{' Taking 1 measurement(s) for a duration of 20 second(s) each. PowerTOP outputing using base filename powertop.html To show power estimates do 127 measurement(s) connected to battery only (In reply to Mario Sanchez Prada from comment #10) > I can't really unplug my computer right now for a few weird reasons but here > you have the output anyway, in case it's not relevant: > > $ sudo LANG=C powertop --html > [sudo] password for mario: > Loaded 230 prior measurements > RAPL device for cpu 0 > RAPL Using PowerCap Sysfs : Domain Mask f > RAPL device for cpu 0 > RAPL Using PowerCap Sysfs : Domain Mask f > RAPL device for cpu 0 > RAPL Using PowerCap Sysfs : Domain Mask f > Devfreq not enabled > Preparing to take measurements > unknown op '{' > Taking 1 measurement(s) for a duration of 20 second(s) each. > PowerTOP outputing using base filename powertop.html > To show power estimates do 127 measurement(s) connected to battery only Please provide the generated HTML. (In reply to Jaroslav Škarvada from comment #11) > (In reply to Mario Sanchez Prada from comment #10) > > I can't really unplug my computer right now for a few weird reasons but here > > you have the output anyway, in case it's not relevant: > > > > $ sudo LANG=C powertop --html > > [sudo] password for mario: > > Loaded 230 prior measurements > > RAPL device for cpu 0 > > RAPL Using PowerCap Sysfs : Domain Mask f > > RAPL device for cpu 0 > > RAPL Using PowerCap Sysfs : Domain Mask f > > RAPL device for cpu 0 > > RAPL Using PowerCap Sysfs : Domain Mask f > > Devfreq not enabled > > Preparing to take measurements > > unknown op '{' > > Taking 1 measurement(s) for a duration of 20 second(s) each. > > PowerTOP outputing using base filename powertop.html > > To show power estimates do 127 measurement(s) connected to battery only > > Please provide the generated HTML. It should be named powertop.html. Created attachment 1056658 [details]
powertop.html
(In reply to Mario Sanchez Prada from comment #13) > Created attachment 1056658 [details] > powertop.html Thanks, but I am unable to reproduce: # powertop2tuned -i ./powertop.html powertop This generated tuned profile from your powertop.html without problem. Oh! I was missing the -i parameter to specify the input file, can't believe that!
I've tried that now and works perfectly fine for me too, next time I should read the manpage before blindly following some comment in some forum elsewhere, sorry for the noise.
Btw, I believe this bug report is invalid then, since per the bug description I understand the reporter might actually have made the very same mistake than me:
> Steps to Reproduce:
> 1. Run: powertop2tuned powertop-profile
Thanks for your help, I probably wouldn't have noticed otherwise :)
(In reply to Mario Sanchez Prada from comment #15) > Oh! I was missing the -i parameter to specify the input file, can't believe > that! > > I've tried that now and works perfectly fine for me too, next time I should > read the manpage before blindly following some comment in some forum > elsewhere, sorry for the noise. > > Btw, I believe this bug report is invalid then, since per the bug > description I understand the reporter might actually have made the very same > mistake than me: > > > Steps to Reproduce: > > 1. Run: powertop2tuned powertop-profile > > Thanks for your help, I probably wouldn't have noticed otherwise :) Without the '-i' switch, it should automatically generate the powertop.html to temporary place and use it for input. It should be the same file. Both variants works for me. (In reply to Jaroslav Škarvada from comment #16) > Without the '-i' switch, it should automatically generate the powertop.html > to temporary place and use it for input. It should be the same file. Both > variants works for me. You're right again, I was running powertop2tuned powertop.html (after having generated powertop.html manually) which is wrong and, now I realize of it, different from the bug report. Guess I should leave early today and get some sleep... sorry and thanks again (In reply to Mario Sanchez Prada from comment #17) > (In reply to Jaroslav Škarvada from comment #16) > > Without the '-i' switch, it should automatically generate the powertop.html > > to temporary place and use it for input. It should be the same file. Both > > variants works for me. > > You're right again, I was running powertop2tuned powertop.html (after having > generated powertop.html manually) which is wrong and, now I realize of it, > different from the bug report. > > Guess I should leave early today and get some sleep... sorry and thanks again OK, closing. The error is reproduced in Fedora 22 with the packages: powertop-2.7-5.fc22.x86_64 tuned-utils-2.5.1-2.fc22 I can generate the tuned profile from the attachment from 'Mario Sanchez Prada', but not with the powertop.html generated on my system. (In reply to rfranr from comment #19) > The error is reproduced in Fedora 22 with the packages: > > powertop-2.7-5.fc22.x86_64 > tuned-utils-2.5.1-2.fc22 > > > I can generate the tuned profile from the attachment from 'Mario Sanchez > Prada', but not with the powertop.html generated on my system. Could you provide your powertop.html (that one which is failing)? Created attachment 1076419 [details]
powertop.html
The html don't have the section : <h2 class="content_title"> Software Settings in Need of Tuning </h2>
I installed Powertop first . Then start the service , following the instructions of Fedora Magazine :
sudo systemctl start powertop.service
That automatically sets all parameters optimisable of " good."
Then installed powertop2tuned for first time. That is the attachemnt that don't work.
I see later that if i active some tunnable as " Bad " , then it works.
Apologize for the noise .
(In reply to rfranr from comment #21) > I see later that if i active some tunnable as " Bad " , then it works. > Yeh, it generates tuning only for items that are marked as 'bad'. Also by default powertop2tuned doesn't enable the tunings (it creates tuned.conf with all tunings commented for safety). By using the -e switch the 'bad' tunings are explicitly enabled in tuned.conf: # powertop2tuned -e MYPROFILE Powertop.service and powertop2tuned are two different approaches to the same thing, please do not mix them together. Powertop.service enables all tunings in one shot - user has no control over the process. Powertop2tuned generates tuned profile which allows user to fine tune the settings. |