All of lore.kernel.org
 help / color / mirror / Atom feed
* [Powertop] Package C states over Haswell platform
@ 2014-10-28 16:20 Rony Ross
  0 siblings, 0 replies; 6+ messages in thread
From: Rony Ross @ 2014-10-28 16:20 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 2461 bytes --]

Hi,

I'm working on DELL E7440 platform (Haswell based) with dual OS: Windows 8.1
and Ubuntu 14.04.1 (based on 3.13).
When I use Win 8.1, using BLA I get ~90% PC7 when idle. However, when I use
the Ubuntu, using powertop I get only as high as PC3.
Since it's the same platform, it seems to rule out a HW issue. Any idea what
can be the problem? Is Haswell fully supported by powertop?

          Package   |             Core    |            CPU 0       CPU 2
                    |                     | C0 active   0.2%        0.1%
                    |                     | POLL        0.0%    0.0 ms  0.0%
0.0 ms
                    |                     | C1E-HSW     0.0%    0.1 ms  0.0%
0.0 ms
C2 (pc2)    0.1%    |                     |
C3 (pc3)    3.7%    | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.4 ms  0.0%
0.4 ms
C6 (pc6)    0.0%    | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.0 ms  0.0%
0.2 ms
C7 (pc7)    0.0%    | C7 (cc7)   99.0%    | C7s-HSW     0.1%    0.9 ms  0.1%
1.8 ms
C8 (pc8)    0.0%    |                     | C8-HSW      0.1%    1.4 ms  0.2%
2.5 ms
C9 (pc9)    0.0%    |                     | C9-HSW      0.4%    4.0 ms  2.3%
8.0 ms
C10 (pc10)  0.0%    |                     | C10-HSW    98.9%   44.5 ms 97.0%
36.5 ms

                    |             Core    |            CPU 1       CPU 3
                    |                     | C0 active   0.2%        0.1%
                    |                     | POLL        0.0%    0.0 ms  0.0%
0.0 ms
                    |                     | C1E-HSW     0.0%    0.0 ms  1.0%
50.1 ms
                    |                     |
                    | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.7 ms  0.0%
0.6 ms
                    | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.5 ms  0.0%
0.0 ms
                    | C7 (cc7)   98.0%    | C7s-HSW     0.1%    0.7 ms  0.4%
25.7 ms
                    |                     | C8-HSW      0.0%    4.9 ms  0.0%
1.5 ms
                    |                     | C9-HSW      0.6%    4.7 ms  0.7%
19.5 ms
                    |                     | C10-HSW    98.5%   93.5 ms 97.8%
78.0 ms

                    |             GPU     |
                    |                     |
                    | Powered On 12.1%    |
                    | RC6        87.9%    |
                    | RC6p        0.0%    |
                    | RC6pp       0.0%    |

Thanks

 

Rony


[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 7878 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [Powertop] Package C states over Haswell platform
@ 2014-10-28 16:45 Arjan van de Ven
  0 siblings, 0 replies; 6+ messages in thread
From: Arjan van de Ven @ 2014-10-28 16:45 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 573 bytes --]

On 10/28/2014 9:20 AM, Rony Ross wrote:
> I'm working on DELL E7440 platform (Haswell based) with dual OS: Windows 8.1 and Ubuntu 14.04.1 (based on 3.13).
> When I use Win 8.1, using BLA I get ~90% PC7 when idle. However, when I use the Ubuntu, using powertop I get only as high as PC3.
> Since it's the same platform, it seems to rule out a HW issue. Any idea what can be the problem? Is Haswell fully supported by powertop?
>

likely some device is not going to a low power state, which then blocks PC7.
Powertop should be able to tell you which device that is


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [Powertop] Package C states over Haswell platform
@ 2014-10-28 18:04 Kalowsky, Daniel
  0 siblings, 0 replies; 6+ messages in thread
From: Kalowsky, Daniel @ 2014-10-28 18:04 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 2991 bytes --]

Not completely true for a 1:1 comparison.

Verify that your WiFi is entering D3, as earlier testing showed Dell specific WiFi parts (on Linux) were not enabling ASPM.  On Windows this is enabled by the driver.

Best walk through for it: http://wireless.kernel.org/en/users/Documentation/ASPM



