Advanced Interactive Governor for OP3 Using EX Kernel

Asiier

Senior Member
Nov 23, 2014
541
1,989
133
Miller's Planet
Same here with FairPark. I'm bouncing between HawkPepper and Fusion_B_Delta Rev. 1. To be honest it is really difficult to settle with on of those profiles. Fusion_B_Delta gives little more SoT (around 30-40 min more) than HawkPepper, but this last one gives smoother feel on the average usage.
FairPark lags my device after reboot and i increased input boost on both cpu but lags,action launcher lags,google now lags,chrome lags

for me Hawkpepper works awesome.i nearly get 8-9 SOT from this:)
THX for hard [email protected]

That's really weird.... I haven't notice any lags even playing games, so haven't other people.
I could change some other values for a faster scaling, but I don't understand why it lags.
What ROM & Kernel are you guys using?
 
  • Like
Reactions: Achu Gowda

Stupifier

Senior Member
Jun 8, 2010
1,906
680
133
That's really weird.... I haven't notice any lags even playing games, so haven't other people.
I could change some other values for a faster scaling, but I don't understand why it lags.
What ROM & Kernel are you guys using?
Ya....I was getting lag with FairPark as well.......so I switched back to HawkPepper and am happy. Using Latest RRJB ROM.
 

abhi08638

Senior Member
Jul 11, 2012
2,167
4,386
0
Memory tweaks

Speaking of memory tweaks here's a ex manager file for sysctl tweaks. Extract the zip, Just load the file in the tools>user settings>load file
These settings are more to prevent system lockups after reducing swap

For future reference here's a list of recommendations

1. Swappiness does not disable swap, it just reduces the tendency for the kernel to use swap until a certain threshold is reached (watermark in the zone) which you can't set

Under the memory tab
2. Dirty ratio- set this to a higher value because its the maximum percentage that dirty pages are stored in ram, mine is 80

3. Dirty background ratio- set it to anything you want and see what happens. System stores dirty pages until it reaches this percentage of ram used and then calls the flusher. System lockups occur when too much dirty data is being written to disk at once. To prevent lockups reduce this to a low value like 5, otherwise set to a higher value to reduce writes. Mine is set to 40

4. Dirty writeback centisecs- is the interval at which the flusher daemon is woken up to write out dirty data. Set it higher to delay writes

5. Min free kbytes - don't touch it, won't effect daily usage

6. Vfs cache pressure - set it to a moderate value, the lower the value the more likely the kernel is to retain cache. Any lower than 20 is not recommended by me unless you have a drop cache script running every morning. If not then I guarantee your phone will be sluggish by the next morning due to too much cache being unused. Mine is set to 40, default is 100.

7. Overcommit ratio - ignore it, don't even know why it's here since afaik it only is applicable if overcommit memory is set to 2. This is never the case since its always set to 1 by default which means always allocate memory on request without checking free mem. If there is no mem then OOM is called. Setting it to 2 will never allocate new memory and will instantly cause a kernel panic. Tldr: has no effect on android
 

Attachments

Last edited:

Stupifier

Senior Member
Jun 8, 2010
1,906
680
133
Speaking of memory tweaks here's a ex manager file for sysctl tweaks. Extract the zip, Just load the file in the tools>user settings>load file
These settings are more to prevent system lockups after reducing swap

For future reference here's a list of recommendations

1. Swappiness does not disable swap, it just reduces the tendency for the kernel to use swap until a certain threshold is reached (watermark in the zone) which you can't set

Under the memory tab
2. Dirty ratio- set this to a higher value because its the maximum percentage that dirty pages are stored in ram, mine is 80

3. Dirty background ratio- set it to anything you want and see what happens. System stores dirty pages until it reaches this percentage of ram used and then calls the flusher. System lockups occur when too much dirty data is being written to disk at once. To prevent lockups reduce this to a low value like 5, otherwise set to a higher value to reduce writes. Mine is set to 40

4. Dirty writeback centisecs- is the interval at which the flusher daemon is woken up to write out dirty data. Set it higher to delay writes

5. Min free kbytes - don't touch it, won't effect daily usage

6. Vm cache pressure - set it to a moderate value, the lower the value the more likely the kernel is to retain cache. Any lower than 20 is not recommended by me unless you have a drop cache script running every morning. If not then I guarantee your phone will be sluggish by the next morning due to too much cache being unused. Mine is set to 40, default is 100.

7. Overcommit ratio - ignore it, don't even know why it's here since afaik it only is applicable if overcommit memory is set to 2. This is never the case since its always set to 1 by default which means always allocate memory on request without checking free mem. If there is no mem then OOM is called. Setting it to 2 will never allocate new memory and will instantly cause a kernel panic. Tldr: has no effect on android
Thanks.....Trying all this out. Loaded that user settings file and altered the Memory settings using your recommendations. Vm Cache Pressure is written as "vfs cache pressure" in ExManager btw. Also, I could not find any " Dirty writeback centisecs" setting.....but I guess it doesn't matter since you aren't altering it.

Also, are these just General sysctl mods for all phones.....or do the values move around depending on the Phone.....like have they been tweaked specifically for OP3, or do they even need to be?
 
Last edited:

patalao

Senior Member
Jan 24, 2009
1,204
953
0
Feira
Those are general tweaks.
Every phone is different and depending on each phone memory it should be tweaked according to it.
That differs slightly from what I use except for dirty ratio that it's the same I'm using.
I don't tweak that a lot because there's no point on having to much aggressive settings.

By the way, i'm trying a new Fusion.
Let's see how it goes.
If anyone wants to be a tester please let me know.

