yashsingh1/xdaforums huggingface dataset:
[General Topics] droidbits:
[MENTION=5811506]gsstudios[/MENTION]

Hi.

I just really wanted to drop you a big thank you for this amazing guide. It is really what I was looking for in order to learn more.

Thanks!
[General Topics] Mrcactuseater:
[MENTION=5811506]gsstudios[/MENTION] I appreciate all the work you've done here, but I was wondering if you could compile some info on toolchains?

Tapatalk'd from my Twisted, Yank'd Nexus 5
[General Topics] Saber:
Maybe in a different thread. :) Seems like a good idea for developers and those who are thinking to develop.

gsstudios
[General Topics] rwxr-xr-xis:
Is it true that row can corrupt your disk? I remember reading this somewhere in the linux forums
[General Topics] marcdw:
If that were true we'd all be screwed up by now.

Row is usually, and has been, the default scheduler for ages it seems.

LG G3 D851, PAC-MAN ROM, Tapatalk 4.9.5
[General Topics] cbomb101:
Thanks for the guide.
[General Topics] Saber:
[MENTION=6046143]marcdw[/MENTION] is correct.

ROW doesn't corrupt disks (or in the mobile world, our flash storage). I think changing filesystems is more likely to cause corruption as some (e.g. F2FS) are relatively new or behave in a different manner that could cause data loss. I wouldn't think that a developer would be that evil to share their io scheduler to the internet only to destroy people's devices. ;) Almost all (or most) io schedulers or governors have been tested by users which may include the developer and a large community like XDA for example, I would think there would be at least some disclaimer by the developer or maintainer saying that the current product (in our case io scheduler) is not completed yet and/or could cause potential problems.

gsstudios
[General Topics] ithehappy:
What a guide man, hat's off.

No, I didn't read the whole OP, are you kidding me? So much explanation that if I did read fully I would have gone crazy! :p

Anyway, I still have something to ask (yes, I have seen your recommended chart), you see I am obsessed with the smoothness of the device. Those micro lags/jitters which most people could ignore, I simply can't. So the first thing I check after flashing a kernel is scroll up and down in an app to check whether it's lagging anywhere or not, and until I find one which works like "butter" I keep checking/reading for other governors. I find the default "Interactive" one to be laggy/extremely laggy at most times!

And for that I loved the Precog governor of Shinto kernel for me Note 3, that was the best without giving up on battery life. But now I have a Note 4, and so far I have found the Blu active governor (of Emotion kernel) to be the smoothest (though it's impossible for me to test them all), but I just think that it's not that battery friendly.

So is there a governor which will achieve maximum smoothness, without giving up on battery life?
[General Topics] PiggyFlooper:
I've referred to your guide many times and subscribed. There's a ton of info, so much that my screen lags when scrolling down your ops :)

It's good information all thrown together in one spot.

I'd really like to see you become a developer. Such as in that you take the info you've provided here, put it in (init.d) scripts to sense when governor or scheduler has been changed by the user, and apply your recommended values. I realize there are massive amounts of devices out there with different number of cores, different architectures, but when a kernel developer builds and includes the well known and much tested schedulers/governors, they're usually put in in a copycat fashion or way.

Which leaves little risk in making a recovery flashable zip that asserts some sh*t based on the device it's flashed on.

So what I'm asking for because of my infinite laziness, is scripts to know when governors and schedulers are being changed, and tune the tunables to your recommended values.

I repeat myself a lot :D

And in my self proclaimed wisdom, you be the ultimate authority, you, [MENTION=5811506]gsstudios[/MENTION] be the governor of governors and scheduler of schedulers.

Thanks for the reference guide friend

Sent from above using Xparent Tapatalk
[General Topics] Saber:
[MENTION=5483848]PiggyFlooper[/MENTION]

I'm already a kernel developer ;) So I even use my own guide to help me out :D

flashable zips that tune parameters? I'm pretty sure that there are already heaps of mods like that on XDA. All-in-one or universal scripts are tricky because every device is different and behave different based on their hardware (as already said), so they can be a hit and miss for some users. But I'll might look into it.