From: PowerTop [mailto:powertop-bounces(a)lists.01.org] On Behalf Of Rony Ross
Sent: Tuesday, October 28, 2014 9:21 AM
To: powertop(a)lists.01.org
Subject: [Powertop] Package C states over Haswell platform

Hi,

I'm working on DELL E7440 platform (Haswell based) with dual OS: Windows 8.1 and Ubuntu 14.04.1 (based on 3.13).
When I use Win 8.1, using BLA I get ~90% PC7 when idle. However, when I use the Ubuntu, using powertop I get only as high as PC3.
Since it's the same platform, it seems to rule out a HW issue. Any idea what can be the problem? Is Haswell fully supported by powertop?

          Package   |             Core    |            CPU 0       CPU 2
                    |                     | C0 active   0.2%        0.1%
                    |                     | POLL        0.0%    0.0 ms  0.0%    0.0 ms
                    |                     | C1E-HSW     0.0%    0.1 ms  0.0%    0.0 ms
C2 (pc2)    0.1%    |                     |
C3 (pc3)    3.7%    | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.4 ms  0.0%    0.4 ms
C6 (pc6)    0.0%    | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.0 ms  0.0%    0.2 ms
C7 (pc7)    0.0%    | C7 (cc7)   99.0%    | C7s-HSW     0.1%    0.9 ms  0.1%    1.8 ms
C8 (pc8)    0.0%    |                     | C8-HSW      0.1%    1.4 ms  0.2%    2.5 ms
C9 (pc9)    0.0%    |                     | C9-HSW      0.4%    4.0 ms  2.3%    8.0 ms
C10 (pc10)  0.0%    |                     | C10-HSW    98.9%   44.5 ms 97.0%   36.5 ms

                    |             Core    |            CPU 1       CPU 3
                    |                     | C0 active   0.2%        0.1%
                    |                     | POLL        0.0%    0.0 ms  0.0%    0.0 ms
                    |                     | C1E-HSW     0.0%    0.0 ms  1.0%   50.1 ms
                    |                     |
                    | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.7 ms  0.0%    0.6 ms
                    | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.5 ms  0.0%    0.0 ms
                    | C7 (cc7)   98.0%    | C7s-HSW     0.1%    0.7 ms  0.4%   25.7 ms
                    |                     | C8-HSW      0.0%    4.9 ms  0.0%    1.5 ms
                    |                     | C9-HSW      0.6%    4.7 ms  0.7%   19.5 ms
                    |                     | C10-HSW    98.5%   93.5 ms 97.8%   78.0 ms

                    |             GPU     |
                    |                     |
                    | Powered On 12.1%    |
                    | RC6        87.9%    |
                    | RC6p        0.0%    |
                    | RC6pp       0.0%    |
Thanks

Rony

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 10005 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [Powertop] Package C states over Haswell platform
@ 2014-10-29  3:37 Alexandra Yates
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandra Yates @ 2014-10-29  3:37 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 3374 bytes --]


