[TESTING] Control Swappiness tendency - L Speed

Hello guys, we have another new option in L Speed.
We are now able to control a swappiness tendency, how much aggressive we want to swap the memory.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You can find this option under virtual memory section as you can see on this image. If there is any issue, please report.
Governor tuner doesn't work on this build.
Thanks for testing

Paget96 said:
Hello guys, we have another new option in L Speed.
We are now able to control a swappiness tendency, how much aggressive we want to swap the memory.
You can find this option under virtual memory section as you can see on this image. If there is any issue, please report.
Thanks for testing
Click to expand...
Click to collapse
Question: does this just change the swappiness percentage, that also can be changed in KA, or are other perimeters changed as well?
Thanks

martyfender said:
Question: does this just change the swappiness percentage, that also can be changed in KA, or are other perimeters changed as well?
Thanks
Click to expand...
Click to collapse
As you can see in L Speed logs, just swappiness.
Sent from my Nexus 5 using Tapatalk

Paget96 said:
As you can see in L Speed logs, just swappiness.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
My 1GB device uses zram by default with a 400mb swap file and swapiness set to 100%. I have overcommit ratio set to zero. I have played with these settings in the past, but I'm not sure if I noticed any difference. Does lowering swapiness improve battery and cpu useage. Also what about lowering the amount of zram space? The only memory intensive app I have is GT Racing 2 Real Racing, but I rarely ever play it. Based on an xda guide, I have dirty_ratio set to 40 and dirty_background_ratio set to 10.
https://forum.xda-developers.com/android/general/guide-comprehensive-guide-to-kernels-t3121088
Thanks

martyfender said:
My 1GB device uses zram by default with a 400mb swap file and swapiness set to 100%. I have overcommit ratio set to zero. I have played with these settings in the past, but I'm not sure if I noticed any difference. Does lowering swapiness improve battery and cpu useage. Also what about lowering the amount of zram space? The only memory intensive app I have is GT Racing 2 Real Racing, but I rarely ever play it. Based on an xda guide, I have dirty_ratio set to 40 and dirty_background_ratio set to 10.
https://forum.xda-developers.com/android/general/guide-comprehensive-guide-to-kernels-t3121088
Thanks
Click to expand...
Click to collapse
It depends on whether you use swap/zram or no, lowering swappiness will reduce a "aggression" of how often kernel swap the memory. If it's lower, it's less, so less frequent CPU usage.

Paget96 said:
It depends on whether you use swap/zram or no, lowering swappiness will reduce a "aggression" of how often kernel swap the memory. If it's lower, it's less, so less frequent CPU usage.
Click to expand...
Click to collapse
I hadn't investigating vm changes much on this newer rom until yesterday. My device uses zram only, by default. Size 400mb, swapiness 100%. About 24 hrs ago I changed them to: size 250, swapiness, 40%. So far, my device appears to have less lag. Other settings I changed recently are dirty_ratio, 40, dirty_background_ratio,10, overcommit_ratio, 0, vfs_cache_ pressure remains at the system default of 100%
Do your cache reclaiming and cache allocation settings in lspeed, tune these parameters?
I/O tweak related: I had also enabled I/O boost and I/O extended que. I was experiencing some system lag, especially after wakeup, device unused overnight. Is it possible these two settings were the cause of the lag? I have them disabled now to test.
Thanks

martyfender said:
I hadn't investigating vm changes much on this newer rom until yesterday. My device uses zram only, by default. Size 400mb, swapiness 100%. About 24 hrs ago I changed them to: size 250, swapiness, 40%. So far, my device appears to have less lag. Other settings I changed recently are dirty_ratio, 40, dirty_background_ratio,10, overcommit_ratio, 0, vfs_cache_ pressure remains at the system default of 100%
Do your cache reclaiming and cache allocation settings in lspeed, tune these parameters?
I/O tweak related: I had also enabled I/O boost and I/O extended que. I was experiencing some system lag, especially after wakeup, device unused overnight. Is it possible these two settings were the cause of the lag? I have them disabled now to test.
Thanks
Click to expand...
Click to collapse
Yes, L Speed tune those parameters. And yeah, those can result a lag, test it and report to me.