gsstudios
[General Topics] dipro.tanvir:
What is gentle fair sleepers ? Can someone explain?
[General Topics] neonkat:
Sleeper Fairness is a concept used by CFS which treat sleeping/waiting tasks as if they were in a run queue. This implies tasks which spend most of the time waiting for an user input and such will get a fair share of CPU when they need it. Disabling Gentle Fair Sleepers could improve UI responsiveness.
[General Topics] mrrocketdog:
hey [MENTION=5991747]neonkat[/MENTION] , you know some stuff.:cowboy: all this time i thought you were just another pretty face :o

p.s. i myself can now copy/paste , perform two fastboot commands and wipe my own a$$. :banghead:

"err on the side of kindness"
[General Topics] same-xx:
Hey bro, thank you for yhis amazing guide, what is been my bible when testing roms. I have a question: Can u tell me where can I found interactive governor tuning table for sammy gt-i9506. I can only find guides to nexus.
[General Topics] neonkat:
what kind of tuning?

i mean like the basics or tuning the governer deeply(if you have kernel sources)?
[General Topics] Existz161084:
my kernel supports many governor here...

some was explained here some not...

the default one is Governor InterExtreme.... i think this is interactive base from its name

since its the default from the kernel so i think its best..

but i allways wondering anyone know or explain how interextreme governor works?

sory bad english its not my native language :D
[General Topics] same-xx:
I want as much performance as possible with some battery saving. But if that is impossible to achieve, then just as much performance as possible. I attached files, so maybe u can help me make these better, unless these are garbage and I'm back to starting point. Really appreciate your input.
[General Topics] Sickaxis79:
You rule :)
[General Topics] kamikaze702k:
Awesome info
[General Topics] Saber:
Will look for actual description soon.

gsstudios

Update: The dev only said it was a tuned interactive governor, but after my close analysis of the governor's source code, it favors performance while maintaining good battery life. OP updated.
[General Topics] PiggyFlooper:
ok, from before, i mentioned using a script ran at boot to change the IO schedule on each one, so that may run in a loop, at the end of this script you can use a sleep, might want to use busybox sleep function(and per however long u want between each cycle), and then run the script again-timed loop.

As it is now, for me, the script won't loop, but the settings stick when changing schedulers (checked using kernel adiutor) it's speller auditor authors. They're sticking with initials commands ran. I gave an example as to how to check OS and apply different settings based on jb- and kk+.

So if anyone would like to make this script more automated or more thorough by using advised settings for other schedulers, that would be great, so, please help

https://db.tt/pAR9OogM

Sent from above
[General Topics] _Bon_Bon:
I can take a look at your script :good: I have few tweaks and stuff, just send me a PM if you want something else from it :)
[General Topics] tet-bundy:
Seems not to really fit into ur concept, but as it is a very common cpu governor i thought u Maybe want to add a link to this thread http://xdaforums.com/showthread.php?t=3269557 to the interactive tunables section.

Apart from this Very NICE! Helped me a lot. Thanks for ur effort!

Gesendet von meinem SM-G800F mit Tapatalk
[General Topics] neonkat:
that's for the 5x,i have tried that with other devices,didn't got all the stuffs listed,though its good for understanding things deeply.
[General Topics] tet-bundy:
sure the actual values are for the 5x. But u can follow the guide and set ur device up according to ur own device by following this guide. so did I with my g800f. ;)

Gesendet von meinem SM-G800F mit Tapatalk
[General Topics] bubbeld:
any suggestions for best settings for a xperia z for best battery life ? :)
[General Topics] tet-bundy:
Powersave governor

Gesendet von meinem SM-G800F mit Tapatalk
[General Topics] Saber:
For a well balanced governor, interactive, ondemand or conservative are what you might like.

gsstudios
[General Topics] geminihc:
thanks! but there is still one small thing i dont understand about Hotplugs. I'm using kernel adiutor and it allows me to turn multiple hotplugs on at the same time.

but from what i'm understanding, you should ONLY have one Hotplug on right?

Anyway, "MSM hotplug" was on by default , and I want to use Alucard. Can I leave BOTH on , or do i have to turn off MSM hotplug.

The phone seems to work fine in either scenarios.. (im on 777 kernel with vs985 lg g3, on alucard governer)
[General Topics] Saber:
You should only use one hotplug method at a time. Having more than one enabled is not very good for your phone, and will certainly cause problems.

gsstudios
[General Topics] rtorres01:
Hey guys,

I have a note 4 910c currently with googy -max kernel. I wonder what set value in the I / O ( CFC ) , for use SD card 64GB and Foldermount app to move dates and OBB heavy games.