> Hi,
>
> I'm working on DELL E7440 platform (Haswell based) with dual OS: Windows
> 8.1
> and Ubuntu 14.04.1 (based on 3.13).
> When I use Win 8.1, using BLA I get ~90% PC7 when idle. However, when I
> use
> the Ubuntu, using powertop I get only as high as PC3.
> Since it's the same platform, it seems to rule out a HW issue. Any idea
> what
> can be the problem? Is Haswell fully supported by powertop?
>
>           Package   |             Core    |            CPU 0       CPU 2
>                     |                     | C0 active   0.2%        0.1%
>                     |                     | POLL        0.0%    0.0 ms
> 0.0%
> 0.0 ms
>                     |                     | C1E-HSW     0.0%    0.1 ms
> 0.0%
> 0.0 ms
> C2 (pc2)    0.1%    |                     |
> C3 (pc3)    3.7%    | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.4 ms
> 0.0%
> 0.4 ms
> C6 (pc6)    0.0%    | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.0 ms
> 0.0%
> 0.2 ms
> C7 (pc7)    0.0%    | C7 (cc7)   99.0%    | C7s-HSW     0.1%    0.9 ms
> 0.1%
> 1.8 ms
> C8 (pc8)    0.0%    |                     | C8-HSW      0.1%    1.4 ms
> 0.2%
> 2.5 ms
> C9 (pc9)    0.0%    |                     | C9-HSW      0.4%    4.0 ms
> 2.3%
> 8.0 ms
> C10 (pc10)  0.0%    |                     | C10-HSW    98.9%   44.5 ms
> 97.0%
> 36.5 ms
>
>                     |             Core    |            CPU 1       CPU 3
>                     |                     | C0 active   0.2%        0.1%
>                     |                     | POLL        0.0%    0.0 ms
> 0.0%
> 0.0 ms
>                     |                     | C1E-HSW     0.0%    0.0 ms
> 1.0%
> 50.1 ms
>                     |                     |
>                     | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.7 ms
> 0.0%
> 0.6 ms
>                     | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.5 ms
> 0.0%
> 0.0 ms
>                     | C7 (cc7)   98.0%    | C7s-HSW     0.1%    0.7 ms
> 0.4%
> 25.7 ms
>                     |                     | C8-HSW      0.0%    4.9 ms
> 0.0%
> 1.5 ms
>                     |                     | C9-HSW      0.6%    4.7 ms
> 0.7%
> 19.5 ms
>                     |                     | C10-HSW    98.5%   93.5 ms
> 97.8%
> 78.0 ms
>
>                     |             GPU     |
>                     |                     |
>                     | Powered On 12.1%    |
>                     | RC6        87.9%    |
>                     | RC6p        0.0%    |
>                     | RC6pp       0.0%    |
>
> Thanks
>
>
>
> Rony
>
> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop
>

Hi Rony,

Interesting you ask this since I presented at the Open source bridge
conference how to optimize your computer in terms of power using power
top, as an example I used a Haswell box with Ubuntu.  I also presented on
the Debian conference a similar talk using Debian distro.


There are few things that may be happening.

1- I would suggest to update to the latest kernel 3.17.  From 3.13 to 3.17
there have been few bug fixes that help linux in terms of power
management.

2-At the boot command line of your kernel add the following settings:



Thank you,
Alexandra.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [Powertop] Package C states over Haswell platform
@ 2014-10-29  3:57 Alexandra Yates
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandra Yates @ 2014-10-29  3:57 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 4188 bytes --]


>
>> Hi,
>>
>> I'm working on DELL E7440 platform (Haswell based) with dual OS: Windows
>> 8.1
>> and Ubuntu 14.04.1 (based on 3.13).
>> When I use Win 8.1, using BLA I get ~90% PC7 when idle. However, when I
>> use
>> the Ubuntu, using powertop I get only as high as PC3.
>> Since it's the same platform, it seems to rule out a HW issue. Any idea
>> what
>> can be the problem? Is Haswell fully supported by powertop?
>>
>>           Package   |             Core    |            CPU 0       CPU 2
>>                     |                     | C0 active   0.2%        0.1%
>>                     |                     | POLL        0.0%    0.0 ms
>> 0.0%
>> 0.0 ms
>>                     |                     | C1E-HSW     0.0%    0.1 ms
>> 0.0%
>> 0.0 ms
>> C2 (pc2)    0.1%    |                     |
>> C3 (pc3)    3.7%    | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.4 ms
>> 0.0%
>> 0.4 ms
>> C6 (pc6)    0.0%    | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.0 ms
>> 0.0%
>> 0.2 ms
>> C7 (pc7)    0.0%    | C7 (cc7)   99.0%    | C7s-HSW     0.1%    0.9 ms
>> 0.1%
>> 1.8 ms
>> C8 (pc8)    0.0%    |                     | C8-HSW      0.1%    1.4 ms
>> 0.2%
>> 2.5 ms
>> C9 (pc9)    0.0%    |                     | C9-HSW      0.4%    4.0 ms
>> 2.3%
>> 8.0 ms
>> C10 (pc10)  0.0%    |                     | C10-HSW    98.9%   44.5 ms
>> 97.0%
>> 36.5 ms
>>
>>                     |             Core    |            CPU 1       CPU 3
>>                     |                     | C0 active   0.2%        0.1%
>>                     |                     | POLL        0.0%    0.0 ms
>> 0.0%
>> 0.0 ms
>>                     |                     | C1E-HSW     0.0%    0.0 ms
>> 1.0%
>> 50.1 ms
>>                     |                     |
>>                     | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.7 ms
>> 0.0%
>> 0.6 ms
>>                     | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.5 ms
>> 0.0%
>> 0.0 ms
>>                     | C7 (cc7)   98.0%    | C7s-HSW     0.1%    0.7 ms
>> 0.4%
>> 25.7 ms
>>                     |                     | C8-HSW      0.0%    4.9 ms
>> 0.0%
>> 1.5 ms
>>                     |                     | C9-HSW      0.6%    4.7 ms
>> 0.7%
>> 19.5 ms
>>                     |                     | C10-HSW    98.5%   93.5 ms
>> 97.8%
>> 78.0 ms
>>
>>                     |             GPU     |
>>                     |                     |
>>                     | Powered On 12.1%    |
>>                     | RC6        87.9%    |
>>                     | RC6p        0.0%    |
>>                     | RC6pp       0.0%    |
>>
>> Thanks
>>
>>
>>
>> Rony
>>
>> _______________________________________________
>> PowerTop mailing list
>> PowerTop(a)lists.01.org
>> https://lists.01.org/mailman/listinfo/powertop
>>

