yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] pikachu01:
The fifo_batch can be a small number (it doesn't make that much of a difference if it's from 1 .. 5). The writes_starved though needs to take into account the read/write speed of the I/O. From benchmarks, I often see that the write speed is around 5-10MBPS (depending on file sizes of 100KB-10MB). The read speed is around 7-15 MBPS, also with the file sizes of around 1MB. The 2:1 writes_starved should be the correct value for our phones unless Samsung releases a new flash drive generation that has more discrepancy between read and write speed.

Note: This is done in Galaxy S. Let me check Galaxy S2 and see how much has changed from it. I'm using Passmark and Linux's dd to check this.

Edit: Galaxy S2 has about 2.5 reads to writes. Having a ratio of 2 is still fair.

What's your phone/ROM and how much /data space do you have?
[Android Software/Hacking General [Developers Only]] spitbull46:
LMK VALUE i must installed in note II?
[Android Software/Hacking General [Developers Only]] pikachu01:
Try the 100MB LMK :)
[Android Software/Hacking General [Developers Only]] vesper007:
Works perfectly

I've been using this script for a while on my Xperia X10 with both ics and gb roms and I can report that it works perfectly well with supercharger and 26% zram/compcache with no issues whatsoever. There is a noticeable increase in speed and general system performance. Bravo!
[Android Software/Hacking General [Developers Only]] .:Crack:.:
What's your opinion on the new Chinese buddy, Mr Pokémon ?

https://github.com/DerTeufel/samsung-kernel-aries/commit/ef56e733ef6caa735ae7551380dc1dbe1ad5e7fc

IMO you should update your I/O scheduler ranking (due to bfqV5 etc)...
[Android Software/Hacking General [Developers Only]] dark_knight35:
DerTeufel works on his kernel :eek:!
[Android Software/Hacking General [Developers Only]] pikachu01:
Good to know :)

I'll take a look at it later :)

Hm?
[Android Software/Hacking General [Developers Only]] kaluoshi:
hey pika i would like to include your scripts in my rom. so for the main 2.8.0 pack it's all ok i know where to put, but about LMK i read in the OP that with JB it needs to added with build.prop method. do you mean add "local.prop" lines to build.prop and not include "local.prop" in /data? thank you man for the hard work :good:

P.S. i use init.d way
[Android Software/Hacking General [Developers Only]] pikachu01:
No, build.prop is the way to go. /data/local.prop doesn't work. :/
[Android Software/Hacking General [Developers Only]] kaluoshi:
so i have to add those lines to build.prop and do not include local.prop, right? thanks!
[Android Software/Hacking General [Developers Only]] SilentWarrior87:
NIIIICE =) i love your scripts..!!! I thought that you have abandoned the work on it ;)

Just installed it via CWM. I've mounted every drive, after the installation i've cleared cache, dalvic cache and fixed premessions. After a loooong long boot, my i9000 laged like hell =( i had multiple app-crashes and a never-ending media-scan. Something's wrong. Can you help me?

My i9000 runs with Doctors ROM v16 (2.3.6 - JW5), Semaphore Kernel 2.7.4 and some other tweaks (buildprop-tweaks, smoothness-script). With Thunderbolt 2.7.7 it worked great.

I look forward to your reply. Greetings from Switzerland ;)
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes. That's the gist of it :)

Umm, you don't need to clear caches as well as fixed permissions. Why would you do that?

The fix permissions is sometimes buggy that causes some problems for apps. I've never used it at all after some bad experiences with it as the moment I use it, either my root apps crash or busybox gets pointed to the wrong one. There was once that fix permissions corrupted my /data folder as well. This was caused by scripts that were called with "fix permissions" that sometimes do more than what it should.

You should uninstall all other tweaks (buildprop-tweaks and smoothness script). It'll conflict with whatever ThunderBolt! is doing. ThunderBolt! also changes some build.prop values though loopy smoothess is known to cause lagginess because some resources are routed to prioritize apps that are only useful for a while. Do note that Android apps reside in memory even after you close it. Hence the resource allocation (CPU time slice) will prioritize the one you set in loopy smoothness even after it is in the background, causing foreground processes to lag.
[Android Software/Hacking General [Developers Only]] dark_knight35:
@pikachu did you know that lpy updated his smoothness script? But it gives boot loops on some Galaxy S. Maybe you want to look at it.
[Android Software/Hacking General [Developers Only]] pikachu01:
The general idea is still the same. Background processes take in more priority than foreground processes with an imbalance nice value. Android apps/processes never really get killed until the LMK kicks in, hence even if the process in the background, it'll still get more priority (cpu slice time) than foreground process due to the nice values.