When used the Synapse application always suggested the value of 2048kb , even saving a 256kb profile.

Miha biggest question is what value to use and pq the synapse always changes when opening . It is a system suggestion ?

Thank you very much,
[General Topics] neonkat:
i/o for ext sd depends upon the type of sd card.if you have a class 10 sd card,use 2048 or 4096 read ahead,you may see some issue after changing them to higher values,in that case,keep it to 1024 kb.
[General Topics] Mrcactuseater:
[MENTION=5811506]gsstudios[/MENTION] hey man idk if you're still doing this or not, but I found another governor for you to add; Cafactive

Tapatalk'd from my Twisted, Yank'd Nexus 5
[General Topics] Saber:
Thanks. Will find the description soon.

gsstudios

Update: OP updated. Check description for Cafactive
[General Topics] tet-bundy:
Could u maybe add description of alucard governor tunables? I don't find such. It already seems preety good balanced with defaults, but i think it could be tweaked even a bit more.

Would be greatful!

Anyway, great op!

Gesendet von meinem SM-G800F mit Tapatalk

---------- Post added at 05:47 PM ---------- Previous post was at 05:04 PM ----------

Ok as usual, right after asking question I find sth.

http://xdaforums.com/showthread.php?t=2845768

Maybe (course with goodwill of the author) u want to add the info from this thread(OP)

Best regards

Gesendet von meinem SM-G800F mit Tapatalk

---------- Post added at 05:49 PM ---------- Previous post was at 05:47 PM ----------

Gesendet von meinem SM-G800F mit Tapatalk
[General Topics] marcdw:
Nice find [MENTION=7219030]tet-bundy[/MENTION]. The OPs in that thread are quite informative, although dated. I wonder what (if any) Alucard tunables have changed in the past year or so since those posts.

LG G3 D851, PAC-MAN ROM, Tapatalk 4.9.5
[General Topics] Saber:
I will add this later today.

gsstudios

Edit: OP has been updated. Look for the descriptions in the tunable section. However, as stated in the changelogs, I have run out of room for descriptions. Therefore to see the rest of the info, you must head over to my website :)

Edit2: It seems that I have included tunable descriptions for alucard hotplug instead of the governor. I don't think I can fit the tunable descriptions in anyway.
[General Topics] Saber:
Nothing has changed in regards to tunables.

gsstudios
[General Topics] tet-bundy:
Ok i gound that i cannot set pump_dec_step nor pump_inc_step to 4 as stated in the thread. Only values 1-3.

Unfortunatly i don't know how up yo date my implementation of alucard is, but as the kernel was released rather recently i suppose it to be more up to date than what tbe above thread refers to.

Best regards

Bundy

Gesendet von meinem SM-G800F mit Tapatalk
[General Topics] Saber:
If you want to see what is the range you can set, scroll down the github source (for the kernel you are currently using) of the cpufreq_alucard file until you see something like this:

https://github.com/dorimanx/DORIMAN...master/drivers/cpufreq/cpufreq_alucard.c#L148

Latest Alucard supports up to a value of 4.

(Based on DorimanX kernel source where Dorimanx keeps his governors up to date frequently).

gsstudios

Edit: I did a bit of searching for you and it seems that the alucard you are describing is an old version. Here is the reasoning: https://github.com/DJSteve/G800F-LL_Kernel/blob/OC-New/drivers/cpufreq/cpufreq_alucard.c#L309
[General Topics] swat4samp:
Thanks for this well informed guide gsstudios.

PS: Saber looking splendid in your DP :P
[General Topics] giteshraheja:
Hey I want help on my kernel and I/O. Should I set smartass v2 ,ondemand or interactive as I want to conserve battery with nice performance in my Samsung Galaxy s duos also which I/O is best suited..
[General Topics] Saber:
Interactive or smartassv2 should give good performance on your device while still being battery friendly. As for I/o, your device should use ROW or SIO.
[General Topics] giteshraheja:
Hey how about interactive with sio. Is there any app that can give score on using different combination
[General Topics] Saber:
For CPU, geekbench is what you want to use. As for I/O, use androbench. Don't use apps that test both like antutu as those are for modern devices which have very fast CPUs and graphics, and they are always changing with updates.