Hi Rony,

Interesting you ask this since I presented at the Open source bridge 
conference a case study on how to optimize your computer in terms of power
using PowerTOP, as an example I used a Haswell box with Ubuntu.  I also
presented on the Debian conference a similar talk using Debian distro.
Both talks happened this year.


There are few things that may be happening.

 1- Update to the latest kernel 3.17.  From 3.13 to 3.17
there have been few bug fixes that help linux in terms of power
 management.

 2-At the boot command line of your kernel add the following settings:
       i915.enable_psr=1
       i915.enable_fbc=1
       pcie_aspm=force

The first command enables the graphics card use panel self refresh, the
second  enables frame buffer compression. The third command helps the
network card enter D3 state.
http://wireless.kernel.org/en/users/Documentation/ASPM#Enabling_ASPM_with_setpci

 3- Use PowerTOP/tunables to tune power management for all your devices. 
If none of the settings disrupt the proper usability of the computer add 
then to a script file and run this each time you restart your computer. 
Alternatively you can use powertop --auto_tune


Run PowerTOP at this point you should see your system reaching a deep
power state.

Thank you,
Alexandra.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [Powertop] Package C states over Haswell platform
@ 2014-10-29 12:23 Rony Ross
  0 siblings, 0 replies; 6+ messages in thread
From: Rony Ross @ 2014-10-29 12:23 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 5464 bytes --]

Hi,

Alexandra and Daniel, thank you for your suggestions.

1. I forgot to mention that the powertop results that I posted were after
performing --autotune
2. The platform's lid is off and I connect using SSH, so I don't think that
the graphic card/frame buffer are to blame
3. I don't think that not entering D3 has any affect on entering PC7. The
package should enter PC7 even when the device is not in D3
4. Currently I'm trying to avoid updating the kernel. However, if nothing
else helps I might have to...

I can think of one thing that might prevent the package from entering high
C states. It might be related to the LTR mechanism, which would prevent
high PC states when devices report low LTR values (or if there is some
other LTR related issue). Is there a way the read the LTR values that
devices set during runtime?

BTW, reading LTR values could be an important feature for powertop.

Thanks,

Rony

On Wed, Oct 29, 2014 at 5:57 AM, Alexandra Yates <
alexandra.yates(a)linux.intel.com> wrote:

>
> >
> >> Hi,
> >>
> >> I'm working on DELL E7440 platform (Haswell based) with dual OS: Windows
> >> 8.1
> >> and Ubuntu 14.04.1 (based on 3.13).
> >> When I use Win 8.1, using BLA I get ~90% PC7 when idle. However, when I
> >> use
> >> the Ubuntu, using powertop I get only as high as PC3.
> >> Since it's the same platform, it seems to rule out a HW issue. Any idea
> >> what
> >> can be the problem? Is Haswell fully supported by powertop?
> >>
> >>           Package   |             Core    |            CPU 0       CPU 2
> >>                     |                     | C0 active   0.2%        0.1%
> >>                     |                     | POLL        0.0%    0.0 ms
> >> 0.0%
> >> 0.0 ms
> >>                     |                     | C1E-HSW     0.0%    0.1 ms
> >> 0.0%
> >> 0.0 ms
> >> C2 (pc2)    0.1%    |                     |
> >> C3 (pc3)    3.7%    | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.4 ms
> >> 0.0%
> >> 0.4 ms
> >> C6 (pc6)    0.0%    | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.0 ms
> >> 0.0%
> >> 0.2 ms
> >> C7 (pc7)    0.0%    | C7 (cc7)   99.0%    | C7s-HSW     0.1%    0.9 ms
> >> 0.1%
> >> 1.8 ms
> >> C8 (pc8)    0.0%    |                     | C8-HSW      0.1%    1.4 ms
> >> 0.2%
> >> 2.5 ms
> >> C9 (pc9)    0.0%    |                     | C9-HSW      0.4%    4.0 ms
> >> 2.3%
> >> 8.0 ms
> >> C10 (pc10)  0.0%    |                     | C10-HSW    98.9%   44.5 ms
> >> 97.0%
> >> 36.5 ms
> >>
> >>                     |             Core    |            CPU 1       CPU 3
> >>                     |                     | C0 active   0.2%        0.1%
> >>                     |                     | POLL        0.0%    0.0 ms
> >> 0.0%
> >> 0.0 ms
> >>                     |                     | C1E-HSW     0.0%    0.0 ms
> >> 1.0%
> >> 50.1 ms
> >>                     |                     |
> >>                     | C3 (cc3)    0.0%    | C3-HSW      0.0%    0.7 ms
> >> 0.0%
> >> 0.6 ms
> >>                     | C6 (cc6)    0.0%    | C6-HSW      0.0%    0.5 ms
> >> 0.0%
> >> 0.0 ms
> >>                     | C7 (cc7)   98.0%    | C7s-HSW     0.1%    0.7 ms
> >> 0.4%
> >> 25.7 ms
> >>                     |                     | C8-HSW      0.0%    4.9 ms
> >> 0.0%
> >> 1.5 ms
> >>                     |                     | C9-HSW      0.6%    4.7 ms
> >> 0.7%
> >> 19.5 ms
> >>                     |                     | C10-HSW    98.5%   93.5 ms
> >> 97.8%
> >> 78.0 ms
> >>
> >>                     |             GPU     |
> >>                     |                     |
> >>                     | Powered On 12.1%    |
> >>                     | RC6        87.9%    |
> >>                     | RC6p        0.0%    |
> >>                     | RC6pp       0.0%    |
> >>
> >> Thanks
> >>
> >>
> >>
> >> Rony
> >>
> >> _______________________________________________
> >> PowerTop mailing list
> >> PowerTop(a)lists.01.org
> >> https://lists.01.org/mailman/listinfo/powertop
> >>
>
> Hi Rony,
>
> Interesting you ask this since I presented at the Open source bridge
> conference a case study on how to optimize your computer in terms of power
> using PowerTOP, as an example I used a Haswell box with Ubuntu.  I also
> presented on the Debian conference a similar talk using Debian distro.
> Both talks happened this year.
>
>
> There are few things that may be happening.
>
>  1- Update to the latest kernel 3.17.  From 3.13 to 3.17
> there have been few bug fixes that help linux in terms of power
>  management.
>
>  2-At the boot command line of your kernel add the following settings:
>        i915.enable_psr=1
>        i915.enable_fbc=1
>        pcie_aspm=force
>
> The first command enables the graphics card use panel self refresh, the
> second  enables frame buffer compression. The third command helps the
> network card enter D3 state.
>
> http://wireless.kernel.org/en/users/Documentation/ASPM#Enabling_ASPM_with_setpci
>
>  3- Use PowerTOP/tunables to tune power management for all your devices.
> If none of the settings disrupt the proper usability of the computer add
> then to a script file and run this each time you restart your computer.
> Alternatively you can use powertop --auto_tune
>
>
> Run PowerTOP at this point you should see your system reaching a deep
> power state.
>
> Thank you,
> Alexandra.
>

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 7531 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-29 12:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 16:20 [Powertop] Package C states over Haswell platform Rony Ross
  -- strict thread matches above, loose matches on Subject: below --
2014-10-28 16:45 Arjan van de Ven
2014-10-28 18:04 Kalowsky, Daniel
2014-10-29  3:37 Alexandra Yates
2014-10-29  3:57 Alexandra Yates
2014-10-29 12:23 Rony Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.