Since we don't have anything to complain about this option, I assume we don't have to test it anymore. You are pleasured with those parameters, so I'll close this thread.

Thread re-opened, waiting for some reports about this option and potential improvements.
Thanks for support

We are also fine with this option, nothing much to test here.
If you have any problems with this option, please write to this thread.
Thanks for support

Related

Kernel and vm messaround, potential lag fix

THOSE SETTING BELOW ARE SYSCTL, YEY I FOUND AMERICA
PROBABLY SOMEONE IS GOING TO LAUGH
​Hello,
The one and only thing I was bothering about is why some users can multitask great and I am always not able too.
The reason?
Well the apps are closing too frequently, going out of simple game makes the launcher load again, going back in game makes the game start all over again.
First I thought I need to limit myself and get used to it.
This is not a great multitasker as the iPhone is.
iOS is far from the best system but its multitasking capabilities amazed me.
So where is our problem? Why are we not able to multitask as we should?
Well in the past month I was messing around only with the RAM consumption.
I was aiming at more free RAM and persistent apps, here comes the V6 Supercharger which helps a lot.
But when I was enjoying it I got a call. What happend? Black screen and vibrating phone, that's all, I said to myself "No more playing, I have to answer my calls."
Where was the problem I believe I don't know still.
But with some dev help we might be able to control our phone a little bit more than we can right now with uboot and recovery. Thanks to all of the developers.
What was the problem? The Kernel! I installed ROM Toolbox and just got a look at the app when I saw the Kernel Tweaks.
The mess began, read which setting what does on vm and on kernel tweaks. Increased some, decreased others, tested it didint worked and I increased and decreased others and still the same when I saw this in vm
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And
And this in kernel
Enabled them, decreased the swappiness (don't know if it has to be high, i increased it the first time to 100 but no change so I decreased it.)
And something happend, I called myself from another phone and there you go, no more black screen, I was able to answer while I was playing Shadowgun Deadzone at high graphics.
And the most amazing part was when I ended the call, the game was still running and I was connected.
In the process of testing I noticed a few freezes just in the launcher when opening apps for like 5 secs and will see what have I done, maybe I messed up something.
Anyways I was able to launch the task killer while the game was running in the background and I am so happy that it works fine for now.
If you read all this, thank you.
If you are developer and you think this is totally wrong I will remove this.
Hey I was wondering what was best settings I'm a bit of a noob when it comes to codes lol but I have a good understanding of it I think
Anyway in rom manager when it comes to performance I noticed io was set too noop and gov to interactive at this setting you get good performance but lags in games
So thinking from previous Roms for GB 21e most always io was sio and gov was hot plug
I'm not too sure what differences are between them in code but do see differences in performance
Any recommendations and maybe quick heads up would be highly appreciated
Running on Darkroom ICS int
Sent from my LG-SU760 using Tapatalk 2
MattJaO3D said:
Hey I was wondering what was best settings I'm a bit of a noob when it comes to codes lol but I have a good understanding of it I think
Anyway in rom manager when it comes to performance I noticed io was set too noop and gov to interactive at this setting you get good performance but lags in games
So thinking from previous Roms for GB 21e most always io was sio and gov was hot plug
I'm not too sure what differences are between them in code but do see differences in performance
Any recommendations and maybe quick heads up would be highly appreciated
Running on Darkroom ICS int
Sent from my LG-SU760 using Tapatalk 2
Click to expand...
Click to collapse
The setting you are using are perfect.
I was fiddling around with TWRP recovery and tweaking trough rom toolbox. I've set governer hotplug and I/O ondemand. SD boost on 4096kb. In TWRP I've created a swap file of 2GB and a EXT4 file of 2GB on my sdcard. I'm running ICS Darkroom international. In Sysctl Conf i set min free kb to 4096.
Phone is running very smooth and very very fast. I've a total new phone

[NEW/APP] Root Booster - Boost your performance, battery life with innovative tools

Root booster is for those who needs more power to run applications smoothly without lags or for those who needs to improve poor battery life.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
There are many apps which save battery or incrase performance, however Root Booster uses the most proven settings to achive best results. You can easily apply these settings with preset modes which ensures speed boost, battery boost or stability boost. Theese modes are achived by applying appropriate settings to main phone components. Here are explanations what particullary Root Booster does to your CPU, RAM and Android OS system.
CPU (processor governor control)
A governor is a driver for the regulation of CPU frequency. Governor decides how fast and when will by achieved maximal or minimal CPU frequency. Setting apropriate governor makes your device more battery saving, fast or even stable. However deciding which governor is suitable is a little bit tricky. Root Booster can decide which governor you should use and automatically apply the most suitable governor for selected mode.
RAM (memory manager)
Each application uses VM heap for it 's data and work. The main reason to change VM heap size is stability improvement. Many big applications need's big amount of memory (VM heap) for it's work. If the VM heap size is smaller than requested memory causes application crash (Out of memory error). Setting heap size is hard task and there is no manual to set up for better performance. Better performance can be only achieved by testing. Root boster will test your RAM and sets up your VM heap size for better stability and performance.
System (Android OS optimizer)
Each Android application can have one or multiple services. They are running in background and usually performing some kind of task. Many people think's that when they kill application it completely stops draining your battery and computing power, but that's not true. Application still have servicies that are running after killing and still drains battery and comuting power. Root booster will scan your services and disables the most battery draining and performance demanding servicies to optimize your system.
Download from Play Store​
+ 1.8 - all known bugs fixed
+ 1.7 - can run without root as well
Downloadimg
give access
Cannot download with pay store. Not available in my country. Any one had apk
@DominikNozka very nice app. How to change sertings back to default?
Hi, it is so easy. Apply stock mode
DominikNozka said:
Hi, it is so easy. Apply stock mode
Click to expand...
Click to collapse
Where is this stock mode option?
Nice app, love the UI, scared me when i activated and the screen went black.
Testing right now. Want to see how good this is.
In root booster menu
DominikNozka said:
In root booster menu
Click to expand...
Click to collapse
Nice app.
Suggesstion: Make a tasker plugin for this app, I would like if i can activate it from a widget on home screen from a tasker task.
thahim said:
Nice app.
Suggesstion: Make a tasker plugin for this app, I would like if i can activate it from a widget on home screen from a tasker task.
Click to expand...
Click to collapse
Thanks for suggestion
Very clean interface and usefulness for every android user. great job!
mety333 said:
Very clean interface and usefulness for every android user. great job!
Click to expand...
Click to collapse
Thanks
I satisfied your work so I bought extreme modes Good work
Feels like my phone has a new life now !!
Amazing.. working well.. SOT has definitely improved..
marbulas said:
I satisfied your work so I bought extreme modes Good work
Click to expand...
Click to collapse
Thanks
Sidz4u said:
Feels like my phone has a new life now !!
Amazing.. working well.. SOT has definitely improved..
Click to expand...
Click to collapse
Great
great work Man..!! [emoji106] [emoji106] [emoji106]
purchased Extreme modes
Sent from my GT-I9500
Xpid3r said:
great work Man..!! [emoji106] [emoji106] [emoji106]
purchased Extreme modes
Sent from my GT-I9500
Click to expand...
Click to collapse
Thanks
Can you give us alternative link ? Like upload it on xda ?

[MODS] LG Leon Tweaks compilation

I've been working on some tweaks to make our Leon's work better
Please make a backup before modifying anything, i will provide the default files in the attachments
thease are all system tweaks, I don't think there is a need to talk about lowering brightness, disabling auto-sync, etc xD
i'll include the modified files as a whole, but I recommend editing thease files with notepad ++ or some other editor, be sure to set rw r r permissions:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Build.prop
ro.wifi.channels=13 (was 11) for 13 wifi channels, Europian standard, it seems to work
ro.lge.lcd_default_brightness=100 (was 171, reduces default brightness, better battery life by default)
dalvik.vm.heapstartsize=5m (was 8, should reduce ram usage)
dalvik.vm.heapgrowthlimit=90m (was 96, more free ram in compensation for eventual performance )
dalvik.vm.heapsize=180m (was 256, more free ram in compensation for eventual performance )
ro.sys.fw.mOomMinFree1=8192 (was 73728(really aggressive app killing), doesn't kill perceptible apps until they literally dry the device out of ram)
ro.sys.fw.mOomMinFree2=16384 (was 92160, really better multitasking e.g playing music while playing HD Games is possible)
ro.sys.fw.mOomMinFree3=184320 (was 122880, saves ram)
ro.sys.fw.mOomMinFree4=202752 (was 204800)
I've left the last 2 to be at stock values to keep more free ram
thease ones are to be added:
Disables data collection and logging, less cpu processing:
ro.config.nocheckin=1
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
logcat.live=disable
ro.kernel.android.checkjni=0
ro.kernel.checkjni=0
debugtool.anrhistory=0
profiler.debugmonitor=false
profiler.launch=false
profiler.hung.dumpdobugreport=false
rendering tweaks:
debug.fb.rgb565=1 (enables 16 bit)
debug.composition.type=gpu
persist.sys.ui.hw=1
force_hw_ui=true
debug.overlayui.enable=1
persist.sys.use_16bpp_alpha=1 (Smother scrolling)
persist.service.lgospd.enable=0
persist.service.pcsync.enable=0
everyone should know thease but why not:
persist.sys.purgeable_assets=1
wifi.supplicant_scan_interval=180
windowsmgr.max_events_per_sec=90
system/etc
thermal-engine-8916.conf
this is the file which controls how our device reacts to temperature, the default settings are somewhat unfair so this is what I did(rather cheap demonstration):
to
the default settings already begin to take action at 38 degrees cpu temperature, some people are fine with 50 degrees I bumped it all up by 2 degrees
and delayed the gpu throttling so that games wouldn't lag, I also increased the LCD dimming value so that it makes sense, by default it was capped at 78% for maximum temperature reduction, I put it to 60
init.qcom.post_boot.sh
this is the file where a bunch of stuff is controlled, including the cpu frequency
LG put the minimum frequency at 800 MHZ for some reason and set it so that
the phone never goes into deep sleep.
head down to about line 459:
Code:
case "$target" in
"msm8916")
echo 533333 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq (I found 400000 to cause lag but that's a vaild option too)
echo "25000 1152000:50000"> /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay (this will allow the cpu frequency to jump higher faster in case there is a demand, useful for Games)
echo "70 800000:80 998400:90 1152000:95" > /sys/devices/system/cpu/cpufreq/interactive/target_loads (LG's settings just didn't make any sense to me but this should let the phone go into deep sleep and save battery while allowing it to draw out performance faster)
init.lge.zramswap.sh
Our device uses half of it's ram as ZRAM, this simulates having more ram by
compressing ram, this is a generally good thing but our devices use too much ram for this and the cpu has to constantly work to decompress it and compress it, losing resources and wasting the battery life, around line 31:
sz_zram=$((((memtotal_kb/3) / ${nr_zramdev}) * 1024)) , the changed part is memtotal_kb/3 where by default it is memtotal_kb/2. you may also use memtotal_kb/4, 4 uses around 220 mb for zram, and 3 310,
choose your pick, with the increase in zram amount there is a drop in battery life and cpu resourcefulness but more available ram and vice versa
in this file is also the value for swappiness, and it is set to 80, this means that the OS will aggressively swap ram when it's not yet needed... lower it to something like 50, 60.
line 61,
swappiness_new=60
camera_config.xml
this is really just a simple hack to enable panorama mode in the default camera app
around the first lines, change
Code:
<item name="mode_rear_supported">
mode_normal
</item>
to
Code:
<item name="mode_rear_supported">
mode_normal,
mode_panorama
</item>
com.lge.music
one more cheap demonstration but in a nutshell it will allow audio effects and better audio quality in the default music application
media_profiles.xml
to be honest I was lazy for this, but my pal over here:http://forum.xda-developers.com/android/development/fix-low-mic-volume-bad-quality-headset-t3270558 covered it up and gave me permission for use
mixer_paths.xml
I was lazy for this too, see here:http://forum.xda-developers.com/android/development/fix-low-mic-volume-bad-quality-headset-t3270558, the file from tweaks.zip is his modification
anyone is free to correct me if i'm wrong
To-Do:
-LCD Density tweak
-ADJ Entries
-gps
-Explain Odexing
Reserved ^^
will these work on the leon h320 mt6582?

Stock Kernel Optimisation

Hello M2 users, y'all probably wondering what did I mean by the thread title above so I'll get straight to the point nice and simple.
Using a stock kernel sucks, any CPU Tuner will go bonkers adjusting frequencies only to see it revert to stock again. So, while browsing for ways to optimise performance and battery in the Xperia, I came across this guide (now updated to this) on our Interactive governor. While it's on a different phone, the explanations are clear enough to tell anyone that yes, this can be adapted so long as you are rooted.
So read the whole post to give yourself an idea on the functions available for you. I use Kernel Adiutor for this as it seems most reliable.
But first, go into your build.prop files and edit this code:
Code:
ro.min_freq_0=300000
Set the frequency to 300000 (300Mhz) and restart or your phone will always be stuck on a higher frequency.
Also in the Kernel Samepage Merging, turn it off. There isn't much of an impact between battery and performance so this function is useless.
So now head into the CPU section, towards Tunables and add the following values according to the screenshot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[/img]
This gave me 50% battery usage over 26 hours, with 5 hours of Screen on Time used by chatting, gaming, and web surfing. Pretty good looking at all the times I've run the battery with less usage.
Anyhoo, I hope these settings are useful for y'all and if anyone has any modifications to these settings please do share it with your results. This may perhaps be the only guide where we control the governor on a deeper level rather than taking it as it is, so let's squeeze as much juice out of this phone as possible.
Update: These are the settings I've settled with, no negligible battery life and not much of an impact on performance. The voltage tables for the SD400 looks to be dynamic so you can't get an exact reading and anyone who looks at it will suggest you buy a new phone instead >.>
How do you add multiple values on one settings ?
I can't seem to be able to
FrWhyMe said:
How do you add multiple values on one settings ?
I can't seem to be able to
Click to expand...
Click to collapse
Right now you can only add multiples for above_hispeed_delay and target_load. Just tap the space bar each time you add in new values and the app will auto-arrange it for you. If it still doesn't work, what kernel are you using?
Can you repost the photo or write the values please?
basem_ym said:
Can you repost the photo or write the values please?
Click to expand...
Click to collapse
I'm not using this anymore, Sony's stock setting is fine unless you can somehow change the voltage.
AutumQueen92 said:
I'm not using this anymore, Sony's stock setting is fine unless you can somehow change the voltage.
Click to expand...
Click to collapse
I spent last week trying to study and understand those govenors.
Since yesterday, I was trying and tunning the stock interactive govenor
I didnt notice any major changes in performance but I was surprised by power consumption
Ex: I used to play Solitaire everyday more than 2 times a day, each time I spend like 1 hour and my battery drops like 10%
After tunning the interactive govenor my battery drops like 4-6%
Which means its much better than stock
I'm using EagleExperience rom which come with stock kernel
Anyway I just want to know your tunnables because the photo you posted is not opening
I want to compare them with my numbers
Thank you for this post and sorry for bad english
It's not my first lang.
basem_ym said:
I spent last week trying to study and understand those govenors.
Since yesterday, I was trying and tunning the stock interactive govenor
I didnt notice any major changes in performance but I was surprised by power consumption
Ex: I used to play Solitaire everyday more than 2 times a day, each time I spend like 1 hour and my battery drops like 10%
After tunning the interactive govenor my battery drops like 4-6%
Which means its much better than stock
I'm using EagleExperience rom which come with stock kernel
Anyway I just want to know your tunnables because the photo you posted is not opening
I want to compare them with my numbers
Thank you for this post and sorry for bad english
It's not my first lang.
Click to expand...
Click to collapse
These are my current settings, the 300Mhz and 787Mhz share the same voltage and any higher frequency has the same voltage too so it's more efficient to use Sony's settings. The only difference in here is I used Intelliplug to better control how they ramp up.
AutumQueen92 said:
These are my current settings, the 300Mhz and 787Mhz share the same voltage and any higher frequency has the same voltage too so it's more efficient to use Sony's settings. The only difference in here is I used Intelliplug to better control how they ramp up.
Click to expand...
Click to collapse
In target loads, you have frequencies that aren't supported on stock kernel (1.4GHz)
DavidMKD said:
In target loads, you have frequencies that aren't supported on stock kernel (1.4GHz)
Click to expand...
Click to collapse
That's because my kernel is overclocked.
above_hispeed_delay: 40000 998400:45000 1090400:50000 1190400:55000
boost: 0
boostpulse_duration: 0
go_hispeed_load: 99
hispeed_freq: 787200
io_is_busy_: 0
min_sample_time: 0
sampling_down_factor:1
sync_freq:300000
target loads: 80 600000:80 787200:90 998400:95 1090400:97 1190400:99
timer_rate: 60000
timer_slack: 480000
up_threshold_any_cpu_freq: 0
up_threshold_any_cpu_load: 0
Ksm off , no hotplug min:300 mhz max:1190 mhz
I am using this settings for now. I tried to lock 300-787 mhz for the my daily usage (whatsapp, youtube, cm browser, simple games like fun run) high frequences for heavy games, installing apps.
Is that config fine ? I tried semil's config its battery performance was great but i think it is slow config.
batuskas said:
above_hispeed_delay: 40000 998400:45000 1090400:50000 1190400:55000
boost: 0
boostpulse_duration: 0
go_hispeed_load: 99
hispeed_freq: 787200
io_is_busy_: 0
min_sample_time: 0
sampling_down_factor:1
sync_freq:300000
target loads: 80 600000:80 787200:90 998400:95 1090400:97 1190400:99
timer_rate: 60000
timer_slack: 480000
up_threshold_any_cpu_freq: 0
up_threshold_any_cpu_load: 0
Ksm off , no hotplug min:300 mhz max:1190 mhz
I am using this settings for now. I tried to lock 300-787 mhz for the my daily usage (whatsapp, youtube, cm browser, simple games like fun run) high frequences for heavy games, installing apps.
Is that config fine ? I tried semil's config its battery performance was great but i think it is slow config.
Click to expand...
Click to collapse
I try not to limit my frequencies since the point is to go high performance only when needed. I'm not sure about your config since I never turn off hotplugs.

How To Guide Optimise Stock Kernel Scheduler & Governor Setting

So, after months of using Pixel 7 family, surely we all know that Tensor 2 is not exactly the best flagship SOC in term of raw power or energy usage, probably due to it's "Exynos Genetics Trait"
that being said, doesnt mean it's down bad. And with some optimisation, we can always try to make it run better. One of the example is by seeing how much better it run on custom kernel. But what about other stock kernel user ?
Well, fortunately, as long as we have root access, the stock kernel still allow us to play with some parameter. And here are some tunables parameters that i use to balance the energy usage and responsiveness of the device. (my aim is 10% battery for 1 Hour of SoT and ±0-1% decrease during 6-10hrs idle)
If you want to know more about each parameters, you can google a lot of linux kernel documentation (like here for example : https://access.redhat.com/solutions/177953)
but for now i'll just write down the change and my configurations. (I used EX Kernel Manager to change the parameters) :
CPU Section :
Switch governors for all CPU clusters from 'sched_pixel' to 'shedutil'
Open "Governor Options" and change the 'rate_limit_us' for all clusters from '10000' to '0'
Open "CPU scheduler options" and use bellow value for respected parameters :
sched_wakeup_granularity_ns : 10000000
sched_tunable_scaling : 1
sched_min_granulatity_ns : 2000000
sched_latency_ns : 12000000
Memory Section :
Disable "ZRAM"
That's it for now. Try and feedback if you find any improvement in your energy usage.
I've been using it for weeks, and pretty happy especially with idle drain. As for SoT, normally i end up with 5-6 Hrs screen time when i down to bed with ±30% battery remaining.
otonieru said:
So, after months of using Pixel 7 family, surely we all know that Tensor 2 is not exactly the best flagship SOC in term of raw power or energy usage, probably due to it's "Exynos Genetics Trait"
that being said, doesnt mean it's down bad. And with some optimisation, we can always try to make it run better. One of the example is by seeing how much better it run on custom kernel. But what about other stock kernel user ?
Well, fortunately, as long as we have root access, the stock kernel still allow us to play with some parameter. And here are some tunables parameters that i use to balance the energy usage and responsiveness of the device. (my aim is 10% battery for 1 Hour of SoT and ±0-1% decrease during 6-10hrs idle)
If you want to know more about each parameters, you can google a lot of linux kernel documentation (like here for example : https://access.redhat.com/solutions/177953)
but for now i'll just write down the change and my configurations. (I used EX Kernel Manager to change the parameters) :
CPU Section :
Switch governors for all CPU clusters from 'sched_pixel' to 'shedutil'
Open "Governor Options" and change the 'rate_limit_us' for all clusters from '10000' to '0'
Open "CPU scheduler options" and use bellow value for respected parameters :
sched_wakeup_granularity_ns : 10000000
sched_tunable_scaling : 1
sched_min_granulatity_ns : 2000000
sched_latency_ns : 12000000
Memory Section :
Disable "ZRAM"
That's it for now. Try and feedback if you find any improvement in your energy usage.
I've been using it for weeks, and pretty happy especially with idle drain. As for SoT, normally i end up with 5-6 Hrs screen time when i down to bed with ±30% battery remaining.
Click to expand...
Click to collapse
Someone said that it reverts back once you reboot?
elong7681 said:
Someone said that it reverts back once you reboot?
Click to expand...
Click to collapse
In the Franco Kernel Manager, there's an option to "keep" the new settings on a reboot. (Not sure about the EX Kernel Manager.)
elong7681 said:
Someone said that it reverts back once you reboot?
Click to expand...
Click to collapse
Right, it reverts back for CPU Governor (Cluster 3) after a reboot. (with EXKM)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Then I tried with FKM and problem is the same.
I will see after the night how is my battery drain.
But i can't complain because i loose only 2 or 3% during night (8h)
(Bluetooth and 5G on) No wifi because 5G signal is good.
No custom rom, rooted, january update.
Plathoon said:
Right, it reverts back for CPU Governor (Cluster 3) after a reboot. (with EXKM)
View attachment 5817379
Then I tried with FKM and problem is the same.
I will see after the night how is my battery drain.
But i can't complain because i loose only 2 or 3% during night (8h)
(Bluetooth and 5G on) No wifi because 5G signal is good.
No custom rom, rooted, january update.
Click to expand...
Click to collapse
It's expected that it reverts back to default because it's controlled by multiple things. People shouldn't change the governor. There is a write-up on this in Freak's kernel thread.
ekin_strops said:
It's expected that it reverts back to default because it's controlled by multiple things. People shouldn't change the governor. There is a write-up on this in Freak's kernel thread.
Click to expand...
Click to collapse
Can you provide a link to the write-up please?
Pixel86 said:
Can you provide a link to the write-up please?
Click to expand...
Click to collapse
Post
Mrcactuseater what's your deal always laughing at genuine posts?
ekin_strops said:
It's expected that it reverts back to default because it's controlled by multiple things. People shouldn't change the governor. There is a write-up on this in Freak's kernel thread.
Click to expand...
Click to collapse
Actually you can change the CPU governor from the default one to one of the additional existing alternatives.
The issue is just that the frequency scaling driver for the affected CPU cluster(s) will break if the PowerHAL detects that the Sched_Pixel governor isn't "there" anymore for doing the job that it is supposed to do.
Plathoon said:
But i can't complain because i loose only 2 or 3% during night (8h)
(Bluetooth and 5G on) No wifi because 5G signal is good.
No custom rom, rooted, january update.
Click to expand...
Click to collapse
Damn that's less than half of mine...
Not_Purgatory said:
Actually you can change the CPU governor from the default one to one of the additional existing alternatives.
The issue is just that the frequency scaling driver for the affected CPU cluster(s) will break if the PowerHAL detects that the Sched_Pixel governor isn't "there" anymore for doing the job that it is supposed to do.
Click to expand...
Click to collapse
I never wrote you can't change it, I wrote people SHOULDN'T change it to avoid the issues you mentioned.
You say to try to deactivate zram. Is there any real benefit? Zram is useful?
Techboyz97 said:
You say to try to deactivate zram. Is there any real benefit? Zram is useful?
Click to expand...
Click to collapse
You save CPU cycles at the expense of additional vRAM.
If you use smartpack kernel manager there's an option to apply all changes with a script on boot. That's the way I've always worked with kernels that won't allow changes to stick on boot
Pixel86 said:
You save CPU cycles at the expense of additional vRAM.
Click to expand...
Click to collapse
WUT? lol

Categories

Resources