Nice values are actually mainly used to make mission critical processes (that always run all the time and active all the time) to get more priority in cpu slice time. Having it in Android that sometimes require different priorities on foreground/background process defeats that purpose.
[Android Software/Hacking General [Developers Only]] icu64:
Ok I have a question, how do I lower the risk of corruption? I don't have a ext4 file system on my phone
[Android Software/Hacking General [Developers Only]] pikachu01:
What file system are you using? Type

mount

Whatever file system it is, there is always a risk of corruption when the system loses power without a clean shut down.
[Android Software/Hacking General [Developers Only]] icu64:
The file system on my phone is yaffs2 and I partitioned my SD card with ext4 to use why link2sd, and thanks for the help! :)
[Android Software/Hacking General [Developers Only]] SilentWarrior87:
hmm... i re-tried it... no success... my media-scan won't stop and the system feels veeeery laggy :( before, i made a CWM-restore, uninstalled the old thunderbold-scripts and uninstalled every other tweak... i also didn't clear de caches... so i've no idea where the problem is :(
[Android Software/Hacking General [Developers Only]] Fenvarien:
I had similar problems once because of conflicting scripts. I'd recommend a clean ROM install with a full wipe to get rid of any relicts. Then just reflash kernel and Thunderbolt. Keep in mind that some settings in the semaphore app can also conflict with Pika's scripts.
[Android Software/Hacking General [Developers Only]] jnr21:
@pika: I have sgs3 with liquid smooth rom (aosp/aokp) and siyah kernel, i also have hard swap script installed (swap partition is on external sdcard). Which scripts are compatible with my setup?
[Android Software/Hacking General [Developers Only]] Gassity:
hello, after zipaligning I've lost all of my gapps. If I just flash the cwm, would there be any differene? Or I have to run scripts?
[Android Software/Hacking General [Developers Only]] pikachu01:
For your sdcard, try enabling barriers and have a lesser amount of commit to reduce the risk of corruption. This however does not eliminate the risk of corruption. It is always there no matter what you do.

Follow Fenvarien's advice below.

Main CWM, LMK :)

I thought I've fixed this. :/

I'll remove /system/app from being zipaligned. Update it in a bit.
[Android Software/Hacking General [Developers Only]] azoller1:
Can someone confirm this working on the lg spectrum?
[Android Software/Hacking General [Developers Only]] SilentWarrior87:
hi Fenvarien

thank you for your suggestion =) this sounds plausible. The point is: i don't want to reflash my rom :( This morning i've seen, my device has installed some more scripts. The saurom-scripts. They're coming with the theme i'm using. ooo crap. i thought it could work, when i firstly flash a stock kernel, kill all tweaks and then install the thunderbolt-scripts!? will try this...
[Android Software/Hacking General [Developers Only]] pikachu01:
Can you attach the scripts here and I'll see whether or not they are compatible with ThunderBolt!? :)
[Android Software/Hacking General [Developers Only]] SilentWarrior87:
hey picka =)

sure i can... they are stored in root\etc\sauromscripts\...

i'm using not all of them. only this ones (running them with ScriptManager as [root] and [boot]:

S30disable_logger (I never need a log - so: bye bye ^^)

S99enable_min_frecuency_200 (I know I know: battery-killer... but I love it fast ;) )

addons/S97enable_graphics (was only a test ; never had problems with it so I never turned it off)

tests/05enable_busybox_clean (don't know why i'm using this ^^)

tests/07enable_gpsconf_alternative (seems to tune my gps-signal)

so long...

sauromscripts (became it with ICS Inspired Theme for JW5):

View attachment 1504538
[Android Software/Hacking General [Developers Only]] Fenvarien:
Did you check system/etc/init.d folder and build.prop tweaks? All this can cause trouble ;)

1.Remove all scripts from init.d.

2. If you have a tweaked build.prop and can't restore a clean build.prop from a backup you might need to start all over with wipe all/ROM flash.

