yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] djfotizo:
What was your screen on time and was this the stock battery?

Sent from my Task'd/Toon'd AOKP Horned Pony!
[Galaxy S II General] carlos67:
@Droidphile,

Thanks for your brilliantly informative thread. I've already learnt so much from it and continuing to do so.

Can I ask you wether you use the CPU or GPU to render the UI?

I know this can be changed (with a script or in build.prop) and the default is for the CPU to do this(I think??), but giving this task to the GPU would free up the CPU right? And where does hardware acceleration come ino things? Is H/W acceleration only active if using the GPU to do the rendering?

Or maybe my thinking is flawed. What are your thoughts on this particular issue?

Would also like to know what Pika thinks about this also as I respect both you guys opinions.

Thanks.
[Galaxy S II General] droidphile:
I don't know much about this. But i think Gingerbread could only render UI using CPU. And GPU rendering was introduced in ICS. (may be honeycomb too, but it doesn't matter)

It's believed that GPU rendering is better in terms of smoothness, power efficiency, and freeing up some CPU cycles. But there are disadvantages too. GPU rendering causes (affected) apps to use a little more ram and also some ram from what's reserved for GPU. Also, UI rendering process has normal priority on Android. I think disabling Gentle Fair Sleepers could increase this priority. However, everything has it's own advantages and disadvantages.

Hardware acceleration should mean GPU rendering. From my rom's build.prop, looks like GPU rendering is active.
[Galaxy S II General] pikachu01:
The ideal speed depends on the suspend/sleep state.

inline static void smartass_update_min_max(struct smartass_info_s *this_smartass, struct cpufreq_policy *policy, int suspend) {
if (suspend) {
this_smartass->ideal_speed = // sleep_ideal_freq; but make sure it obeys the policy min/max
policy->max > sleep_ideal_freq ?
(sleep_ideal_freq > policy->min ? sleep_ideal_freq : policy->min) : policy->max;
} else {
this_smartass->ideal_speed = // awake_ideal_freq; but make sure it obeys the policy min/max
policy->min < awake_ideal_freq ?
(awake_ideal_freq < policy->max ? awake_ideal_freq : policy->max) : policy->min;
}
}

And from your earlier quote:

You said ramp_down_steps affects only sleep ideal frequency and not awake ideal frequency. I said that was incorrect. Ramp up and ramp down follows any ideal frequency.

The code goes as follows:

else if (ramp_dir > 0 && nr_running() > 1) {
// ramp up logic:
if (old_freq < this_smartass->ideal_speed)
new_freq = this_smartass->ideal_speed;
else if (ramp_up_step) {
new_freq = old_freq + ramp_up_step;
relation = CPUFREQ_RELATION_H;
}
else {
new_freq = policy->max;
relation = CPUFREQ_RELATION_H;
}
dprintk(SMARTASS_DEBUG_ALG,"smartassQ @ %d ramp up: ramp_dir=%d ideal=%d\n",
old_freq,ramp_dir,this_smartass->ideal_speed);
}
else if (ramp_dir < 0) {
// ramp down logic:
if (old_freq > this_smartass->ideal_speed) {
new_freq = this_smartass->ideal_speed;
relation = CPUFREQ_RELATION_H;
}
else if (ramp_down_step)
new_freq = old_freq - ramp_down_step;
else {
// Load heuristics: Adjust new_freq such that, assuming a linear
// scaling of load vs. frequency, the load in the new frequency
// will be max_cpu_load:
new_freq = old_freq * this_smartass->cur_cpu_load / max_cpu_load;
if (new_freq > old_freq) // min_cpu_load > max_cpu_load ?!
new_freq = old_freq -1;
}
dprintk(SMARTASS_DEBUG_ALG,"smartassQ @ %d ramp down: ramp_dir=%d ideal=%d\n",
old_freq,ramp_dir,this_smartass->ideal_speed);
}

If load is more than the threshold, and current frequency is less than idle frequency, go to ideal frequency

If load is less than threshold, and current frequency is more than ideal frequency, go to ideal frequency.

