yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] Mik3laNg3lo:
Very good info...tks for your good work :thumbup:
[Galaxy S II General] sawaldibali:
thanks, its really nice work .. i learn a lot from here..

sorry for my bad english:o
[Galaxy S II General] Many40:
Ondemand / freq_step

Hi Droidphile,

Just realized that currently ondemand governor uses freq_step parameter like in conservative governor. It seems that it's possible to save some battery on ondemand governor by setting freq_step value lower that 100.

Isn't it worth to update then post no. 2 / Parameters section by including it?

Regards
[Galaxy S II General] droidphile:
Hmm, since all that matters for GS3 is pegasusq governor (may be lulzactiveq also to a limit), I don't check what goes on with ondemand. Pegasusq already has freq step which is already explained in the other thread. Anyways, if it's required will update this thread also :)
[Galaxy S II General] Many40:
Thanks. Personally I figured out by myself this additional parameter but if it's on your commonly known thread, it would be maybe helpfull for the others.

BTW, I've never used ondemand before because I prefered pegasusq governor (so I was not interested in it), however temporarily have to use ondemand as long as there is no any custom kernels available for sammy JB 4.1.2 rom yet.

Regards
[Galaxy S II General] droidphile:
It's done :)
[Galaxy S II General] Ghostfreak NB:
Very nicely done

Droidphile !

Very detailed and good for many new users!
[Galaxy S II General] PIRATA!:
Hi to everyone.

I'm on S3 I9300 now and world like to know if the governor Lulzactiveq is available for this device and how to apply it.

I'm also interested in understanding if the lulzactive app linked up here can be used to tweak also the Lulzactiveq governor.

Ps: do I need init.d support for using this app?

Thank you.
[Galaxy S II General] Many40:
I see from your sig you are on Siyah. I'm on SGS2 so can't check it but at least on some releases of Siyah for S2 this governor was available. Just open an app like lulzactive, SetCPU etc and see if it's in the available governors list. If yes, kernel supports it if not doesn't. You can check it also in following directory "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors" (it's from S2 but in S3 I think path should be similar).

You don't need init.d script for app. To take advantage of the governor you either use an app or init.d script.

BTW where have you found the app linked up here?

Regards
[Galaxy S II General] PIRATA!:
Ok I have that governor and it is available from the STweak app that comes with the kernel.

Now I world like to understand this thing in editing governor using an app.

I would like to know it it edits the same file or if it makes a copy of it and how it could be available for changing it (would I see two lulzactiveq governor from STweak?)

Ah!..and the app linked is linked in the main OP posts in first page of this thread:)
[Galaxy S II General] mest22:
Love this write up ... just saying thanks .. this has helped me really understand kernels and the govs

Thanks for your time, I owe you a beer! :laugh:
[Galaxy S II General] nikufellow:
one of the moast helpfull threads i've ever encountered ;)

thank you very much :D
[Galaxy S II General] lateral18:
Droidphile

Thanks for your post, I have tweaked the parameters of the ondemand and conservative governors they are working great, I have no complains with what I've done , that is thanks to you .

Here it is. If I can make some improvements , I'll be happy to take the advice.

If you can add tweaks to ondemandx

#!/system/bin/sh

#ondemand

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;

echo "5" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential;

echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias;

echo "50000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;

echo "89" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;

#conservative

echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;

echo "40" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold;

echo "10" > /sys/devices/system/cpu/cpufreq/conservative/freq_step;

echo "5" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor;
[Galaxy S II General] Androidio:
Great Read!

Very informative!

Thank you so much for posting. :good:
[Galaxy S II General] droidphile:
Tweaks looks fine, considering you're looking for responsiveness with ondemand and battery with conservative. Ondemandx is same as ondemand with only screen off cap frequency as additional. Use ondemand tweaks with ondemandx.
[Galaxy S II General] suenoromis:
Thanks

I hit the Thanks button on all the posts about this thread explaining everything. I did not read everything as I got really bored, but hey, I will come back to this once I know better and use it. Very elaborate and concise. Thank you for the MASSIVE effort you put into this. Honestly, work has been paid off.

Thanks!
[Galaxy S II General] nabril15:
Truly amazing and excellent thread...thank you.

I am on blu kuban kernel. Will these changes work/benefit?