I used this opportunity to install CM 10.0 stable with Semaphore-JB (which has many improvements and a new Semaphore app for free in the Play Store). Then you can flash Thunderbolt main cwm for it's additional magic :) :good:
[Android Software/Hacking General [Developers Only]] SilentWarrior87:
I've tried that yesterday. Fortunately i've done a backup of my stock-build.prop before i started tweaking it ;) so I restored the backkup and flashed the thunderbolt-scripts again. No improvements :( I think the problem are the active saurom-scripts (see 1 or 2 post before). I will try it again without this scripts. The main thing is: I don't wanna wipe my system cause i love it how it runs now ;)
[Android Software/Hacking General [Developers Only]] Gassity:
Is it possible to it with SuperCharger script at the same time? Or they both do the same things?
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Already had some time? :)
[Android Software/Hacking General [Developers Only]] kaluoshi:
Hey pika, how can i choose a good

S98CFS*? I have a Galaxy Nexus. I read about testing the various, but if you can tell me how it works and what it modify would be great :) i'm using stock one now
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, the LMK addon and SuperCharger script does the same thing with different values. You can only install the LMK addon or the Supercharger script. The main CWM and all other addons can co-exist.

Don't use the enable_graphics (I know you never had problems with it, but certain configurations of it does cause problems eventually). About your media scanning problem, it might be related to:

http://www.google.com.my/search?hl=...a=X&ei=ZzKwUPjOEsrSrQeB44DQBw&ved=0CDgQrQIwAA

If you restarted mid-way during the long boot, the media scanner cache files might be corrupted. Try using rescan media root:

https://play.google.com/store/apps/details?id=com.addz.mediascannerroot&hl=en

Nowadays, it's not so clear cut anymore as to how good a scheduler is just by looking at the code and without testing it as a lot of them made changes to bypass algorithm made for deducing weights/priorities/seek-ahead in spindle disks, hence it takes quite some time diff-ing/comparing algorithms. It has now come to a point where NAND based I/O scheduler needs a benchmark (a real benchmark that simulates minimal background processes and foreground to see how both performs).

You run them with Script Manager and then play some games, interact with the UI and download some stuff from the Play Store to see which feels more fluid :)
[Android Software/Hacking General [Developers Only]] Windows X:
Excellent. Seeing dirty centrisec values similar to what I use is real assuring here. I used 3000/1500 and 6000/3000. Hoping improved screenstate will make result more satisfying :D
[Android Software/Hacking General [Developers Only]] pikachu01:
Good to know. Let me know if you have any values that you think will benefit the script more :)
[Android Software/Hacking General [Developers Only]] adame09:
I'm getting error trying to flash this 2.8 on my lg g2x any fix?
[Android Software/Hacking General [Developers Only]] SilentWarrior87:
Hi picka!

i've done a lot of tests these days. Still no improvements :( Until i boot my device with the scripts, it feels veeery laggy and the media scan will not stop. I let it scan for about 30 minutes. Then it finished. But it still feels very laggy. After a reboot, the same problem occurred again. The «rescann media root» app didn't help.

In the interim I have problems with all versions of ThunderBolt (?!). I give up - I cleaned my system from this scripts and all works fine. Too bad. Thanks anyway for your support :)
[Android Software/Hacking General [Developers Only]] pikachu01:
What error are you getting? Might be your CWM version. Try replacing the updater_binary file in the META_INF folder of the zip file with one that works with your phone (e.g. you've flashed some CWM zip files before this, just copy the file into ThunderBolt!'s zip)

Might be some values that is conflicting with whatever the kernel sets. Try installing the script one by one and see which one is the one that triggered it?
[Android Software/Hacking General [Developers Only]] SilentWarrior87:
That's execatly what i've tried. I've deactivated every running script, deinstalled every tweaked file and set de kernel-tweaks to there defauls (via semaphore-manager-app). It just will not work. But it's okay. I will get a new phone soon ;)
[Android Software/Hacking General [Developers Only]] icu64:
i cant get it to flash on my phone
[Android Software/Hacking General [Developers Only]] kaluoshi:
hey pika i focused that some your scripts has a lot of "commented" commands. do i have to set each script properly? i mean do i have to edit them for my needs before including in rom? thanks!
[Android Software/Hacking General [Developers Only]] pikachu01:
If deactivating every tweak doesn't work, that means something has corrupted the system files. There is a risk of corruption when using the remount script. There is also risk of corruption for the zipalign. I'll need to disable /system from being zipalign in the next version.