Enviado do meu ONEPLUS A3003 através de Tapatalk
 
Last edited:
  • Like
Reactions: Vaizen and f0li0

abhi08638

Senior Member
Jul 11, 2012
2,167
4,386
0
Thanks.....Trying all this out. Loaded that user settings file and altered the Memory settings using your recommendations. Vm Cache Pressure is written as "vfs cache pressure" in ExManager btw. Also, I could not find any " Dirty writeback centisecs" setting.....but I guess it doesn't matter since you aren't altering it.

Also, are these just General sysctl mods for all phones.....or do the values move around depending on the Phone.....like have they been tweaked specifically for OP3, or do they even need to be?
Right sorry it's supposed to be vfs cache pressure, just got confused for a moment. The dirty write back centisecs had been modified from 500ms to 1000ms since we are not too aggressive when filling up the dirty background ratio. You can access it from tools>user settings

Some are general like swappiness, but some absolutely move around depending on the phone. Since we have 6gb of ram and ufs storage, we can get away with more aggressive caching and greater writes. For a low end phone however, it would be much more useful to keep lower dirty values to avoid system lockups during commits.

I'm even using deadline with custom values to delay writes and give priority to reads and work as a fifo schedular to reduce latency as much as possible
 

patalao

Senior Member
Jan 24, 2009
1,204
953
0
Feira
As higher you set up fifo_batch more likely you would have latency problems.
That's one of the things why i told some times here and in PM to users not to mess to much with default settings.
They can bring all good things on short run but on long run it can bring more arm than good.
Vm settings don't need to be so aggressive even with 6Gb of ram.
Just set LMK with some values more multitasking friendly and your good to go.
 

Vaizen

Senior Member
Dec 24, 2011
700
181
0
Bogotá
That's really weird.... I haven't notice any lags even playing games, so haven't other people.
I could change some other values for a faster scaling, but I don't understand why it lags.
What ROM & Kernel are you guys using?
I'm on FreedomOS 1.5.1 with ElementalX 0.24 BTW lagginess is more evident when scrolling and opening or switching between apps.
 

Asiier

Senior Member
Nov 23, 2014
541
1,989
133
Miller's Planet
Ya....I was getting lag with FairPark as well.......so I switched back to HawkPepper and am happy. Using Latest RRJB ROM.

I'm on FreedomOS 1.5.1 with ElementalX 0.24 BTW lagginess is more evident when scrolling and opening or switching between apps.
I was thinking that it might be because you guys were using OOS but If also happens on RR, I cannot really understand.
I guess some tweaks behave better in certain scenarios.

Anyways, If you both are happy with HawkPepper that is really great :laugh:
 

core_x

Senior Member
Jun 7, 2012
319
122
0
As higher you set up fifo_batch more likely you would have latency problems.
That's one of the things why i told some times here and in PM to users not to mess to much with default settings.
They can bring all good things on short run but on long run it can bring more arm than good.
Vm settings don't need to be so aggressive even with 6Gb of ram.
Just set LMK with some values more multitasking friendly and your good to go.
Can you recommend some lmk settings?
 

Antsu

Senior Member
Nov 28, 2013
444
232
63
I've found Hawktail perfect for me. Fusion_B_Delta_Rev1 also has been very good. Phone is cool and warms less than before. Active drain is now 7,55% per hour and idle drain 1,54%. Rom is stock 3.2.6, rooted and I'm using greenify and amplify to save some more juice. Touchboosts for cpu and gpu are off. Zen scheduler and 256 kb readahead. Stock frequencies. Performace is as good as before. No lagging. I have about 70 apps installed. I always use mobile data (4G) and keep location and sync on. I don't play games much. Mostly browsing with opera, watching netflix or youtube and listening deezer or spotify. But what effects most on active drain, of course with batt friendly tweaked interactive governor, is the screen brightness. When Oos got updated to 3.2.6, I started using adative brightness because it worked quite well. It's now on lowest level and that's fine when I'm indoors. When I go out, I set it to little less than half level. What annoys me a little is screen color in low brightnesses. It tends to be a bit green between colors from almost black to grey.
 

Vaizen

Senior Member
Dec 24, 2011
700
181
0
Bogotá
Those are general tweaks.
Every phone is different and depending on each phone memory it should be tweaked according to it.
That differs slightly from what I use except for dirty ratio that it's the same I'm using.
I don't tweak that a lot because there's no point on having to much aggressive settings.

By the way, i'm trying a new Fusion.
Let's see how it goes.
If anyone wants to be a tester please let me know.

Enviado do meu ONEPLUS A3003 através de Tapatalk
I'd be proud to test your work mate
 

NickosD

Senior Member
Feb 1, 2013
3,724
1,153
253
24
Amintaio - Divice: 1+1
Those are general tweaks.
Every phone is different and depending on each phone memory it should be tweaked according to it.
That differs slightly from what I use except for dirty ratio that it's the same I'm using.
I don't tweak that a lot because there's no point on having to much aggressive settings.

By the way, i'm trying a new Fusion.
Let's see how it goes.
If anyone wants to be a tester please let me know.

Enviado do meu ONEPLUS A3003 através de Tapatalk
I want to test too ^^

Sent from my ONEPLUS A3003 using Tapatalk
 

patalao

Senior Member
Jan 24, 2009
1,204
953
0
Feira
As everyone seems to have some preferences with Fusion_B_Delta_Rev1 and HawkPepper from @Asiier i'm trying a profile with both of them together.
Also i want to post Fusion_B_Delta_Rev2 as soon as possible.
Fusion_Speed and Speed_Beta are good for what they are meant for(performance),but battery should not be that good.