About the time slice thingy, I was unsure if smartass supported it. I vaguely remember some governor that supported time slicing the frequency if it needs a frequency in between the what the CPU driver supported (hence I mentioned - > correct me if I'm wrong).
[Galaxy S II General] lupixus:
Sorry!forgot to mentioned:the battery is the 2000mAh. I have discovered that is best to full wipe resurrection remix and to install by hand.i.ve tried all and this os the best solution for.me.
[Galaxy S II General] droidphile:
@Pikachu

I know v well ideal speed depends on awake/sleep state. When i said "ramp_down_step affects sleep ideal frequency, not awake ideal frequency", i meant ramp_down_step is considered w.r.t sleep_ideal frequency, as in it's considered only when freq is below sleep_ideal_freq.

else if (ramp_down_step)
new_freq = old_freq - ramp_down_step;

Control enters this Else block when old_freq is <= ideal_speed. And the ideal speed here is sleep_ideal_freq and not awake_ideal_freq.

Some miscommunication i guess.
[Galaxy S II General] pikachu01:
That is incorrect. First, ideal frequency depends on the whether it is on suspend state or not (screen-off state).

Ramp down step and Ramp up step on screen on is used w.r.t awake_ideal_frequency.

Ramp down step and Ramp up step on screen off is used w.r.t sleep_ideal_frequency.

Let me know if you need more information.

Edit: Maybe some highlights in the code will make it clearer:

inline static void smartass_update_min_max(struct smartass_info_s *this_smartass, struct cpufreq_policy *policy, int suspend) {
if ([COLOR="Magenta"]suspend[/COLOR]) {
[COLOR="magenta"]this_smartass->ideal_speed = // sleep_ideal_freq;[/COLOR] but make sure it obeys the policy min/max
policy->max > sleep_ideal_freq ?
(sleep_ideal_freq > policy->min ? sleep_ideal_freq : policy->min) : policy->max;
} [COLOR="magenta"]else[/COLOR] {
t[COLOR="magenta"]his_smartass->ideal_speed = // awake_ideal_freq;[/COLOR] but make sure it obeys the policy min/max
policy->min < awake_ideal_freq ?
(awake_ideal_freq < policy->max ? awake_ideal_freq : policy->max) : policy->min;
}
}

else if ([COLOR="magenta"]ramp_dir > 0[/COLOR] && nr_running() > 1) {
// ramp up logic:
[COLOR="magenta"]if (old_freq < this_smartass->ideal_speed)[/COLOR]
new_freq = this_smartass->ideal_speed;
else if (ramp_up_step) {
new_freq = old_freq + ramp_up_step;
relation = CPUFREQ_RELATION_H;
}
else {
new_freq = policy->max;
relation = CPUFREQ_RELATION_H;
}
dprintk(SMARTASS_DEBUG_ALG,"smartassQ @ %d ramp up: ramp_dir=%d ideal=%d\n",
old_freq,ramp_dir,this_smartass->ideal_speed);
}
else if ([COLOR="magenta"]ramp_dir < 0[/COLOR]) {
// ramp down logic:
if ([COLOR="magenta"]old_freq > this_smartass->ideal_speed[/COLOR]) {
new_freq = this_smartass->ideal_speed;
relation = CPUFREQ_RELATION_H;
}
else if (ramp_down_step)
new_freq = old_freq - ramp_down_step;
else {
// Load heuristics: Adjust new_freq such that, assuming a linear
// scaling of load vs. frequency, the load in the new frequency
// will be max_cpu_load:
new_freq = old_freq * this_smartass->cur_cpu_load / max_cpu_load;
if (new_freq > old_freq) // min_cpu_load > max_cpu_load ?!
new_freq = old_freq -1;
}
dprintk(SMARTASS_DEBUG_ALG,"smartassQ @ %d ramp down: ramp_dir=%d ideal=%d\n",
old_freq,ramp_dir,this_smartass->ideal_speed);
}
[Galaxy S II General] V1k70r:
Some really good information is in this thread, it has helped me many times. However, what happens if a proces misses the deadline/budget time with the deadline and BFQ schedulers?
[Galaxy S II General] pikachu01:
It will stop servicing that process and put it at the back of the queue. Let other process get serviced.
[Galaxy S II General] pikachu01:
Double post. Sorry.
[Galaxy S II General] keegan25:
brilliant post, although i cant figure out where the load value settings are in siyah 3.3.2 using extweaks.
[Galaxy S II General] hackergnome:
Really helpful!!! nicely done!!
[Galaxy S II General] JordanElliott:
Wonderful guide thank-you much
[Galaxy S II General] Garuxa:
Thanks dude :), this helped me a lot to understand the parameters, governors, etc.. Now I could set up properly and thoroughly my Galaxy S II :D
[Galaxy S II General] carlos67:
They are in /data/.siyah
[Galaxy S II General] dareas:
What about the Pegasusq governor? I see it on a Galaxy s2 (Siyah 3.3.2) when open Rom toolbox and go to CPU control--> governors
[Galaxy S II General] droidphile:
I have lost count on how many times i have mentioned, it's already in the other thread! Anyways, will add this info on OP.
[Galaxy S II General] ramabg:
How to measure power consumption of device ? I want to know how good my CPU & GPU undervolting, screen filter apps can reduce power consumption. Thank you.
[Galaxy S II General] CamoGeko:
Most of the time its just a combination of CPU spy, betterbatterystats and running apps statistics that will give you all you need to know.