What error are you getting?

Those are commented for a reason :)

Some are commented because they actually gave negative performance, and some are because they need more research to get a good value for them.
[Android Software/Hacking General [Developers Only]] topiratiko:
Pikachu I know you know your stuff and I don't mean to derail your thread but I was hoping you can help me.

Why is this init.d script not working.

#!/sbin/busybox sh

echo "1200000 1000000 800000 500000 200000 100000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

Sent from my AT&T Samsung Galaxy SII 4.1.2
[Android Software/Hacking General [Developers Only]] pikachu01:
What kernel are you using?

Also, running this script in Script Manager, what error are you getting?

You might face either:

1. The kernel sets it so that it doesn't accept those frequencies/list of frequencies

2. You have a busybox issue.
[Android Software/Hacking General [Developers Only]] topiratiko:
Siyah 5.0.1 micswap

Uploading pic now

Sent from my AT&T Samsung Galaxy SII 4.1.2
[Android Software/Hacking General [Developers Only]] topiratiko:
Sent from my AT&T Samsung Galaxy SII 4.1.2
[Android Software/Hacking General [Developers Only]] pikachu01:
Either you don't have SU permissions or your kernel doesn't have this sysctl interface:

/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

Try using Root Explorer and navigate to the directory/path. See if the file is there.
[Android Software/Hacking General [Developers Only]] topiratiko:
Its there! lol

Sent from my AT&T Samsung Galaxy SII 4.1.2
[Android Software/Hacking General [Developers Only]] topiratiko:
Also I've read up on it and as long as 500-800-1000mhz are listed as values it will work. Again I'm sorry for cluttering your thread but your always very helpful. Attacking the thanks button now!

Sent from my AT&T Samsung Galaxy SII 4.1.2

---------- Post added at 03:20 AM ---------- Previous post was at 03:04 AM ----------

I don't see any keying errors on my part

Sent from my AT&T Samsung Galaxy SII 4.1.2
[Android Software/Hacking General [Developers Only]] pikachu01:
I believe that Siyah limited the ability to reduce the available frequencies to the original 8. Hence why you're getting this error. You'll need to use the internal way to do it. I forgot the syntax k* something. You can view it in droidphile's thread.
[Android Software/Hacking General [Developers Only]] snapx:
Hello Pika, I have a doubt. It's compatible ThunderBolt!, LMK and screenstate_scaling addon with siyah kernel 5.0.1 using the options "battery profile" and doing undervolting in a Galaxy S2 with ICS, or it can cause incompatibility with these options. Thanks.
[Android Software/Hacking General [Developers Only]] pikachu01:
You should use the default profile and then use ThunderBolt! as the battery profile also tweaks some things that ThunderBolt! already does.
[Android Software/Hacking General [Developers Only]] snapx:
Ok, I understand that it is better to leave STweaks's configuration default without undervolting and only to install Thunderbolts tweaks, truth?
[Android Software/Hacking General [Developers Only]] pikachu01:
No, you can tweak anything you want in STweaks. Undervolting/minimum/maximum frequency/BLN/ Scheduler etc. It's just that the profiles themselves will tweak something more than STweaks that will conflict with ThunderBolt! tweaks.
[Android Software/Hacking General [Developers Only]] snapx:
Thanks ;)
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Where do we get that benchmark? :D
[Android Software/Hacking General [Developers Only]] pikachu01:
So far for Android, I haven't seen one. For Linux, there are a few out there.
[Android Software/Hacking General [Developers Only]] salvopetrucci:
Is this script compatible with N7100 ( NOTE2)?

Inviato dal mio GT-N7100 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
There are some successful cases of using it with Note 2 :)

Just try and use main CWM, LMK and screenstate_scaling. Be sure to have a nandroid backup before you start!
[Android Software/Hacking General [Developers Only]] itasoulas:
is this necessary for scripts to work correctly on Galaxy Nexus, or just flashing the CWM zip will do the job?
[Android Software/Hacking General [Developers Only]] pikachu01:
Those steps enable some scripts to be independently ran on Script Manager. Without doing those steps, you'll not be able to enjoy the full extent of the script repertoire that ThunderBolt! has.
[Android Software/Hacking General [Developers Only]] itasoulas:
thanks man, one last thing...any preferred version of LMK that works good on NEXUS (except 40!!!! :D)
[Android Software/Hacking General [Developers Only]] pikachu01:
60-100MB are all good. Try them and see which one is the best for you :)