gsstudios
[General Topics] deepu458:
Hi [MENTION=5811506]gsstudios[/MENTION], thx for the informative article. I had visited this article so many time when i try to tune my Bacon for batter battery life. I have a question for u in regards to the CPU Governor as u mentioned OnDemand being the best for battery life ur comment on ZZMove _YankBatteryExtreme? which one u feel now a days have good battery backup. Sorry didn't mean to offend u just wants to make sure.
[General Topics] Saber:
I would say zzmoove may be a better overall governor than ondemand. However, you will have to try it out for yourself as I don't have the same device :) If you are still unsure, look at the kernel thread for the kernel you are using as some kernels may perform better with certain governors.

There is nothing wrong with your post, I encourage discussions like this ;)

gsstudios
[General Topics] neonkat:
what do you think about zzmove and

yankdemand?

i have used both and they performed equally well but i found that yankdemand gave me more battery life.
[General Topics] Deonta23:
Is it bad to use two different types of governors with big & little? Elementalx & intelliactive? Also if not which would make more sense for little? I've also noticed in OP at the end of post two it shows the original ondemand and interactive governors use less power. Could it be said that these would offer better battery/performance than their tweaked counterparts. Does interactive with ghost pepper profile outperform intelliactive. Sorry for so many questions just really would like to optimize. And thank you in advance this is was a great write up!
[General Topics] Saber:
They are both great CPU governors. Choose whichever one that is best for you (in this case, yankdemand).

gsstudios
[General Topics] Saber:
It isn't a bad thing to use different governors on different cores. However, it is always best to use the same governor on all cores for the best stability and to have the best experience with the governor. I am not sure whether interactive with ghost pepper profile will beat intelliactive. However, all I can say is that the profile optimizes interactive really well towards performance without any change in code whereas intelliactive is a rewritten form for better performance. And of course, both still have great battery life.

gsstudios
[General Topics] JJEEGG2211:
wow. this is incredibly informative. great work!

thank you!
[General Topics] Follow_and_Feel:
Hey guys :)

Just a quick question. If I connect my phone to my computer and access my 200GB MicroSD card it shows not even half of the folders which are on the SD card, e.g. my music.

Could this be related to I/O schedulers and the read-ahead amount for external storage?

I've tried some schedulers and different read-ahead amounts - to no avail. Do you know what could cause this problem?
[General Topics] Saber:
Hi,

Schedulers and read ahead values have no effect on accessing files via PC.

There are a few things you can do. If these folders have been newly created, sometimes it helps to restart your phone to force a refresh on the storages.

If you have a custom recovery, try mounting USB storage in recovery and see if this helps.

200GB seems like a huge SD card, you may be better off with a SD card USB adapter instead of letting android handle transfers.

One last thing that may help is to format your SD card to a different file system. (Exfat is commonly used for sdxc, but may not be the best for compatibility).

gsstudios
[General Topics] Saber:
OP has been updated

Here is the changelog for today:

07/05/16:
- Added description for lightning governor, thunderplug hotplug and blu_plug hotplug

gsstudios
[General Topics] yarpiin:
great job youre the best ;)
[General Topics] mistermojorizin:
this is an awesome, awesome guide! i've been referring to it very frequently for a long time. My question is if anyone has any ideas for the best way to tune/optimize a phone with an sd810. The phone drops performance by 50% after getting hot. So some of the suggestions (e.g., the performance governor is best for performance) actually don't apply, since this governor causes performance to drop much quicker than other governors which, while may not have as quick of a cpu ramp up, are balanced enough to have better performance on average by preventing heat and throttling.

any tips in any tuneables discussed here that could help with finding a better balance that will allow to an sd810 to have better performance longer?
[General Topics] Mrcactuseater:
Go to the 6p thread and you will see a list of governor tweaks. Those will help significantly.

Tapatalk'd from my Twisted, Despaired Nexus 5x
[General Topics] mistermojorizin:
Thanks, i've been following that thread since it started in the 5x forum and then got split to the 6p forum. I'm using one of the profiles from that thread on ex kernel. There's just a ton more info in this thread, not just governors, and it's a bit easier to understand. since lots of phones have the sd810 wanted to see if the OP here has some thoughts. also, was wondering re i/o schedulers and gpu schedulers that work best with that SoC.
[General Topics] Saber:
For snapdragon CPU governor, you best with interactive/yankactive/kernel developer's recommended governor.

For I/O scheduler, it is ZEN/ROW/FIOPS/BFQ.