Also, this rom has a settings option called Ex Tweaks. Does changing parameters in there achieve the same as placing the script file as mentioned in the opening posts?
[Galaxy S II General] Blue Omega:
Extremely useful!
[Galaxy S II General] droidphile:
Hm yes. Make sure device files of params exist before you create your init.d script.
[Galaxy S II General] adam5150:
Does governor have to be manually set before applying script. On reboot mine is switching back to on-demand. Using blackout smart ass cf3
[Galaxy S II General] droidphile:
In the script before applying tweaks, set governor to the one that you need. Only then the directory corresponding to governor will be created and tweaks can be applied.

echo smartass > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
[Galaxy S II General] Many40:
Be sure also (as general rule) that a governor you gonna tweak is supported by your kernel.
[Galaxy S II General] metalmoot:
Do you know if a screen off profile set tout lower frequency really save battery and if setcpu settings does not conflict with nstools (I use it for bln tweaks)

Thanks

Sent From My SlimBeaned Nexus S
[Galaxy S II General] cosslet:
Is work for xperia go?
[Galaxy S II General] nikufellow:
Yeah but You need a kernel with all these modules built in ;)

Sent from a hybrid phablet !
[Galaxy S II General] samersh72:
what is the best governor and i/o that give a balance between performance and battery life?
[Galaxy S II General] metalmoot:
Smartassv2 is really great if you configure it in the right way you use your phone

Sent From My SlimCreamed Nexus S
[Galaxy S II General] jerryeight:
hey just want to pop in and say thanks for this thread cause it really cleared up a couple confusions that i had about i/o

;D
[Galaxy S II General] dems86:
Is there a guide for configuring smartassV2? What are you configuration settings for it?
[Galaxy S II General] Orginator:
This guide is missing the latest IO-Scheduler, it has been designed for mobile devices: ROW

http://lwn.net/Articles/509829/

I can tell you that it's super fast, much faster than SIO, gives a good speed-up for my device ;)
[Galaxy S II General] Mutalisk:
And thanks for keeping it up to date,

especially the description of intellidemand was extremely helpful for me ;)
[Galaxy S II General] mcarans:
In your view, how does LulzactiveV1 (as in Siyahkernel currently) compare to SmartassV2?

Regarding battery, I meant power down the phone for a few hours at night time, then power it on again in the morning so it continues draining - would this pause in draining mess up recalibration?
[Galaxy S II General] edd-1988:
Greetings and respect and thanks for all members of XDA developers

Today i sell my HTC HD2 (android 2.3.5 )

and i buy a new phone Samsung galaxy s2 (Europe )

so What do you advise to me ( ROM version ,applications ,accessories, ..)???
[Galaxy S II General] bahtsiz_bedevi:
Stock KK5 rom and CF-Root Kernel

USB host cable, MHL cable :)
[Galaxy S II General] droidphile:
Not it won't mess up the draining. And fyi, our battery chip (MAX17042) doesn't require any calibration. Still, after so many rom/kernel flashes if you think the battery perc is not being displayed correctly, you can try this complete discharge and recharge to 100%.

Lulzactive is a 'furious' governor that aims to scale up 'wildly' on high load and scale down 'wildly' on low load. Some people likes it, some complains about micro lags. SmartassV2 may be more reliable. I suggest you wait for lulzactive V2 in Siyah. With many more tunables in V2, it's going got be fun.
[Galaxy S II General] mcarans:
Just to confirm, does Siyahkernel 2.4.2 have LulzactiveV1 or LulzactiveV2? (I know upcoming 2.5GT will have V1)
[Galaxy S II General] droidphile:
All versions of Siyah until now (including 2.4.2 and even upcoming 2.5) has lulzactive V1 which has only two tunables: up sampling time & down sampling time. We will have V2 only after Tegrak publishes his sources. V2 will have additional 4 more parameters as tunables. (See my OP 1st post). Only difference is that, 2.5 will have V1 with default tunable values. Until now, there were some tweaks like increased down-sample-time to eliminate lags on app drawer, browser, etc.
[Galaxy S II General] tupo05:
Thank you Droidphile for your effort, time and dedication to write this thread.

Now I'm starting to learn more about Kernels.
[Galaxy S II General] BigCeyCey:
WOW,

