CPU Governors explained

nextai

New member
Apr 7, 2012
4
1
0
Excellent performance intellidemand tweaks

Hi, I am using faux123's kernel with intellidemand governor tweaked to my needs. I can safely say that for the smoothest user experience (in UI, 3d and 2d gaming) the following settings (use SetCPU to rapidly tweak them) are among the best:

up_threshold: 90
down_differential: 3
sampling_down_factor: 4
ignore_nice_load: 0
powersave_bias: 0
io_is_busy: 1
two_phase_freq: 1080000
lmf_browser: 1
lmf_active_max_freq: 1728000
lmf_inactive_max_freq: 918000

lmf_active_load: 95
lmf_inactive_load: 50


I've emphasized with bold above the settings which I altered (the others were Faux's defaults). The min CPUfreq is set to 192 while the max is set to 1728000. 3D GPU is overclocked to 300Mhz and 2D is left at default (200 I believe).

Now, here comes the question: does anyone know the exact or approximate intellidemand algorithm ? (how the CPU/GPU frequencies are ramped up/down depending on the above params)
Also, does anyone know exactly what lmf_active_load and lmf_inactive_load mean ? What I could observe from configuring these two parameters as above was frequency stability (much less frequency hopping and no ramp-up to 1728000 with normal usage) and dramatically higher framerates in Asphalt 7 and GTA3 10-Year (I had the exact same frequencies configured, but with lmf_active_load and lmf_inactive_load set to default I had noticeably lower framerates).

With these settings, the battery life seems actually better while the best performance is given when needed.

Thanks !
nextai.
 
  • Like
Reactions: qwahchees

freedom74

Senior Member
Feb 22, 2011
200
57
48
Belgrade
Very useful thread. Thank you! :good:

One question tough... How to detrmine which CPU governors are supported by Kernel?
If I use SetCPU is what he offering is what is supported?

Thanks again for gathering this info on one place.
 
S

stempox

Guest
Very useful thread. Thank you! :good:

One question tough... How to detrmine which CPU governors are supported by Kernel?
If I use SetCPU is what he offering is what is supported?

Thanks again for gathering this info on one place.
hi, of course, from applications such as set cpu you can see and choose which governors contains that particular kernel.
 

guedeshot

Member
Oct 28, 2012
21
7
0
Very useful! Thank you very much!

hi, of course, from applications such as set cpu you can see and choose which governors contains that particular kernel.
Very interesting read, Stempox. Good to learn about the differences between governors.
I have an GalaxyS I9000 B ( from Brazil) with Chipset Hummingbird, my CPU is 1 GHz armv7 processor rev 2 ( v7l) and my GPU is PowerVR SGX540 originally. My Rom actually is helly Bean 4.2.2 with hellybean kernel and i`m trying to have a smooth experience associated with the best batery performance i could set up.
Which governor do you think is best for me? Reading this article I change the set up stock (ondemand) to lulzactive but maybe another one could be better, like wheatley , lagfree, lazy or smartass V2. All of them possible for mine but remembering that is a single core mobile.
I was reading also about i/o scheduler and until now it is set up to SIO (stock) and i changed the min/max frequency to 100/800 in order to conserve the battery.
If you could help me it wiil be very apreciate. Thanks in advance and sorry for my bad english. ;)
 
S

stempox

Guest
Very interesting read, Stempox. Good to learn about the differences between governors.
I have an GalaxyS I9000 B ( from Brazil) with Chipset Hummingbird, my CPU is 1 GHz armv7 processor rev 2 ( v7l) and my GPU is PowerVR SGX540 originally. My Rom actually is helly Bean 4.2.2 with hellybean kernel and i`m trying to have a smooth experience associated with the best batery performance i could set up.
Which governor do you think is best for me? Reading this article I change the set up stock (ondemand) to lulzactive but maybe another one could be better, like wheatley , lagfree, lazy or smartass V2. All of them possible for mine but remembering that is a single core mobile.
I was reading also about i/o scheduler and until now it is set up to SIO (stock) and i changed the min/max frequency to 100/800 in order to conserve the battery.
If you could help me it wiil be very apreciate. Thanks in advance and sorry for my bad english. ;)
hi, with my personal experience with single core, I've always had good results with the governor, smartass-smartass v2 and CFQ scheduler, if it is not present, is also good SIO.
good compromise between speed of the phone, and battery life.
 

bigmatty

Senior Member
Feb 26, 2013
165
52
0
Hello! This is a great thread. I'm new to root activities and have started looking into governors and frequencies, and this has been VERY helpful!

If I may ask a couple noob-questions...

-Does anyone know the default governor settings for the Nexus 10? Using 3c System Tuner I see I can adjust the governor and screen-off governor. In these adjustments there is a 'no change' setting. If I just put it back to that and reboot am I back to the original governor settings, or does it remain changed to the last selection I had?

-Again I'll be using 3c System Tuner. I have not adjusted any of the CPU frequencies. Does anyone know the stock CPU frequencies for the Nexus 10, or how I would 'reset to default'?

Thanks XDA! :)
 

rzr86

Senior Member
May 21, 2012
8,109
2,455
258
35
Nafpaktos
Hello! This is a great thread. I'm new to root activities and have started looking into governors and frequencies, and this has been VERY helpful!

If I may ask a couple noob-questions...

-Does anyone know the default governor settings for the Nexus 10? Using 3c System Tuner I see I can adjust the governor and screen-off governor. In these adjustments there is a 'no change' setting. If I just put it back to that and reboot am I back to the original governor settings, or does it remain changed to the last selection I had?

-Again I'll be using 3c System Tuner. I have not adjusted any of the CPU frequencies. Does anyone know the stock CPU frequencies for the Nexus 10, or how I would 'reset to default'?

Thanks XDA! :)
actually you are asking that in a sensation/XE/4G forum:)
 
  • Like
Reactions: bigmatty

bigmatty

Senior Member
Feb 26, 2013
165
52
0
actually you are asking that in a sensation/XE/4G forum:)
Oh geez! I'll make a related post in the Nexus section. I arrived on this thread after looking though the generic search results, whereas all the other results seemed tied to a specific kernel this thread seemed to cover more of the basics.

Thanks for pointing me in the right direction :)
 

Ash359

Senior Member
Nov 30, 2012
2,090
718
0
This is the best list of kernel descriptions I have seen so far and I have been searching far and wide.

Been looking for fantasy governor. It's on ptmr3's new phasekernel.

Sent from my SAMSUNG-SGH-I717 using xda app-developers app

---------- Post added at 11:13 AM ---------- Previous post was at 11:03 AM ----------

Oh I also have adaptive governor. What does that do?

Sent from my SAMSUNG-SGH-I717 using xda app-developers app
 
S

stempox

Guest
This is the best list of kernel descriptions I have seen so far and I have been searching far and wide.

Been looking for fantasy governor. It's on ptmr3's new phasekernel.

Sent from my SAMSUNG-SGH-I717 using xda app-developers app

---------- Post added at 11:13 AM ---------- Previous post was at 11:03 AM ----------

Oh I also have adaptive governor. What does that do?

Sent from my SAMSUNG-SGH-I717 using xda app-developers app
thanks, I'll see what I can do in the coming days ;)