... typed by a proud owner of HTC One X 32GB, the best HTC Android device so far!!
[Galaxy S II General] Silentbob999:
I think there no perfect solution.

BetterBatteryStats is perfect to see wakelock. Good for big anormal drain but also to detect any application activity...

CPUspy will show you time spent in different frequency steps. Perfect to compare governors... SetCpu also have a tab somewhere that give the same information.

"battery monitor widget" will give you exactly the information you want. But value seems to be estimated. But the historic is great.

With all these applications together your phone have no secret.

Edit : less related but interesting : "cpu monitor" and the great "os monitor"

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S II General] Cookiem0sta:
NICE

cool this really helped me thanxx:victory:
[Galaxy S II General] bjareboy:
I would also recommend "Cool tool" from Play store to monitor your phone..
[Galaxy S II General] AllAboutAndroids:
THIS was very helpful and perfectly detailed! Thanks for this :D
[Galaxy S II General] Ku4t0:
Great post droidphile :good:

Could you add abbysplug governor?

Sorry if answered... and thanks in advance.
[Galaxy S II General] konrados:
Thank you. It is very helpful thread.

Wysyłane z mojego GT-I9100 za pomocą Tapatalk 2
[Galaxy S II General] droidphile:
Abbysplug is same as hotplug governor. I won't be editing this thread OP much since I have moved to Galaxy S3 i9300 forum. If I brief more governors there, i will link to that from here.

There's nothing called best settings. What works for you without instabilities are the best settings. Even i own that device, i won't know the best settings for you because ever phone, every hardware is different.
[Galaxy S II General] creeve4:
I have created the following init.d script:

#!/system/bin/sh
echo "60" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold
echo "50000" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate
echo "5" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_down_factor
echo "25" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold
echo "25" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step

I used Script Manager and ran the script as root. I got exit code 0 (no errors). The files I am writing to: up_threshold, sampling_rate, etc... do exist, but the values in my script are not being written to them. When I open the files with Root Explorer, they still contain the default values, not the values my script should be writing.

Samsung Vibrant

Custom ROM and Kernel (2.2)
[Galaxy S II General] droidphile:
Hm it could be a problem from kernel side. Permission issue of device files or so. Intimate your kernel dev about this. I myself have experienced this issue when i has GS2 and a build of Siyah. Lulzactive values were not sticking. Dev fixed it immediately.
[Galaxy S II General] Nathcro:
Thanks a lot mate :D

now I know what I don't hahaha

:good:
[Galaxy S II General] dor95:
thanks a lot great job :laugh:
[Galaxy S II General] SlakWReX:
So which would be the best for battery. I use smartass v2 it balances both from what I read.

Sent from a Galaxy 3759295 light years away.
[Galaxy S II General] krobinso2295:
What is up threshold and down differential for? What are they used to control, and what do they help?

-KR_Connect-
[Galaxy S II General] Firepac:
I have an at&t galaxy s2 and I just recently updated to the official ics. If I set my max cpu speed to 800 Mhz or less my phone would go into a restart loop. Is there some kind of compatibility issue? I am rooted of course.
[Galaxy S II General] droidphile:
Depends a LOT on the device you're using. Interactive based governors might do more harm than good on certain architecture. For ex: Smartassv2 might be good on GS2, may be not on GNexus, and definitely not good for Galaxy s3 - quad core architecture, etc. Moreover, any governor if tweaked properly can save juice without causing lags.

I have briefed them in detail in the second post.

800 is the frequency at which CPU should stay while entering and exiting deep sleep. Bootloaders on GS2 resumes at 800. So Never Ever attempt to UC below 800 mhz on S2 or in general - do not set your scaling max freq less than the suspend/resume frequency of your device.

Anyhow if max freq IS 800, that should not be a problem. Check if you're heavily UVed at 800. Also pull proc/last_kmsg from the device immediately after it restarts itself. I could take a look if you post here.
[Galaxy S II General] NDragger:
will this also work with Defy ?

if yes how should i proceed ?