Nice work droidphile, BIG thanks
[Galaxy S II General] SuperCliodos:
Good information! Thanks!
[Galaxy S II General] TecQuality:
great work dude :) but need something about the schedulers ... :)
[Galaxy S II General] droidphile:
The thread from knzo i was referring to in the OP has info on all i/o schedulers. I will try and add some advantages/disadvantages/performance factors of i/o schedulers in the 3rd post.
[Galaxy S II General] CamoGeko:
Great info thread mate. Cheers. :)

Communicated from a Galaxy far far away via an XDA premium neurotransmitter while DJ'ing on The Enterprise.
[Galaxy S II General] RyanParty:
thanks for the info, I really didn't have a clue before reading here
[Galaxy S II General] gokhanmoral:
just great! all three posts are great!!

everything is put together and complete...

thank you very much.
[Galaxy S II General] PedroMRP:
Very nice work droidphile, this post is very usefull!!
[Galaxy S II General] poochewer:
Superb work on those informative posts @droidphile!!

If you are not already a technical writer--Then you should be!!!

Extremely helpful my friend! Thank You.
[Galaxy S II General] KennyLegend:
Droidphile... Smashing thread . Informative and simply to the point. Thanx mate.
[Galaxy S II General] maranello69:
indeed, an amazing job man, thanks for providing all this useful info to us

one question i have, what is the default I/O Scheduler in the S2?, i have searched the forums, but i couldn't find this info. i guess is cfq, but i'm not sure
[Galaxy S II General] Bushido76:
According to the latest stock sources (update 3) the defaults should be:

- default-scheduler CFQ

- default-governor ondemand
[Galaxy S II General] Many40:
Have you spent some time for reading of a few first posts on the first page? Look at post no2 para 2/3?

Yes, I noticed the same however wouldn't be a better way to thank droidphille for very informative thread and then in polite way sugesting something?

Regards
[Galaxy S II General] semooz:
great

really nice work droidphile
[Galaxy S II General] dems86:
Sorry, I meant to be more specific. I used that post for my s2, but I was curious what settings would require changes if applied to a vzw gs3. Sorry, could find any mention of gs3 settings, nor anything even half as thorough on governors and schedulers elsewhere. Thanks, running beautifully on my e4g touch, want to get it set up on gs3 now too is all. Thanks.
[Galaxy S II General] droidphile:
GS2 and GS3 house Exynos 4 chip. Consider GS3 as a quad core GS2. Most of the recommendations, descriptions, settings etc for GS2 are applicable for GS3 as well. Converting GS2 settings to GS3 won't take much time. Just take care of cpu core specific settings.
[Galaxy S II General] josesoj:
mmm...Just one question whats the difference between Ondemand and Interactive??
[Galaxy S II General] betoNL:
Really?

Did you care to read the first posts of this thread?

Or using the search button?

Or using Google?

Did you watch that movie?

http://tube.litezero.com/video/JmvCpR45LKA/You-are-a-Noob-on-XDA-Developers.html

.
[Galaxy S II General] Many40:
:eek: Did you have a look at the 1st post? Both governors are described there :confused:

Regards
[Galaxy S II General] josesoj:
but I've read..is that both look the same

I can't see lot of difference
[Galaxy S II General] lightosx:
I would recommend Interactive as Google is actively working on it and improving it daily. It is basically a better version of ondemand.
[Galaxy S II General] Shahrokh.KING:
thanks to droidphile and this thread and a tad from "kernel stuffs" thread i prepared a

simple

presentation on "CPU Governors & IO Schedulers" to present in one of my classes in college, i wanted to share it with you guys:
[Galaxy S II General] tambourineman86:
I have a Nexus 7 and am trying to adjust the ondemand parameters with little success. The sampling_down_factor will change, as well as up_threshold, but down_differential and sampling_rate will not change. My down _differential is set at 3 which is very low for what I want the governor to do. I tried changing the permissions before tuning them but still won't work. Anyone had this or a similar issue?
[Galaxy S II General] ashwinrajsr:
this thread is really informative. OP please request the forum moderator to sticky this thread.
[Galaxy S II General] droidphile:
That sounds like an issue on the kernel side. Report to your kernel dev.

It was stickied the very next day after starting this thread, then added to roll-up sticky thread, then the roll-up sticky thread itself went missing. Don't know why.
[Galaxy S II General] russline:
SG2 4.0.4 stock

Hi,

