Interactive governor VS sched - Google Pixel Questions & Answers

I've been reading about some kernel modification staff for couple of days now. I have searched for best kernel governor for Google pixel, there was 2-3 threads and in all of them people stated like "bro you're crazy, don't touch stock sched governor it's the most optimised one for pixel". I was like okay, I won't touch, I get it. But than I saw one thread where users voted for which governors they used, and interactive governor had enormous votes compared to other ones, so I thought there must be the reason for that. After messing up with interactive governor settings, I managed to get about 25-30% more battery life than I had on sched. all this without any noticable decrease in performance. Sched governor rises frequencies so often even if you are just on home screen and simply press empty space, all four CPU cores go to sky at max speed, whereas interactive governor is like quiet intelligent killer who sits and waits for big tasks to go full power. Screenshot below shows my screen on time. Before that, it was somewhere between 3-4 hours. So, any thoughts or links about why I could be wrong and what am I missing - would be very very useful.

Interactive again, this time more optimised.

Levan_i said:
I've been reading about some kernel modification staff for couple of days now. I have searched for best kernel governor for Google pixel, there was 2-3 threads and in all of them people stated like "bro you're crazy, don't touch stock sched governor it's the most optimised one for pixel". I was like okay, I won't touch, I get it. But than I saw one thread where users voted for which governors they used, and interactive governor had enormous votes compared to other ones, so I thought there must be the reason for that. After messing up with interactive governor settings, I managed to get about 25-30% more battery life than I had on sched. all this without any noticable decrease in performance. Sched governor rises frequencies so often even if you are just on home screen and simply press empty space, all four CPU cores go to sky at max speed, whereas interactive governor is like quiet intelligent killer who sits and waits for big tasks to go full power. Screenshot below shows my screen on time. Before that, it was somewhere between 3-4 hours. So, any thoughts or links about why I could be wrong and what am I missing - would be very very useful.
Click to expand...
Click to collapse
So other than changing to interactive governor, which settings did you change?

Arju said:
So other than changing to interactive governor, which settings did you change?
Click to expand...
Click to collapse
Decreased cpu frequencies a bit, also changed some settings inside the interactive gov. Exkernel manager app also helps a lot with blocking wakelocks. Right now, I have small cores set to sched and big cores set to interactive, I guess this variant also will make a good screen on time and better performance. Anything else is the same as it was on sched governor before

Here are the screenshots

Current Sot is 1:30 so at the zero battery it must be somewhere near 4*1:30=6 hours

I suppose I'll stay with sched+interactive governor

Related

Looking for a truly wise governor

