You are not logged in.

#1 2015-11-18 00:46:36

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

How to change cpu frequency scaling with intel_p-state

Hello to everyone wink I

would like to ask for help. Again... :]

I own I7-6700K, and in fact, i saw it with my older I5-4670K, that frequency scaling is either broken for them or it does not work correctly - i think that cpu has low frequnecy and because that there is poor performance. For an example, i open webistes that have much flash content and everything seem slow - on Windows works. I used cpupower for I5-4670K but default driver for Intel cpu is intel_p-state driver. Does anybody know how to change its governor from, for an example, powersave to performance, it it exists here, like with cpupower?

Thanks.


BTW - i checked scaling arch wiki know how, but there are examples of cpupower, not intel_p-state.

Last edited by firekage (2015-11-18 00:47:42)

Offline

#2 2015-11-18 13:45:20

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: How to change cpu frequency scaling with intel_p-state

I think you need to disable p_state with intel_pstate=disable in /etc/default/grub. There is no way to select different governors with p_state at all: https://wiki.archlinux.org/index.php/CP … ncy_driver

Offline

#3 2015-11-18 14:15:21

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 757

Re: How to change cpu frequency scaling with intel_p-state

Flash content may indicate that issue is not with CPU, but GPU (poor HW accell, not unusual on Linux).

Also, intel_pstate has but two governors, powersave, which is a substitute for ondemand, and performance which does almost no scaling. Powersave is default.

You can try with disabling intel_pstate, and using ondemand governor, but I'd first check if scaling is really an issue here.

pstate-frequency is a nice little tool for playing with intel_pstate, you can find it in AUR (--help switch explains pretty much everything)

Oh, and i7z-git is a nice tool for monitoring.

Last edited by Xabre (2015-11-18 14:17:31)

Offline

#4 2015-11-18 14:36:51

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: How to change cpu frequency scaling with intel_p-state

Xabre wrote:

...
Oh, and i7z-git is a nice tool for monitoring.

Actually, the i7z-git version is the same as the one in [community] for a while now, so no need to build the git package unless you really want to.  Reference: https://bugs.archlinux.org/task/43927


Not scaling with pstates is a complex issue.  See the following the and the links therein: https://bugs.archlinux.org/task/47086

...Please collect some data around the current idle frequency.  You can analyze it with the script I provided.  Then build from ABS using a 1000 Hz tickrate and repeat.  Does that fix the high idle rate?

Upstream bug report: https://bugzilla.kernel.org/show_bug.cgi?id=93521

Last edited by graysky (2015-11-18 14:45:37)

Offline

#5 2015-11-18 22:53:16

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: How to change cpu frequency scaling with intel_p-state

Xabre wrote:

Flash content may indicate that issue is not with CPU, but GPU (poor HW accell, not unusual on Linux).

Also, intel_pstate has but two governors, powersave, which is a substitute for ondemand, and performance which does almost no scaling. Powersave is default.

You can try with disabling intel_pstate, and using ondemand governor, but I'd first check if scaling is really an issue here.

pstate-frequency is a nice little tool for playing with intel_pstate, you can find it in AUR (--help switch explains pretty much everything)

Oh, and i7z-git is a nice tool for monitoring.


Well, i have GTX970 so i would be suprised to see that even this card has problems with flash on linux - it is really powerful graphic card for gaming, not only for www wink

I would like to have intel_pstate enabled and change its governor from powersave to performance. You said about pstate-frequency. Well, i understand that with it i could change governors with intel_pstate, but i don't want it from aur. Is there a way to change intel_pstate from powersave to performance mode without anything from aur?

Offline

#6 2015-11-18 22:54:11

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: How to change cpu frequency scaling with intel_p-state

graysky wrote:
Xabre wrote:

...
Oh, and i7z-git is a nice tool for monitoring.

Actually, the i7z-git version is the same as the one in [community] for a while now, so no need to build the git package unless you really want to.  Reference: https://bugs.archlinux.org/task/43927


Not scaling with pstates is a complex issue.  See the following the and the links therein: https://bugs.archlinux.org/task/47086

...Please collect some data around the current idle frequency.  You can analyze it with the script I provided.  Then build from ABS using a 1000 Hz tickrate and repeat.  Does that fix the high idle rate?

Upstream bug report: https://bugzilla.kernel.org/show_bug.cgi?id=93521


Sorry, but where is this script you are writing about? And, what to build from ABS with 1000Hz tickrate? Kernel or driver intel_pstate?

BTW - my CPU clocks from 0.8GHz so it does not stay at 4.4GHz turbo mode, like the Haswell from link mentioned above. My Skylake clocks ok.

Last edited by firekage (2015-11-18 23:07:29)

Offline

#7 2015-11-18 23:20:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: How to change cpu frequency scaling with intel_p-state

Sorry, thought I posted it above: https://bbs.archlinux.org/viewtopic.php … 3#p1506573

Build the linux package from ABS and simply modify the config.x86_64 like this:

sed -i -e 's/^CONFIG_HZ_300=y/# CONFIG_HZ_300 is not set/' \
-i -e 's/^# CONFIG_HZ_1000 is not set/CONFIG_HZ_1000=y/' \
-i -e 's/^CONFIG_HZ=300/CONFIG_HZ=1000/' config.x86_64

updpkgsums

Offline

#8 2015-11-19 12:35:26

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: How to change cpu frequency scaling with intel_p-state

Ok,. thanks. I will check it.

Offline

#9 2015-11-19 13:13:55

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 757

Re: How to change cpu frequency scaling with intel_p-state

firekage wrote:

Well, i understand that with it i could change governors with intel_pstate, but i don't want it from aur. Is there a way to change intel_pstate from powersave to performance mode without anything from aur?

You can use cpupower tool as well, I believe.  You can also switch it with command line call, or a script, by changing /sys/devices/system/cpu/cpu{0,1,2,3}/cpufreq/scaling_governor (or as many cores a you have, HT cores need to be considered as well.)

Well, you can tweak anything related to pstate by manually tweaking files in /sys/devices/system/cpu/intel_pstate/ but I'm sure that you'll eventually switch to using some tool like pstate-frequency, even if it's in AUR. wink

Oh, I completely forgot: If you care about powersawing (regardless of if you're using desktop or laptop), TLP is a daemon I can only say nice things about, and it also provides means of tweaking the scaling governor (among other things).

Last edited by Xabre (2015-11-19 13:16:22)

Offline

#10 2015-11-23 05:40:47

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: How to change cpu frequency scaling with intel_p-state

In fact, i prefer "performance" than "conserving power", especially with linux and because of flash content. I own I7-6700K and GTX970 and on flash sites, like this:

http://www.cda.pl/

i can barely use it. I open few clips in a new tabs, and all content from www seems to stop, like firefox doest not work at all...but it does, horrible slow. I disabled hardware acceleration, slightly better but not the usual feeling from the one that i have on Wnidows. Works ok where ther is not so many flash.

Offline

#11 2015-11-23 11:00:14

Wilco
Member
Registered: 2008-11-09
Posts: 440

Re: How to change cpu frequency scaling with intel_p-state

The wiki is a bit out of date. The pstate powersave governor does not lock your CPU in the lowest frequency but lets the CPU determine the frequency instead of the kernel (I think)

If this doesn't work correctly, 95% chance it something else, the powersave governor works very well on both desktops and notebooks in my experience.

Offline

Board footer

Powered by FluxBB