I payed with different governor settings(via CPU Tweaker) and now my device is in very strange state. The default governor is userspace(800Mhz).

Of course, when I set On boot setting on CPU Tweaks with default ondemand, it will work, but it means I need some app for that running and a can't unroot. Later I also used Antutu but still can't restore default governor to ondemand.

I can't even imagine how it is possible. Where is the default governor settings stored? As I understand , /sys/devices.... path is dynamic and does not exist before boot. Thats why we need some app to change this file after every boot. Right?

And once again the most important question, where is the default governor settings stored?

Thanx in advanced.
[Galaxy S II General] droidphile:
I haven't heard of a Galaxy S2 kernel that set default governor to userspace. There must be some app/initd script that's setting governor to userspace.

And what do you mean where is default governor settings "stored". Kernel creates governor related and many other files during boot and echoes default values to them. I'm almost certain there's some script that's setting governor to userspace. Remove all of your init.d scripts and check again.
[Galaxy S II General] petrevirgil:
Could someone tell me which is the best combination for desire s with ROM viper saga and tweaked kernel 3 X?...for daily usage and game?
[Galaxy S II General] nikufellow:
:facepalm:

Don't expect spoon feeding . Please read the first few posts of this thread once or twice .
[Galaxy S II General] russline:
Thanks for reply,

I'm sure ondemand was the default on my stock kernel. And it's definitely not an app. It would need a root and one of my troubleshooting steps was to revoke all root permissions to all apps. With no success.

So some init.d script? Hmm... My device is on full stock(ROM,kernel,recovery). No init.d scripts I want to say. So maybe some another script.