Not too sure on GPU governor, so I would stick with what the kernel developer has set.

gsstudios
[General Topics] ramrastus:
Can you pls tell me about virtual memory? And which virtual memory setting is best for snapdragon 1gp ram?
[General Topics] Mrcactuseater:
Don't be touching those things if you don't understand them.

Tapatalk'd from my Twisted, Despaired Nexus 5x
[General Topics] DB126:
I find the relatively simplistic deadline scheduler to be more responsive than ROW on several devices equipped with a snapdragon 800. No obvious hit to battery life with my workflow (mostly read with occasional write storms). Obviously a lot has to do with the specific SoC and other kernel optimizations. Just sharing experiences. :)
[General Topics] Saber:
I will suggest you to read up on Google because there is way too many settings to play with.

In basic, there are two types of memory android can use. Physical memory which is RAM and virtual memory (software allocated/managed). As someone has suggested, it's best not to touch these settings if you don't completely know what you are doing.

There is one setting you might touch, swappiness. You can increase it for more free RAM or decrease for performance.

gsstudios
[General Topics] neonkat:
for 1 gb device,intel recommends 400mb zram(vm) memory with 100 swappiness.(given on a page where they explain about virtual memory)

i will recommend you to use 300-370mb swap(depending on usage)with 80 swappiness.

further,you can google and find some websites which explain about the vm parameters so you can tune them up to you liking.;)
[General Topics] Saber:
Thanks for the info, will add it to my guide soon. However, the problem with that guide is that some of the parameters are only for the qualcomm version of interactive. The generic google version won't have this. I will split up the tunables so it is more clear between these differences.

gsstudios
[General Topics] tet-bundy:
That would be nice. I already wondered, why i didnt have some of them on my exynos driven handset

Gesendet von meinem ONE E1003 mit Tapatalk
[General Topics] genuine55:
[MENTION=5811506]gsstudios[/MENTION] hey my friend u have any advice for good performance yet battery Friendly I have the s6 dealing with the big and little cores any advice would be appreciated I have most of the governors I'm using the sickness kernel v2
[General Topics] Saber:
Will look into this soon. I will update the recommended governor guides for newer SOCs.

As for your question, the best governor to use for the s6 is interactive. Samsung has made modifications to the governor specifically for your device (unless the kernel developer has touch the governor code). You can search up interactive governor tweaks to make it more battery friendly.

gsstudios
[General Topics] genuine55:
Thanks
[General Topics] rocksia:
my phone is note2, 2g ram,16g rom,now is use pure cm agnikernel 4.5.5,rom is cm13 ResurrectionRemix-M-v5.6.8.

any recommend for cpu governor,I/O scheduler for internal sd and external sd memory@gsstudios
[General Topics] Saber:
OP has been updated

This time around, I have made many modifications to the tunables post. I have updated the interactive tuning guide descriptions for missing tunables and made descriptions more detailed. I also fixed a few other descriptions and added a few to other governors. I couldn't fit tunable descriptions for the qualcomm version of interactive, so you will have to look at my website for those descriptions.

However due to limitations, I have removed the I/O scheduler tuning guide so you need to look at my website to get the full info.

gsstudios

Edit: I ended up shortening the tunable descriptions for alucard hotplug and added the qualcomm interactive tunable descriptions ;)
[General Topics] kanyazsombor:
Thanks a lot for this amazing quide!

I searched for cpuquiet without any results here. Do you have any knowledge on that?
[General Topics] solar666:
You might have a look here:

https://android.googlesource.com/ke....10-lollipop-release/drivers/cpuquiet/Kconfig
[General Topics] Saber:
I'll have a look on descriptions later. Although it isn't really a governor, it is a framework that has it's own set of governors. I still need to do more research ;)

gsstudios
[General Topics] V4LKyR:
I wish there was a database to download ALL THESE governors' .c and .h files...
[General Topics] Saber:
Sounds like a good idea, but this would take some time to do. Personally, I think that giving a link to the source code is sufficient.

gsstudios
[General Topics] V4LKyR:
Yeah that's what I meant actually :) At least a link database so that we can download these governors. I've read all those governors' descriptions and got all excited and stuff, but don't know how I can reach them (.c and .h files) and add them to my kernel to test.
[General Topics] neonkat:
look into some custom kernel git.you will get all required files+other modificiations required to make them work.