Thanks :)
[Galaxy S II General] Shahrokh.KING:
the one and only topic i wont close on my opera, i always keep this page opened, i use it everyday, it's like a awesome book u read again and again
[Galaxy S II General] Firepac:
I set my screen off CPU speeds between 200Mhz - 800Mhz. The phone restarts when I turn the screen off. I'm using the default kernel so I don't have access to the voltages. How do I pull the last_kmsg?
[Galaxy S II General] Many40:
I had the same problem when I set screen off profile in SetCPU app. (200MHz - 800 MHz) on CF-root kernel. It turned out that stock kernel as well CF-root ones (which are based on stock) are not UC "friendly". When I sfifted to NEAK kernel and also finally to Siyah everything worked fine.

last_kmsg file you can find in /proc forlder. Regards
[Galaxy S II General] Firepac:
Okay I found the proc folder but I don't see a last_kmsg file. Is it in a subfolder? I did find a file called "kmsg" but it's 0 bytes and I can't open it.
[Galaxy S II General] anomy13:
Which governor/scheduler combo is best for battery saving?
[Galaxy S II General] BlackArtsInc:
Great source of information,this thread! :thumbup:

N.

Sent Using One Of My 5 iPads.
[Galaxy S II General] khal_nayak:
i find pegasusq governor and SIO scheduler to be good, looses around 1.5% per hour on standby/deep sleep on my sgs2, ics and siyah kernal
[Galaxy S II General] CamoGeko:
Check out my MagicConfig thread to get the best out of Siyah. ;)
[Galaxy S II General] DarkNiz:
I'm running MIUI 2.7.13 (Android 4.0.3) with Siyah 3.3.3d for the Galazy S2. I used the SmartassV2 governor and the Deadline scheduler. I lost 2% battery overnight. I'm not trying out SIO instead of Deadline but I'm leaving the governor on SmartassV2.
[Galaxy S II General] :
Nice govenor explanation!

Gesendet von meinem Galaxy Nexus mit Tapatalk 2
[Galaxy S II General] 43358005:
many thanks for the clear instructions!
[Galaxy S II General] mangusta86:
How do hotplug and abbysplug work?

I didn't find the answer to that in this thread... Thanks

Sent from my GT-I9100, CM9 powered
[Galaxy S II General] Many40:
This is what I found:

1. Hotplug

The “hotplug” governor scales CPU frequency based on load, similar to

“ondemand”. It scales up to the highest frequency when “up_threshold”

is crossed and scales down one frequency at a time when “down_threshold”

is crossed. Unlike those governors, target frequencies are determined

by directly accessing the CPUfreq frequency table, instead of taking

some percentage of maximum available frequency.

The key difference in the “hotplug” governor is that it will disable

auxillary CPUs when the system is very idle, and enable them again once

the system becomes busy. This is achieved by averaging load over

multiple sampling periods; if CPUs were online or offlined based on a

single sampling period then thrashing will occur.

Sysfs entries exist for “hotplug_in_sampling_periods” and for

“hotplug_out_sampling_periods” which determine how many consecutive

periods get averaged to determine if auxillery CPUs should be onlined or

offlined. Defaults are 5 periods and 20 periods respectively.

Otherwise the standard sysfs entries you might find for “ondemand” and

“conservative” governors are there.

2. Abyssplug:

Modified Hotplug governor.

Ref.: http://blog.g4team.com/?p=5519
[Galaxy S II General] aviral1990:
can anyone recommend me some settings for maximum fps in 3d games and minimum lag that the device is capable of..? Please dont tell me in the form of scripts but in the form of settings that i can tweak using extweaks..

cpu--500-1.4ghz

gpu: 200 267 400

confused bout governer and its settings

thanks

---------- Post added at 09:57 AM ---------- Previous post was at 09:54 AM ----------

Why not make a guide for squeezing maximum performance out of s2 for 3d games and stuff ? :)

nice guide on UV tho :)
[Galaxy S II General] Rndmness:
Try using smartassv2 as governor and sio as i/o scheduler :laugh: Also, overclocking both the CPU and GPU may be unnecessary to reach maximum FPS for most games.
[Galaxy S II General] khal_nayak:
i agree wth smartassv2 and sio as i have tried Lulzactive and VR but they r good for battery but cause lag and jittery UI
[Galaxy S II General] aviral1990:
There are few games like gangstar rio city, amazing spiderman, gta 3 etc.. mainly open world types..where the fps drops quite a lot at few places..
[Galaxy S II General] khal_nayak:
i wanted to ask about the script selection, which to choose for good battery life without jittery UI

Samsung default

Linux

thunderbolt
[Galaxy S II General] lupoalba:
I use smartassV2 and BFQ on my gt p1000 with overcome kernel.

In stby loose around 0.9% per hour.