Try the 100MB one first.
[Android Software/Hacking General [Developers Only]] pikachu01:
News

ThunderBolt! 2.9.0 is out! Setting SHM values based on Total Available Memory! Changes to VFS_CACHE_PRESSURE! Minor change to dirty_ratio/dirty_background_ratio for <512MB devices! Zipalign script changes!

Changelog:

12/3/2012 (2.9.0 and screenstate_scaling 2.3.0)

- Fixes to screenstate_scaling script. Minor typo that prevents some busybox versions from running it.

- Added kernel.shm* tweaks that is calculated based on your available memory.

- Upped vfs_cache_pressure to 50 on screen on, and 100 on screen off so that free memory is still kept fair, but performance on caches vs disk is still balanced.

- Disable /system/app/*.apk zipalign as this causes some Cyanogenmod devices's Google Apps to disappear.

- Lowered dirty_ratio/dirty_background_ratio for < 512MB a bit based on more recent benchmarks.

Note: I've added instructions to run the LMK script with Script Manager. This is because I've just discovered that CM/AOSP/AOKP OSes will overwrite the LMK/OOM values after init.d scripts are executed.
[Android Software/Hacking General [Developers Only]] adame09:
Nice:thumbup:
[Android Software/Hacking General [Developers Only]] Fenvarien:
Great, thanks for your hard work! :):thumbup:
[Android Software/Hacking General [Developers Only]] kaluoshi:
Cool Update!

Good pika!! :D anyway a many hundred times asked questions: i'm following your and zeppelinrox thread, and i read there about the supercharger script that with Jelly Bean, ADJ and minfree values should work only with a patched service.jar. (1) didi you find a way to use it without the patched service jar? (2) can i tweak the Minfree and ADJ values in build.prop and Minfree/ADJ files? (3) with 1 gb of ram 60 MB LMK would be a great solution for a better multitasking cause to enough RAM? thanks for the hard work! i think all rom have to have your scripts baked in, everyone with specifics needs and using different combination :) this is the reason i would like to know well how they works ;)
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Pooort! :p

I've got a 'sysctl: short write' is that a severe problem? It seems like it's the shmall line that causes the issue. Images attached :)
[Android Software/Hacking General [Developers Only]] herc2k:
teh LMK addons 100 others. have to run every time with script manager? (root, adn reboot so will run automatic every time? or i just place it on init.d ? )

slim bean

semaphore
[Android Software/Hacking General [Developers Only]] pikachu01:
1. I'm reading the ActivityManagerService.java to see if Property changes affect it as well. Let me get into it and report back.

2. Same as above. My initial testing in ICS was that it works without problems. I'm testing it in JB right now to see if anything has changed.

3. 60MB is fine with 1GB of RAM :) I'll need to change the MAX_HIDDEN_APPS prop to make sure hidden apps aren't killed after a set amount of time (15mins I think?)

Looks like, either your kernel limits the shmall to a certain number or the kernel disabled setting shmall. It works fine on my side (CM10 and Stock ICS)

If you're running AOSP/AOKP/CM derivatives, you should run it with Script Manager as some OSes will change the LMK values post init.d execution.
[Android Software/Hacking General [Developers Only]] zerorated24:
We need to just flash this update over the former version right? Or do we need to delete the old version first?

Report: The script works for me as stated in the OP, I get the adj values and the sysctl values according to my free RAM. But I got stuck at boot logo everytime I flash the sqlite add-on. I mount system first since it doesn't automatically mount system. But still stuck in boot logo
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, just overwrite it.

Most likely the libsqlite addon isn't compatible with your device. You're using Gingerbread right?
[Android Software/Hacking General [Developers Only]] zerorated24:
yeah, gingerbread. :D

Anyway your script is also awesome, noticed significant increase in speed and smoothness.
[Android Software/Hacking General [Developers Only]] pikachu01:
If I have the time, I'll try to compile a libsqlite plugin for your device. :)
[Android Software/Hacking General [Developers Only]] zerorated24:
Thank you! :)