I tried to "grep" userspace, governor keywords in /*, /system/*, /system/etc/* and some deeper folders, and the only occurrence of governor changing part I found in /lpm.rc and it changes it to powersave.

Finally after tens of tests I found that sometimes(can't repeat) the device boot with ondemand and much often with userspace. Seemed to be that after following steps: poweroff, remove battery for a while, put it back and poweron it goes to ondemand always, but finally I reached the point where it is not true. So totally random I guess.

It's definitely not critical issue at least until the device is rooted. I wonder if factory reset could fix it.

I9100/4.0.4/stock/XXLQ6
[Galaxy S II General] norvasc:
Just play with it and see. Thats what I did and after reading this very short thread.
[Galaxy S II General] lightosx:
Sorry if this has been asked already (couldn't find anything in search), but how does SIO compare to interactive?
[Galaxy S II General] Many40:
It's very hard to compare because theese two, you mentioned, are completely different algorithms:

- SIO is a I/O scheduler which decides how to access storages resources

- Interactive is a governor which decides how to scale CPU frequency

Please read more in OP.

Regards
[Galaxy S II General] norvasc:
I have tried different settings and ondemand and sio seem to produce smooth and consistent results for my S3.
[Galaxy S II General] systop:
great thread . thanks
[Galaxy S II General] betoNL:
Deleted....never mind

.
[Galaxy S II General] lainemac:
Can someone please explain zen scheduler?
[Galaxy S II General] Midomad:
and ROW scheduler also :)
[Galaxy S II General] TheByteSmasher:
Row prioritizes reads over writes since most tablets are media devices.

Sent from my Nexus 7
[Galaxy S II General] Midomad:
So Row or Sio?

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S II General] pxotas:
Respect!!:highfive:

I'm using this to tweak my N7000 with Asyulum Cm10.1 and the Rythim Kernel
[Galaxy S II General] RSDamasceno:
What about "ZZMOOVE" governor?

Edit: ...and the I/O schedulers "row" & "zen"?
[Galaxy S II General] bobdoblo:
http://xdaforums.com/showthread.php?p=36959601

*NeatROM*
[Galaxy S II General] desalesouche:
i tried to change performance conservative values in boot.img in init.rc but the changes seem not to be applied...i also tried to push this with script in init.d but it seems not to be applied also when i check governors with setcpu any suggestion?
[Galaxy S II General] Many40:
What rom/kernel are you on? (these are basics if you ask for support).

What init.d script commands did you apply?
[Galaxy S II General] desalesouche:
sorry for missing informations/ kernel 2.6.32.9 on cm7.2. phone=huawei u8230

trying to use performance for conservative script...it gave me the best result while trying these values with setcpu....the only thing i couldn't change was sampling_rate which is set on 200000 on my kernel..

1/ i tried many times to changes values and add news from performance/conservative in init.qcom.rc in boot.img

but when i flash no change..

2/I tried to push script in init.d (one with #!/sbin/busybox sh and second one with #!/system/bin/sh) but no change observed with set cpu and gov...

i don't know how to check change with terminal emulator ( if you have a clue)

example of script i pushed:

#!/system/bin/sh

#

echo "60" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold

echo "40000" > /sys/devices/system/cpu/cpufreq/conservative/sampling_rate

echo "5" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor

echo "20" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold

echo "25" > /sys/devices/system/cpu/cpufreq/conservative/freq_step

thank you.:o
[Galaxy S II General] CamFlawless:
Thanks for the great informational thread. :thumbup:
[Galaxy S II General] Many40:
Thanks for your info and believe me I really would like to help you but:

1. are you aware that you posted on wrong thread and even wrong subforum? Your phone is not supported here. This subforum is for Samsung Galaxy S2, not huawei :)

2. despite para 1 I have a few remarks coz basics for governors should be the same:

- if you managed to change some other parameters of conservative governor with the same script but sampling_rate not, I assume that your script works well.

- you couldn't even change this parameter by SetCPU what confirms assumption above

- may be that your kernel blocks changes to sampling_rate

- Nevertheless, I suppose, you know that conservative governor is rather developed for battery saving so why do you try to configure it other way round (for more performance). Instead you could try ondemand governor.
[Galaxy S II General] desalesouche:
thank you very much...i was aware of para 1...

but i found good working info here...i like to test things from one phone to another...it gives great surprise from time to time...

thank you for everything
[Galaxy S II General] yazzabo:
R: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Confi

I found a great kernel that I manage to tune but this hasn't all the features I need! Can u help me?

How can I include SIO I/O in a kernel??
[Galaxy S II General] Many40:
You can't just include I/O scheduler into the kernel as a user. This may be done (included to a kernel's code) by a kernel developer. So if your kernel doesn't support sio, ask the developer to include it.

Regards
[Galaxy S II General] yazzabo:
R: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Confi

Would be nice, but this dev has ended his activity and I cannot request anithing because he closed all threads!

But I find his work so good for my use and I managed to gain capability to tune on my own starting from his work!

But I' m still a boon and i sked this thread and if someone can help I''ll be grateful!
[Galaxy S II General] nikufellow:
^i may be wrong on this but i do believe that a kernels available list of governors can be extended by using pre compiled governors (.ko files) compatible with the kernels and loading them as modules from user space .

why fix it if it ain't broken ?
[Galaxy S II General] Sinthetix:
How about description of HYPER, nightmare... governors from some custom kernels
[Galaxy S II General] zadock:
Hello droidphile and thanks for your appreciated work.

Would it be possible to add information about the ROW scheduler?

A little description and advantages/disadvantages about it.

I would be eternally grateful ;)
[Galaxy S II General] Midomad:
+1

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S II General] droidphile:
Will try to add it.
[Galaxy S II General] petrevirgil:
Hello Droidphile ,thanks for all informations ,I apologize if some of you think that I post to many questions about governor,schedular but I want to be sure that I don't mess my phone.

For a while i want to improve my phone battery and performance so i use tweaked kernel 3.9 with viper saga.

I set my cpu to

-min 245MHz,voltage set to 975mV (default was 1000)

-max 1401Mhz,voltage set to 1200mV(default was 1250),

-smartassV2 with noop,my phone is fast and smoth..

What is the difference between undervolting and overvolting and how improve my battery and performance?It is possible to make a lower or higher value for voltage?
[Galaxy S II General] droidphile:
As the names suggest undervolting is to reduce voltage from stock to save some battery and overvolting is increasing voltage of higher frequencies when we overclock so that enough voltage is supplied. "How to improve performance and battery" is a complicated question. I guess I have explained enough along 7 posts in this thread?

And yes, it is possible to change voltage. Use an app such as SetCPU. Make sure you have a custom kernel that supports under/over volting.
[Galaxy S II General] salman45:
Please suggest me me . Does this setting will be good for battery ? I need good battery life with normal performance which combination would be great for my need ?
[Galaxy S II General] mathmachado:
A description for nightmare governor wouls be nice, it is based on pegasusq but it seems more battery friendly!