GT-p1000 attualmente con Overcome 4.1.0
[Galaxy S II General] MiguelHogue:
Very nice thread.. I swear I read this a few times a day when I feel like switching up the settings on this awesome new kernel Rujelus made for us
[Galaxy S II General] dodoik:
paws ●๋•ηι¢є ιηƒσ●๋•

have loiking for it..:thumbup:
[Galaxy S II General] neyenlives:
great thread, thanks from a fellow GS user

has anyone done any reading on MCM-DCVS governor and what scheduler would complement it? thanks
[Galaxy S II General] DudeWatsThat:
I'm trying to create a init.d script but I don't know what commands are missing here's what I'm doing.

#!/system/bin/sh

echo 85 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 2 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias

What am I missing?

I would also like to know:

What are the basic and advanced commands used to create init.d scripts?

Basically what I want to know is all the ups and downs to creating init.d scripts for android.

I've searched extensively and yielded no good results regarding my questions, I even posted in different Q&A threads.
[Galaxy S II General] Silentbob999:
That looks ok... Just follow the naming convention as other script you have in init.d... Eg. S10enable_gov_ondemand_custom

Check for files permission too.. Execution rights are needed for sure. But just set permission as other script already in place...

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S II General] DudeWatsThat:
When I tested it with script manager it got errors.

EDIT---

I did a new one that's almost perfect, I only get 1 syntax error: fi unexpected
[Galaxy S II General] Silentbob999:
If that can help, I have one like this :

#!/system/bin/sh
#SmartassV2 Tweak

echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
echo "100000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
echo "500000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq
echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "70" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpufreq/smartass/up_rate_us
echo "49000" > /sys/devices/system/cpu/cpufreq/smartass/down_rate_us

Edit : I really dont see what cannot work on what you post first...

I saw script using :

echo 20000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

or

echo 90 >/sys/devices/system/cpu/cpufreq/conservative/up_threshold

or

echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;

I mean, they all work, with or without space, with or without ; .... That do not look very restrictive in syntax... but I am not an expert
[Galaxy S II General] DudeWatsThat:
This is what I have now:

#!/system/bin/sh
# Ondemand Optimizations

sysctl -p

/system/bin/setprop pm.sleep_mode 1
/system/bin/setprop ro.ril.disable.power.collapse 0

if [ -e /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
fi
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate ]; then
echo "50000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
fi
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor ]; then
echo "2" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
fi
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias ]; then
echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias
fi

In line 11 (the first fi) is where I get the syntax error: fi unexpected
[Galaxy S II General] Silentbob999:
Too advanced for me :rolleyes: sorry

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S II General] DudeWatsThat:
Thanks for trying though.
[Galaxy S II General] SpyderTracks:
Epic thread, thanks very much.
[Galaxy S II General] mburrieza:
Wow, nice thread. I thought that I knew a lot about governors and tweaks...

Testing VR with tweaked lulzactive in my Note right now, to try to improve the battery life without a high impact on performance.

Thanks
[Galaxy S II General] phikal:
Very handy thread. :)

Thx for this !
[Galaxy S II General] zenosteam:
premium xda thread

Envoyé depuis mon GT-I9100 avec Tapatalk
[Galaxy S II General] hendav:
Thank you for this droidphile! I finally understand more about kernels... This thread will be referred to in the future
[Galaxy S II General] kkk-sgs2:
Thanks, good Job!

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Galaxy S II General] oggay:
Thx for ur amazing work!! :)

Even i dont understand a lot but it realy usefull!!

I use SMARTASSV2 and SIO as i/o, cz i need a little more performance i use some tweak:

echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
echo "245760" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq
echo "75" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "50" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "128000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
echo "256000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "48000" > /sys/devices/system/cpu/cpufreq/smartass/up_rate_us
echo "99000" > /sys/devices/system/cpu/cpufreq/smartass/down_rate_us

I want to hear ur opinion about that tweak.

I want to ask, every i reboot my phone, that tweak become default value again. How to save it so i dont need to change it again after reboot?

Sorry I'm noob,i hope u can help me and sorry for my english. :)

Thx before.
[Galaxy S II General] droidphile:
From your script - looking at the frequency I can't guess your device. If you tweaked after reading the description of tunables in my posts, then it shouldn't be bad! If you're looking for performance, reduce "up_rate_us" little more. (24000 or so)

For settings to be persistent after reboot, save the script in /system/etc/init.d and give full permissions.

OR

Use SetCPU from playstore which is v noob friendly and you can tweak all the parameters of your active governor.