Hi,
I have Xperia Neo V, GB 2.3.4, rooted, NightElf 10, codename_ei8ght, OC: 245-1400 MHz. Usually I use SmartassV2 + SIO (I don't know why SIO - I've been told to choose this one, so I did). I've also briefly tested many other governors, but to tell the truth, I don't see much real-life difference between them (apart from the CPU Spy logs).
The problem that bothers me is that I need to manually change the OC settings, each time I want to use an app or a game that don't need 1400 MHz. For example - when I want to play AngryBirds. The game works perfectly on 1000 MHz, so why waste the battery power and generate lots of heat? But any governor I know, will "give" 1400 MHz to this game. That's why I need to switch down manually before playing. The same thing with many other apps, like, for example - navigation. It's absolutely enough to navigate on 1000 MHz, but any governor will set the CPU to 1400 MHz when Navigation is running.
Looking for a truly wise governor, that would give as much MHz as needed for an app/game to run smoothly, but not more. Is such a governor even possible to create?
Thank you.
illinoi for
from my observation SmartAssV2 tends to change frequency too much: up, down, up, down. As I mostly want to get best battery life I decided to switch to Conservative - the phone is still responsive (i can't notice difference) but when I dont do anything seems to keep the frequency lower.
I still have problem what governor to choose for sleep state - now im testing PowerSave (so it keeps minimal frequence) so far seems to work (even worked while playing music).
IMO writing too complicated governors could only slow down the system, so it is hard task to decide in real time which frequency is still sufficient for smooth play and at the same time as low as possible.
Do all governors have "deep sleep" mode? Is it governor-dependent at all?
I have some problems with refreshing news widget - I discovered that it is never refreshed in deep sleep mode.
Can I disable deep sleep mode?
Thanks.

[Q] Most battery efficient kernel and settings

I'm using and experimenting around with ARHD now.
Using Sultan's latest kernel.
I am a guy that likes battery a lot. Under what settings will the battery be the most efficient?
I'm using.
MPDecision(or smth) - On
Badass
Balanced
Max -810
SecP - 594(or the closest one to it)
ThirdP - 704(or the closest one to it)
SIO.
Vsync - ON
Fsync - Off(dont know what this really do anyway)
Max aggressive OOM
No Swaps.
-50mv
disabled logcat
If its okay I'd love suggestions to max out battery life.
Or the best efficiency to balance battery life and performance prioritizing on battery life. (at least no lags on UI)
KiD3991 said:
I'm using and experimenting around with ARHD now.
Using Sultan's latest kernel.
I am a guy that likes battery a lot. Under what settings will the battery be the most efficient?
I'm using.
MPDecision(or smth) - On
Badass
Balanced
Max -810
SecP - 594(or the closest one to it)
ThirdP - 704(or the closest one to it)
SIO.
Vsync - ON
Fsync - Off(dont know what this really do anyway)
Max aggressive OOM
No Swaps.
-50mv
disabled logcat
If its okay I'd love suggestions to max out battery life.
Or the best efficiency to balance battery life and performance prioritizing on battery life. (at least no lags on UI)
Click to expand...
Click to collapse
Don't make your OOM settings that aggressive if you want battery life. When you have the OOM set to the most aggressive setting, the phone will use more CPU power and thus battery power in order to clean the RAM. Another problem with OOM settings that aggressive is that applications you use frequently and multitask with will be terminated and when you open them the phone has to open them from scratch all over again, wasting much more power than if the program was still cached in the RAM.
I see. Thanks for the tip. I always thought when OOM is set to maximum, there won't be background apps running so it'll save battery.
If its not too much to ask, what about governor and scheduler combination? Max freq I feel smooth is 910. So I can coup with low freq. With no GPU underclock NFS most wanted still runs smooth so its fine too. I disable Vsync because it felt like its using CPU power to keep the sync on.
KiD3991 said:
I see. Thanks for the tip. I always thought when OOM is set to maximum, there won't be background apps running so it'll save battery.
If its not too much to ask, what about governor and scheduler combination? Max freq I feel smooth is 910. So I can coup with low freq. With no GPU underclock NFS most wanted still runs smooth so its fine too. I disable Vsync because it felt like its using CPU power to keep the sync on.
Click to expand...
Click to collapse
Disabling vsync causes a lot of visual tearing and I'm not sure if doing that saves power
Best I/O scheduler is SIO. As for governor, best for battery is badass. In the next release of my kernel I'll add badass GPU scaling so you can save even more power
Other ways to save power: use PM_MAX instead of PM_FAST and set the 2D GPU frequency to 145MHz.

[Q] Governors' behavior on deep sleep

Hi, I read many posts about governors but no one has answered my question yet. The phone behavior in deep sleep mode is influenced by governor?
For example, I know smartass has a sleep profile so that while the screen is off the frequency can't ramp beyond a fixed limit, but when my phone is deep sleeping all governors have same frequency or the aggressive ones can drain battery faster?
I'm really interesting cause my ROM generates a long lag (3 secs or more) while receiving calls but it doesn't if I set lionheart+row. My phone has not a big battery and using a performance gov like lionheart is a little risky; my phone is often screen off for long time and if lionheart affect my deep sleep drain i'll set smartassV2 and deal with the lag, otherwise I'll try lionheart.
I know also that i have to try an then evaluate if i'm satisfied... etc. etc. but I'm an engineer and I like to know theorical bases before doing experiments. :laugh::laugh:
Thanks in advance.

[BATTERY GUIDE] Ultimate battery guide and talk topic

{
"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"
}
Ultimate battery guide
Battery, one of the most important thing on todays phones. Even if we have awesome battery life we always want more and it is never enough.
This is the small guide to tips, trick and tweaks to improve battery life.
This topic is to share tips and tricks and basically just small talk about battery and sharing screenshots.
Use Gsam or Android battery history to show your battery life.​
Our goal is to make most of the screen on time with average use of 24 hours. So lets start.
Post 1: Tips
Post 2: ROMS, kernels, undervolting, underclocking
Tips to improve battery life
Location services
One of the first thing that your device will ask when you are setting up your phone. Most of the users let them ON and just forgot about them. Location services are battery hungry and the will drain your battery like you drinking juice.
Thing is that you do not need them always, just sometimes. Turn it OFF then. I have them turned off always and when I need it I just simple turn it ON.​
Wi-Fi
Wi-Fi scanning is thing that will drain your battery always. When you are out and you are not expecting to use wi-fi any time soon turn it off. You do not need to run scanning all the time.
You could also edit build.prop to reduce.
Edit wifi.supplicant_scan_interval. Default value is 180. You can set it higher to reduce the scanning intervals.​
Signal strength / Network mode
Signal strength is always trouble for battery. Weak signal will drain more battery. Also, constant changing between 4G/3G and 2G will drain battery faster.
Tweak to this is to set your phone to only use 2G, 3G or 4G.
Example: when I am not using my phone, or it is connected to wifi my network is on 2G. I dont need 3G or 4G then and changing network state is disabled then because it will stay always on 2G. I found it has positive effect on battery.
When I need, I just simple toggle 3G or 4G.​
Screen brightness
Screen is the thing that drains most of our battery. There is not much philosophy here. Higher brightness will drain more battery.
My personal setup is that I do not use auto brightness. I always change brightness manually. Right now during winter my brightness does not go more then 25% outside, and inside it is lower. At night it is under 10%.
I found that not using auto brightness has also slight positive effect on battery.​
Syncing / Airplane mode / Vibration / Animations / Task Killers
Lets start in order.
Syncing: more syncing your device does it drains more battery. On your phone probably you do not to sync all accounts and apps you have every few minutes or hours. Set those apps you do not need on manual sync.
Airplane mode: I am using airplane mode during night because I do not want to be disturbed during sleep. With airplane mode battery consumption during night is 0%. Yes, zero percent.
Vibration: more your device vibrates, more battery it drains. You can reduce vibrations on keyboard settings and similar. I found that is not much effect on battery but it has slight.
Animations: animations drains your battery also and who really needs them. Personally, I am annoyed with them and I always switch them to 0 or .5. You can do that in Settings-Developers options
Task Killers: task killers, clean maters and similar software is a big NO. You dont need it. It does more damage then good.​
Bloatware
Yes, bloatware. There is huge amount of bloatware on our phones and we really do not need it. So, what to do? Freeze that bloatware.
You can find list of apps HERE.​
ROMS and kernels
Custom ROMs and kernels will give you in most cases better battery life then stock firmware. Plus there is huge amount of options to play with. You can read more in posts bellow.​
Summary:
If you change some of those thing you will see the effect.
You can always use apps like Greenify or Tasker and play with their options.​
How to follow your battery life
GSam Battery Monitor
This one of the most useful apps to track your battery. On Lollipop (even on Kitkat) it will not give you much useful info without root.
If you are using it without root everytime you reboot the phone statistic would be reset also. If you have root it will give you access to wakelocks and some other stuff, plus stats would not get reseted.
Play store link​
Wakelock detector
Wakelocks, one of the painful things on phone. If you see your battery is draining faster in idle then you got problem with wakelocks. This is useful app because it shows wakelocks on very simple setup and you can discover which app is causing which wakelock.
Play Store link​
Disable service
If you are using Wakelock detector you need this app also. With this app you can freeze every single process that app can launch. It will provide detail look on all processes from apps. With this app I have reduced wakelocks to 1%.
Play Store link​
ROMS
Discussion about ROMs never looked nice. It always gets to what you personally like. Some ROMs will be easier on battery, some will be rough. You will never know before you try them.​
Kernels
Kernels are similar to ROMS but you can play with them. Currently there is not much kernels available but you can play even with stock one.
I recommend to use Trickster MOD Kernel Settings app to play with kernel settings.​
Undervoting
Undervolting is the thing when you control how much power each CPU frequency can have. Trickster MOD app gives really nice view on them. You can undervolt every frequency by itself or all in one.
My personal recommendation is to undervolt them at once. I always use -50 value. Found it stable.
Of course, you can always play with different values but remember: when you play with this do not click on option "Set on Boot" or you will end in bootloop if you click it. Click that option when you find out that values are safe for using and stable.​
Underclocking
Underclocking is changing your CPU frequency. Rough truth is that we dont need our CPU to run on 2,7 GHz in normal use. Only gamers will need that probably but since this is not thread were we are aiming gamers we dont need that high frequency.
Me personally, I use always 1,7 GHz or 1,9 GHz. To my daily usage (most common like everyone else but without games) this is more then enough. Everything is still smooth and runs fast.​
Governors
A CPU governor in Android controls how the CPU raises and lowers its frequency in response to the demands the user is placing on their device. Governors are especially important in smartphones and tablets because they have a large impact on the apparent fluidity of the interface and the battery life of the device over a charge.
You can find explanation hidden here.
Many users have wrote about governors and they are practically the same on most of the phones so I will copy list from droidphile.
On his topic you have more details about governors.
Link to original topic: http://forum.xda-developers.com/galaxy-s2/general/ref-kernel-governors-modules-o-t1369817
I) MANUAL:
These are the 19 governors we're talking about.
1) Ondemand
2) Ondemandx
3) Conservative
4) Interactive
5) Interactivex
6) Lulzactive
7) Lulzactiveq
8) Smartass
9) SmartassV2
10) Intellidemand
11) Lazy
12) Lagfree
13) Lionheart
14) LionheartX
15) Brazilianwax
16) SavagedZen
17) Userspacce
18) Powersave
19) Performance
1) Ondemand:
Default governor in almost all stock kernels. One main goal of the ondemand governor is to switch to max frequency as soon as there is a CPU activity detected to ensure the responsiveness of the system. (You can change this behavior using smooth scaling parameters, refer Siyah tweaks at the end of 3rd post.) Effectively, it uses the CPU busy time as the answer to "how critical is performance right now" question. So Ondemand jumps to maximum frequency when CPU is busy and decreases the frequency gradually when CPU is less loaded/apporaching idle. Even though many of us consider this a reliable governor, it falls short on battery saving and performance on default settings. One potential reason for ondemand governor being not very power efficient is that the governor decide the next target frequency by instant requirement during sampling interval. The instant requirement can response quickly to workload change, but it does not usually reflect workload real CPU usage requirement in a small longer time and it possibly causes frequently change between highest and lowest frequency.
2) Ondemandx:
Basically an ondemand with suspend/wake profiles. This governor is supposed to be a battery friendly ondemand. When screen is off, max frequency is capped at 500 mhz. Even though ondemand is the default governor in many kernel and is considered safe/stable, the support for ondemand/ondemandX depends on CPU capability to do fast frequency switching which are very low latency frequency transitions. I have read somewhere that the performance of ondemand/ondemandx were significantly varying for different i/o schedulers. This is not true for most of the other governors. I personally feel ondemand/ondemandx goes best with SIO I/O scheduler.
3) Conservative:
A slower Ondemand which scales up slowly to save battery. The conservative governor is based on the ondemand governor. It functions like the Ondemand governor by dynamically adjusting frequencies based on processor utilization. However, the conservative governor increases and decreases CPU speed more gradually. Simply put, this governor increases the frequency step by step on CPU load and jumps to lowest frequency on CPU idle. Conservative governor aims to dynamically adjust the CPU frequency to current utilization, without jumping to max frequency. The sampling_down_factor value acts as a negative multiplier of sampling_rate to reduce the frequency that the scheduler samples the CPU utilization. For example, if sampling_rate equal to 20,000 and sampling_down_factor is 2, the governor samples the CPU utilization every 40,000 microseconds.
4) Interactive:
Can be considered a faster ondemand. So more snappier, less battery. Interactive is designed for latency-sensitive, interactive workloads. Instead of sampling at every interval like ondemand, it determines how to scale up when CPU comes out of idle. The governor has the following advantages: 1) More consistent ramping, because existing governors do their CPU load sampling in a workqueue context, but interactive governor does this in a timer context, which gives more consistent CPU load sampling. 2) Higher priority for CPU frequency increase, thus giving the remaining tasks the CPU performance benefit, unlike existing governors which schedule ramp-up work to occur after your performance starved tasks have completed. Interactive It's an intelligent Ondemand because of stability optimizations. Why??
Sampling the CPU load every X ms (like Ondemand) can lead to under-powering the CPU for X ms, leading to dropped frames, stuttering UI, etc. Instead of sampling the CPU at a specified rate, the interactive governor will check whether to scale the CPU frequency up soon after coming out of idle. When the CPU comes out of idle, a timer is configured to fire within 1-2 ticks. If the CPU is very busy between exiting idle and when the timer fires, then we assume the CPU is underpowered and ramp to max frequency.
5) Interactivex:
This is an Interactive governor with a wake profile. More battery friendly than interactive.
6) Lulzactive:
This new find from Tegrak is based on Interactive & Smartass governors and is one of the favorites.
Old Version: When workload is greater than or equal to 60%, the governor scales up CPU to next higher step. When workload is less than 60%, governor scales down CPU to next lower step. When screen is off, frequency is locked to global scaling minimum frequency.
New Version: Three more user configurable parameters: inc_cpu_load, pump_up_step, pump_down_step. Unlike older version, this one gives more control for the user. We can set the threshold at which governor decides to scale up/down. We can also set number of frequency steps to be skipped while polling up and down.
When workload greater than or equal to inc_cpu_load, governor scales CPU pump_up_step steps up. When workload is less than inc_cpu_load, governor scales CPU down pump_down_step steps down.
Example:
Consider
inc_cpu_load=70
pump_up_step=2
pump_down_step=1
If current frequency=200, Every up_sampling_time Us if cpu load >= 70%, cpu is scaled up 2 steps - to 800.
If current frequency =1200, Every down_sampling_time Us if cpu load < 70%, cpu is scaled down 1 step - to 1000.
7) Lulzactiveq:
Lulzactiveq is a modified lulzactive governor authored by XDA member robertobsc and is adapted in Siyah kernel for GS2 and GS3. Lulzactiveq aims to optimize the second version of luzactive from Tegrak by a) providing an extra parameter (dec_cpu_load) to make scaling down more sensible, and b) incorporating hotplug logic to the governor. Luzactiveq is the first ever interactive based governor with hotplugging logic inbuilt (atleast the first of its kind for the exynos platform). When CPU comes out of idle loop and it's time to make a scaling decision, if load >= inc_cpu_load CPU is scaled up (like original luzactiveq) and if load <dec_cpu_load, CPU is scaled down. This possibly eliminates the strict single cut-off frequency for luzactiveq to make CPU scaling decisions. Also, stand hotplug logic runs as a separate thread with the governor so that external hotplugging logic is not required to control hotplug in and out (turn On and Off) CPU cores in multi core devices like GS2 or GS3. Only a multi core aware governor makes real sense on muti-core devices. Lulzactiveq and pegasusq aims to do that.
8) Smartass:
Result of Erasmux rewriting the complete code of interactive governor. Main goal is to optimize battery life without comprising performance. Still, not as battery friendly as smartassV2 since screen-on minimum frequency is greater than frequencies used during screen-off. Smartass would jump up to highest frequency too often as well.
9) SmartassV2:
Version 2 of the original smartass governor from Erasmux. Another favorite for many a people. The governor aim for an "ideal frequency", and ramp up more aggressively towards this freq and less aggressive after. It uses different ideal frequencies for screen on and screen off, namely awake_ideal_freq and sleep_ideal_freq. This governor scales down CPU very fast (to hit sleep_ideal_freq soon) while screen is off and scales up rapidly to awake_ideal_freq (500 mhz for GS2 by default) when screen is on. There's no upper limit for frequency while screen is off (unlike Smartass). So the entire frequency range is available for the governor to use during screen-on and screen-off state. The motto of this governor is a balance between performance and battery.
10) Intellidemand:
Intellidemand aka Intelligent Ondemand from Faux is yet another governor that's based on ondemand. Unlike what some users believe, this governor is not the replacement for OC Daemon (Having different governors for sleep and awake). The original intellidemand behaves differently according to GPU usage. When GPU is really busy (gaming, maps, benchmarking, etc) intellidemand behaves like ondemand. When GPU is 'idling' (or moderately busy), intellidemand limits max frequency to a step depending on frequencies available in your device/kernel for saving battery. This is called browsing mode. We can see some 'traces' of interactive governor here. Frequency scale-up decision is made based on idling time of CPU. Lower idling time (<20%) causes CPU to scale-up from current frequency. Frequency scale-down happens at steps=5% of max frequency. (This parameter is tunable only in conservative, among the popular governors )
To sum up, this is an intelligent ondemand that enters browsing mode to limit max frequency when GPU is idling, and (exits browsing mode) behaves like ondemand when GPU is busy; to deliver performance for gaming and such. Intellidemand does not jump to highest frequency when screen is off.
11) Lazy:
This governor from Ezekeel is basically an ondemand with an additional parameter min_time_state to specify the minimum time CPU stays on a frequency before scaling up/down. The Idea here is to eliminate any instabilities caused by fast frequency switching by ondemand. Lazy governor polls more often than ondemand, but changes frequency only after completing min_time_state on a step overriding sampling interval. Lazy also has a screenoff_maxfreq parameter which when enabled will cause the governor to always select the maximum frequency while the screen is off.
12) Lagfree:
Lagfree is similar to ondemand. Main difference is it's optimization to become more battery friendly. Frequency is gracefully decreased and increased, unlike ondemand which jumps to 100% too often. Lagfree does not skip any frequency step while scaling up or down. Remember that if there's a requirement for sudden burst of power, lagfree can not satisfy that since it has to raise cpu through each higher frequency step from current. Some users report that video playback using lagfree stutters a little.
13) Lionheart:
Lionheart is a conservative-based governor which is based on samsung's update3 source. Tweaks comes from 1) Knzo 2) Morfic. The original idea comes from Netarchy. See here. The tunables (such as the thresholds and sampling rate) were changed so the governor behaves more like the performance one, at the cost of battery as the scaling is very aggressive.
To 'experience' Lionheart using conservative, try these tweaks:
sampling_rate:10000 or 20000 or 50000, whichever you feel is safer. (transition latency of the CPU is something below 10ms/10,000uS hence using 10,000 might not be safe).
up_threshold:60
down_threshold:30
freq_step:5
Lionheart goes well with deadline i/o scheduler. When it comes to smoothness (not considering battery drain), a tuned conservative delivers more as compared to a tuned ondemand.
14) LionheartX
LionheartX is based on Lionheart but has a few changes on the tunables and features a suspend profile based on Smartass governor.
15) Brazilianwax:
Similar to smartassV2. More aggressive ramping, so more performance, less battery.
16) SavagedZen:
Another smartassV2 based governor. Achieves good balance between performance & battery as compared to brazilianwax.
17) Userspace:
Instead of automatically determining frequencies, lets user set frequencies.
18) Powersave:
Locks max frequency to min frequency. Can not be used as a screen-on or even screen-off (if scaling min frequency is too low).
19) Performance:
Sets min frequency as max frequency. Use this while benchmarking!​
Schedulers
Everything has been said about them so I will use droidphile explanations.
Link to original topic: http://forum.xda-developers.com/galaxy-s2/general/ref-kernel-governors-modules-o-t1369817
Q. "What purposes does an i/o scheduler serve?"
A.
Minimize hard disk seek latency.
Prioritize I/O requests from processes.
Allocate disk bandwidth for running processes.
Guarantee that certain requests will be served before a deadline.
So in the simplest of simplest form: Kernel controls the disk access using I/O Scheduler.
Q. "What goals every I/O scheduler tries to balance?"
A.
Fairness (let every process have its share of the access to disk)
Performance (try to serve requests close to current disk head position first, because seeking there is fastest)
Real-time (guarantee that a request is serviced in a given time)
Q. "Description, advantages, disadvantages of each I/O Scheduler?"
A.
1) Noop
Inserts all the incoming I/O requests to a First In First Out queue and implements request merging. Best used with storage devices that does not depend on mechanical movement to access data (yes, like our flash drives). Advantage here is that flash drives does not require reordering of multiple I/O requests unlike in normal hard drives.
Advantages:
Serves I/O requests with least number of cpu cycles. (Battery friendly?)
Best for flash drives since there is no seeking penalty.
Good throughput on db systems.
Disadvantages:
Reduction in number of cpu cycles used is proportional to drop in performance.
2) Deadline
Goal is to minimize I/O latency or starvation of a request. The same is achieved by round robin policy to be fair among multiple I/O requests. Five queues are aggressively used to reorder incoming requests.
Advantages:
Nearly a real time scheduler.
Excels in reducing latency of any given single I/O.
Best scheduler for database access and queries.
Bandwidth requirement of a process - what percentage of CPU it needs, is easily calculated.
Like noop, a good scheduler for solid state/flash drives.
Disadvantages:
When system is overloaded, set of processes that may miss deadline is largely unpredictable.
3) CFQ
Completely Fair Queuing scheduler maintains a scalable per-process I/O queue and attempts to distribute the available I/O bandwidth equally among all I/O requests. Each per-process queue contains synchronous requests from processes. Time slice allocated for each queue depends on the priority of the 'parent' process. V2 of CFQ has some fixes which solves process' i/o starvation and some small backward seeks in the hope of improving responsiveness.
Advantages:
Considered to deliver a balanced i/o performance.
Easiest to tune.
Excels on multiprocessor systems.
Best database system performance after deadline.
Disadvantages:
Some users report media scanning takes longest to complete using CFQ. This could be because of the property that since the bandwidth is equally distributed to all i/o operations during boot-up, media scanning is not given any special priority.
Jitter (worst-case-delay) exhibited can sometimes be high, because of the number of tasks competing for the disk.
4) BFQ
Instead of time slices allocation by CFQ, BFQ assigns budgets. Disk is granted to an active process until it's budget (number of sectors) expires. BFQ assigns high budgets to non-read tasks. Budget assigned to a process varies over time as a function of it's behavior.
Advantages:
Believed to be very good for usb data transfer rate.
Believed to be the best scheduler for HD video recording and video streaming. (because of less jitter as compared to CFQ and others)
Considered an accurate i/o scheduler.
Achieves about 30% more throughput than CFQ on most workloads.
Disadvantages:
Not the best scheduler for benchmarking.
Higher budget assigned to a process can affect interactivity and increased latency.
5) SIO
Simple I/O scheduler aims to keep minimum overhead to achieve low latency to serve I/O requests. No priority quesues concepts, but only basic merging. Sio is a mix between noop & deadline. No reordering or sorting of requests.
Advantages:
Simple, so reliable.
Minimized starvation of requests.
Disadvantages:
Slow random-read speeds on flash drives, compared to other schedulers.
Sequential-read speeds on flash drives also not so good.
6) V(R)
Unlike other schedulers, synchronous and asynchronous requests are not treated separately, instead a deadline is imposed for fairness. The next request to be served is based on it's distance from last request.
Advantages:
May be best for benchmarking because at the peak of it's 'form' VR performs best.
I/O Schedulers
Disadvantages:
Performance fluctuation results in below-average performance at times.
Least reliable/most unstable.
7) Anticipatory
Based on two facts
i) Disk seeks are really slow.
ii) Write operations can happen whenever, but there is always some process waiting for read operation.
So anticipatory prioritize read operations over write. It anticipates synchronous read operations.
Advantages:
Read requests from processes are never starved.
As good as noop for read-performance on flash drives.
Disadvantages:
'Guess works' might not be always reliable.
Reduced write-performance on high performance disks.​
reserved
A Mugen 6200 wouldn't hurt either
2SHAYNEZ
---------- Post added at 04:17 PM ---------- Previous post was at 04:14 PM ----------
Also...... Wheatley gov? Not in list.
2SHAYNEZ
shayneflashindaily said:
A Mugen 6200 wouldn't hurt either
2SHAYNEZ
---------- Post added at 04:17 PM ---------- Previous post was at 04:14 PM ----------
Also...... Wheatley gov? Not in list.
2SHAYNEZ
Click to expand...
Click to collapse
Mugen is to big for daily use to me
Will add Wheatley to the list.
Lop but it was a free battery
2SHAYNEZ
Jury duty today meant a lot of screen on time.
shimbob said:
View attachment 3055082
Jury duty today meant a lot of screen on time.
Click to expand...
Click to collapse
so how many hours of screen on time did u get in one charge?
7hours sot
stock phone, stock CM11 12/12. No real tweaks asides stripping out .apks before flashing CM11 and Greenify.
shimbob said:
7hours sot
Click to expand...
Click to collapse
ROM and tweaks ? Extended battery ? More info.
2SHAYNEZ
Well that's kind of cool. 8hrs (of mostly screen off) and 0% battery drain
Nice. I managed to get that during the night also but with airplane mode ON.
I think I have a rogue app eating battery, I only get 2H Screen on time, and it will drain battery without thouching it, I've flashed multiple Roms, I'm going to completely wipe my phone and do a clean install, I remember the first day I got the phone I went all day and still had battery, and that was heavy usage as I was playing with it
SmokeyTech1 said:
I think I have a rogue app eating battery, I only get 2H Screen on time, and it will drain battery without thouching it, I've flashed multiple Roms, I'm going to completely wipe my phone and do a clean install, I remember the first day I got the phone I went all day and still had battery, and that was heavy usage as I was playing with it
Click to expand...
Click to collapse
Maybe you should start all over with flashtooling back to stock. If you can't figure it out.
2SHAYNEZ
shayneflashindaily said:
Maybe you should start all over with flashtooling back to stock. If you can't figure it out.
2SHAYNEZ
Click to expand...
Click to collapse
I installed greenify and snapdragon battery guru, it appears almost all my apps run at startup and stay running, so i hibernated all of them
SmokeyTech1 said:
I installed greenify and snapdragon battery guru, it appears almost all my apps run at startup and stay running, so i hibernated all of them
Click to expand...
Click to collapse
I would avoid snapdragon battery guru, that thing is notoriously bad when it comes to wakelocks. In the end, it probably uses more battery than it saves.
In any case, you need a wakelock detector to pinpoint the source of wakelocks.
4ndroid99 said:
I would avoid snapdragon battery guru, that thing is notoriously bad when it comes to wakelocks. In the end, it probably uses more battery than it saves.
In any case, you need a wakelock detector to pinpoint the source of wakelocks.
Click to expand...
Click to collapse
So after completely wiping my phone and starting over, im sitting here with 13% battery and 2H screen on time, i should add i use a VPN 24/7, and on battery stats the Android OS and Android System use 20% by them selves, so either its something really deep in the phone or my battery is shot

EAS and powersave governor

I have the Pure-Z kernel, which has the option for the powersave CPU governor (which basically locks the CPU at the lowest clock rate except when touching the screen due to input boost).
I used Tasker to automatically set the big cores to powersave whenever battery saver is enabled in the hopes that throttling the big cores would save more power.
The question is: Does it actually save power? Or does it waste energy due to EAS not realizing that the CPU is throttled and still trying to send threads to that core set?
The LITTLE cores are still at their default sched governor.

Categories

Resources