yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Update v2.0.0. Totally Revamped CFS and VM tweak with additional /proc/sys/kernel tweaks and introduced renicing in system_tweak and screenstate_scaling that would increase the degree of smoothness in core applications (like launcher/phone/sms). Added the discard mount option. Writes speed will increase overtime. Renamed the CWM zip filename a little bit.

Changelog:

11/20/2011 (2.0.0)

- Revamped CFS tweaks by making rationalizing the values to a few rules (Values not be 500,000 for each sched_*_ns and latency should be 4 times the min_granularity). Should reduce problems associated with sudden lags or games that are not working correctly or apps that are not working correctly. This is a wide assumption, hence it's not an all encompassing fix, but it should make things work better in the long run.

- Revamped VM tweaks to increase garbage collection of caches and reduced cache ratios so that its getting written much easier. Should reduce microlags by a bit.

- Increased semaphore limit by a bit. Just increasing the limits, wouldn't affect much too, but set the recommended limits.

- Added shmmax and msgmni tweaking. Increased shared memory segments and messaging (thread messaging related). Wouldn't affect much too, but set the recommended limits.

- Added renicing of apps for phone,sms,keyboard,system ui, some important system apps to have higher priority than other processes. Increased smoothness on those apps.

- Added discard mount option to all ext4 mounts. Automatic TRIM is induced to increase write speed of all SSD type mounts in the long run. You'll not feel this at the beginning, but once you've used your disks continuously in the long run, the write speeds will increase by a bit.

- Revamped VM tweaks and added renicing processes for screenstate_scaling. Will scale those by screen behaviour.

- Renamed the CWM zips by removing the duplicate i9000.
[Android Software/Hacking General [Developers Only]] fractaline:
Awesome :)

Sent from hither to thither
[Android Software/Hacking General [Developers Only]] pikachu01:
Let me know of the performance as well, compared to the last version. Too many incremental changes to gauge on my side.
[Android Software/Hacking General [Developers Only]] fractaline:
So I just flashed 2.0 and I've lost my go launcher settings, it's home back to default....

I flashed all the add ons as well, 50 lmk.

Would it have been the sqlite? It's set as root not boot.

Sent from hither to thither
[Android Software/Hacking General [Developers Only]] pikachu01:
It's due to the patched libsqlite, which is completely different than the sqlite_optimize script. You can corrupt data just by losing power to the device. Don't worry, it's recoverable. Just restore your backup from Go Launcher or replace all your widgets/shortcuts again.

It's not an OS corruption to say the least.

And let me reiterate, the patched libsqlite has a risk of corruption. It's already stated in the OP. If you can't face that risk, don't install the addon.
[Android Software/Hacking General [Developers Only]] fractaline:
Yes i'm happy with the risk, I was aware... just trying to connect the dots. It's the first issue I've had and no big deal ...... I most certainly am not complaining. :)

The 3g add on is great btw

so many thanks for keeping it fresh!

Sent from hither to thither
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, I understand. Just wanted to reiterate so that the readers also understand that this is a completely known scenario :)
[Android Software/Hacking General [Developers Only]] burakgon:
Hi brothet I flashed v2. And must say that decreased my overall fps and 3d fps a bit. Old 1.9.4 better for me. Switched it back. Thank you!
[Android Software/Hacking General [Developers Only]] pikachu01:
Hey guys,

Since I have the time today, I would like to post ThunderBolt! in multiple threads. Namely:

Android Hacking

Samsung Galaxy SII

Samsung Galaxy S 4G

Samsung Captivate

Samsung Vibrant

Samsung i9001/i9003

I wonder if ThunderBolt! works for Nexus/Nexus4G as well as Infuse. If anyone knows, can you please notify me?

And let me know if I shouldn't post in those forums.
[Android Software/Hacking General [Developers Only]] burakgon:
I tested it on galaxy ace, fit on ext4 + init.d support. Didn't worked.
[Android Software/Hacking General [Developers Only]] pikachu01:
It must be due to the CFS, as I made it unaggressive to stave off some problems people are facing. Their processors can't handle that granular of a setting.

How much does it decrease though?
[Android Software/Hacking General [Developers Only]] pikachu01:
Is Galaxy Ace using Gingerbread? Why didn't it worked? What errors were there?
[Android Software/Hacking General [Developers Only]] jeebspawnshop:
It's better to make the script compatible with a wider range of devices than to give a >few< people an extra fps or two :P
[Android Software/Hacking General [Developers Only]] Sqb:
nice work sir! Blazing fast and can't wait until apex 11 debuts so I can try it out on that. Hopefully my next paycheck I will be able to put another donation in your account. Thank you for your continual commitment to thunderbolt. The things that you and Existz make our Cappys do is amazing.

Sent from a rock on fire in the middle of the sea
[Android Software/Hacking General [Developers Only]] hackeron:
When I run sqlite_optimize as root in script manager, I get this:

Something wrong or normal?
[Android Software/Hacking General [Developers Only]] pikachu01:
Thank you :)

Do you notice any regression in performance?

Thank you for the the donation offer. Appreciate it alot :) Makes me happy that my work is appreciated a lot by the members here.

It's normal. Stated in the OP in known issues :P
[Android Software/Hacking General [Developers Only]] fractaline:
Only a couple if hours so far but this thing is fast and smooth.

I'm particularly noticing the extra smoothness in the system apps, they seem quicker to respond as well.

Btw is it a general recommendation to set swap and zram to 0? It's been working well for me but seems to favor performance over multitasking. Is that to be expected?

Sent from hither to thither
[Android Software/Hacking General [Developers Only]] Sqb:
The last release seemed to be holding back some but 2.0 feels much better running apex 10.1 with talon 5.2.5 oc1200 no UV. more crisp at least on my side

Sent from a rock on fire in the middle of the sea
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah, swap in particular prefers multitasking so that unused applications are packed into the swap space and be reused when necessary. You can disable it if you want actually.
[Android Software/Hacking General [Developers Only]] pikachu01:
Cool :)

That's what I'm expecting actually. :)

There will be a tad of reduced performance since CFS is taking a backseat in this version, but with a lesser aggressive CFS, hangs and quirks are less likely to happen. This also includes microlags.
[Android Software/Hacking General [Developers Only]] pikachu01:
I will release 2.0.1 in a few minutes. Along with 1.1.1 of screenstate_scaling. Stay tuned :P
[Android Software/Hacking General [Developers Only]] Sqb:
You sir are a machine.

Sent from a rock on fire in the middle of the sea
[Android Software/Hacking General [Developers Only]] pikachu01:
Lots of free time on a Sunday afternoon with an inquisitive mind towards Linux. Deadly combination. :P
[Android Software/Hacking General [Developers Only]] s30ckf:
Pika pika, I just finish downloaded your newly release 2.0 version, unplugged USB cable after transfer the file to phone, and read the latest reply before flash, then saw your msg 2.0.1 is releasing soon... so I will wait till that .... :)
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Update v2.0.1. Modified the VM and renice priorities. Removed ksoftirqd from being reniced.

Changelog:

11/20/2011 (2.0.1)

- Changed VM settings slightly. Made expire to be 30 seconds, but kept the writeback to once every 2 seconds. Should provide a smoother garbage collecting.

- Removed ksoftirqd from being reniced and changed the renice priorities of each app. Should provide a smoother experience.

11/20/2011 (2.0.0)
[Android Software/Hacking General [Developers Only]] fractaline:
You ARE a machine!

Just wondering if there is something different in the libsqlite in 2.0 and 2.01? I didn't have the data corruption issue (go launcher widgets etc) with 1.8 or 1.9.

Just curious...

Also is there a recommended governor to use to make the best use of the screen state script? I'm using smartassV2.

Sent from hither to thither
[Android Software/Hacking General [Developers Only]] sherpa25:
Thanks for these again, pika.

What's the main diff bet. both 2.0.0 and 2.0.1? Should we just jump to 2.0.1 and screenstate 1.1.1, or are there optional changes that would make 2.0.0 and 1.1.0 more suitable options?
[Android Software/Hacking General [Developers Only]] pikachu01:
Nope, libsqlite addon is still 1.0.0. No changes there. As I've mentioned, these corruption may occur randomly. It is as likely to occur as how an earthquake can occur in any major city in the world.

If you're using smartassV2, you won't have to do anything else. Just install the screenstate_scaling and let it handle the VM scaling for you :)

Jump to 2.0.1 and screenstate_scaling 1.1.1. There are changes in there that boosts performance by just a little bit more :)
[Android Software/Hacking General [Developers Only]] flolep:
I personally recommend putting swappiness to 0 as it permits to get rid of the lags introduced by talon kernel after several hours of use...

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] burakgon:
Old was amazing. Old was locking to 56 %95 of time. Now it drops 28 %50 of time. And shadowgun and dungeon defenders not smooth like 1.9.4 for me.
[Android Software/Hacking General [Developers Only]] burakgon:
Galaxy ace was on gingerbread and it didn't boot up after flash. Maybe a busybox problem I didn't checked it. I will try again for feedback.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yup, that too. If you're not using swap, you can put the ZRAM size to 0 as nothing will fill it.

Can you try 2.0.1 and see if it fixes your problem?

Hmm, might be the didle problem? Did you install the screenstate_scaling script?
[Android Software/Hacking General [Developers Only]] sherpa25:
Can this be done just by setting it to 0 in Memory Freak? And after setting it, will this simply 'get rid of lags' or are there other implications? Perhaps pika would have already considered it before if it was the solution?
[Android Software/Hacking General [Developers Only]] pikachu01:
There are inherently two different lags we're talking about here.

One is due to the LMK and another due to the swap.

The swap lagginess very rarely occurs, and only occurs to like 2 people so far (that I know).

And yes, reducing swappiness to 0 puts more memory to the user as ZRAM is apparently swap that is located in the RAM itself (i.e. it uses some RAM as swap).
[Android Software/Hacking General [Developers Only]] burakgon:
I tried older versions. I will try today again. Wait brother testing 2.01 for feedback. All is amazing smooth overall.
[Android Software/Hacking General [Developers Only]] RolluS:
Pika pika!

Thanks for your hard work :D

I'm using your Thunderbolt! scripts since 1.8.0

I've some question according to swap: on I9000, how does it works? Where is swap mounted?

++

RolluS
[Android Software/Hacking General [Developers Only]] pikachu01:
Cool :) Glad that 2.0.1 is smooth for you.

If you're using TalonDev, it implements a swap space called compache. It is a swap partition taken out from a chunk of RAM and compressed (hence the name compcache). It's mounted from /dev/block/zram*. About the specifics of it being mounted, I'm not sure. I need to dig into the source code for that.
[Android Software/Hacking General [Developers Only]] KingMetal:
Can i flash the new one over neo 18? Without doing all kind of things?
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes, you can flash it directly since screenstate_scaling was removed and made an addon. You can install all the other addons but avoid screenstate_scaling as there's a bug in CM7 that causes it to hang at boot.
[Android Software/Hacking General [Developers Only]] Desotho:
Hey pikachu,

been using your scripts with lots of you. Absolutely awesome work! One problem..when I try to run the sqlite script as root..it says "script not found" like 5 times.. Any idea?
[Android Software/Hacking General [Developers Only]] burakgon:
I tried 2.01 this dropped FPS more. Rolled back to 1.9.4. Thank you anyway. 1.9.4 is still amazing for me.
[Android Software/Hacking General [Developers Only]] pikachu01:
Script not found?

That's weird. Can you give me a screenshot of it?
[Android Software/Hacking General [Developers Only]] pikachu01:
Is the FPS score based on benchmark or real life gaming?

If it's based on benchmark, I'm afraid I won't take your views into account. If it's based on real life gaming, I would need to tweak the CFS more, but that would really make other phones that have weaker processors break even more. Hmmm :/
[Android Software/Hacking General [Developers Only]] ZaneZam:
Amazing work, thx a lot ! I am still on 1.9.4 will test 2.0.1 soon!
[Android Software/Hacking General [Developers Only]] burner07:
pikachu01 sorry for nubish question but can you tell me the procedure of installing the script on stock jva+semaphore 1.8.2?
[Android Software/Hacking General [Developers Only]] Fenvarien:
For my usage gaming performance is not very important. Overall system performance and battery life is what really matters. And in this respect Thunderbolt 2.0.1 is faster/better than ever :-)
[Android Software/Hacking General [Developers Only]] pikachu01:
Which instruction are you stuck at? Let me know the specific line.
[Android Software/Hacking General [Developers Only]] burakgon:
Maybe you can make 3 different cfs versions like glitch kernel? Because I was good on 1.9.4
[Android Software/Hacking General [Developers Only]] burner07:
so in cwm in mount/stor at system and data how must it be? before installing : mount/system or -unmount /system? and do i need to do anymore that script manager thing with run as boot?
[Android Software/Hacking General [Developers Only]] KMino:
Pika some feedback, I think we have a problem with renice.

It's

renice -2 `pidof com.android.phone`;

Should be?

renice -2 pidof com.android.phone;
[Android Software/Hacking General [Developers Only]] pikachu01:
That is an idea I'm still deciding for now. So is it benchmark or gaming?

You need to mount /system and /data. Go to Mounts and Storage in recovery (Home, VolumeUp,Power) when you're powered off.

If you're running on boot in Script Manager, you don't need to do it again. It'll run on boot, as stated.
[Android Software/Hacking General [Developers Only]] burner07:
i know i need to mount but how does it need to be written? mount or unmount? to be mounted ? and its necessary for the script to work to do run on boot in script manager? actualy do i need script manager for the script to work?thx
[Android Software/Hacking General [Developers Only]] Fenvarien:
To maintain three different CFS versions could be to much work for Pika, he already offers a lot of options and addons.

But maybe a gaming addon for those who need more fps than overall system performance?
[Android Software/Hacking General [Developers Only]] GramiFIN:
Error!

Open up Script Manager and launch /sdcard/bolt_scripts/sqlite_optimize as Root. While I am doing that comes error: databse disk image is malformed.

and database is locked.:mad:
[Android Software/Hacking General [Developers Only]] pikachu01:
It will show up as "unmount /system" and "unmount /data" when you have mounted it in recovery.

Yes, you need Script Manager.
[Android Software/Hacking General [Developers Only]] burakgon:
Thank you brother you're great!
[Android Software/Hacking General [Developers Only]] Desotho:
Here you go. Hope it helps.
[Android Software/Hacking General [Developers Only]] sherpa25:
BTW, is enable_1200 (init.d) still significant or is this locked to 1GHz?
[Android Software/Hacking General [Developers Only]] fractaline:
If you are on the same kernel it is still significant. :)

Sent from hither to thither
[Android Software/Hacking General [Developers Only]] pikachu01:
I think I found a sweet spot. :P 2.0.2 will be uploaded soon ;)

It seems that your ROM is lacking the "find" binary. Are you on stock?

enable_1200 should be the one doing the overclocking. Leave it there unless you don't want to overclock to 1.2GHz. It should be from Semaphore app right?
[Android Software/Hacking General [Developers Only]] sherpa25:
Same kernel as what? :) Thanks.

Ok. Yeah, I believe from Semaphore, when I tried it several days ago. Not sure if it matters though over just 1.0GHz :D
[Android Software/Hacking General [Developers Only]] pikachu01:
Guys, it seems that I've found a sweet spot for CFS :P

Now experimenting if I can find a sweet spot for VM.
[Android Software/Hacking General [Developers Only]] pikachu01:
News

Update v2.1.0. Found a sweet spot for CFS and semi-sweet spot for VMs. Performance increased substantially from these two.

Changelog:

11/20/2011 (2.10)

- Found a sweet spot for CFS. Not too aggressive, not too passive and gaming seems to be as smooth as the last time around.

- Found a semi-sweet spot for VM. Tweaked VM to be less aggressive.

- Overall smoother experience!!! Try it!
[Android Software/Hacking General [Developers Only]] Fenvarien:
You are working fast! Thanks for this update :-) Can I update directly from 2.0.1 or need I to install the restore pack between?
[Android Software/Hacking General [Developers Only]] pikachu01:
AutoMemoryKiller also sets the minfree/OOM values right? The Supercharger component of ThunderBolt! also only tweaks the minfree/OMM values. You should use either of them only.

The important thing is the minfree/OOM values, not the way you set them :)
[Android Software/Hacking General [Developers Only]] RaymondPJR:
Got the latest version installed with no trouble, but I just deleted my init.d folder after making a copy. I used the Talon version and then the script runner app as I have the lagfix enabled. I had just applied neobuddys

tweaks yesterday. Not sure yet which is better for me.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yes technically that's true.

But I doubt that it's noticeable - especially when supercharged.

I just hate it when half my apps that are on my ext partition don't show up because there is no more room for dalvik in cache and data lol

Attached is the boot script I use.

I hacked the bottom of it so that it will self install to init.d and set permissions/ownership.

Just run it in terminal.

If it's in the root of your sd card and renamed at 07app2ext.sh, do:

su

sh /path/07app2ext.sh

If there is an error, do:

mount -o remount,rw /system

Then try again.

I do the remount rw in the script but it sometimes give me an error...

I'm such a n00b at some stuff lol
[Android Software/Hacking General [Developers Only]] pikachu01:
Just checking to be sure, you're on a TalonDev kernel right? If so, don't mind my question :P

Can you provide neobuddy's script here? I'll evaluate it :)

Hmm, SGS's /data has 1.6GB space. I'm not that worried of it filling up anytime soon :P
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hmmm... must be NICE! hehe
[Android Software/Hacking General [Developers Only]] tanjiajun_34:
Will this work with stock miui rom?
[Android Software/Hacking General [Developers Only]] pikachu01:
It should work without problems. A few reported that it works without problems. If you have problems, let me know :)
[Android Software/Hacking General [Developers Only]] jnr21:
I'm on CM7.1 stable with Neo 17 r18 Kernel. So i need to wipe my init.d folder before flash this tweak? Init.d contains these scripts atm:

01sysctl

03firstboot

05mountsd

06mountdl

20userinit

91logger

s98system_tweak

So everything should be deleted?

And i need to install script manager and launch /sdcard/bolt_scripts/remount as root after i flash this tweak?
[Android Software/Hacking General [Developers Only]] pikachu01:
Only the system tweak needs to be deleted. All others don't have to be deleted.

Back it up before deleting though :)

Yes, for the script manager question.
[Android Software/Hacking General [Developers Only]] jnr21:
Ok, thanks. I will try it now.

---------- Post added at 06:25 AM ---------- Previous post was at 05:52 AM ----------

I flashed this but data and system folders doesn't copied to my phone.
[Android Software/Hacking General [Developers Only]] s30ckf:
Pika Pika, I have flashed Aderaline Shot vXIX previously and inside init.d got some tweaks as:

00remount

01acid_sysctl

02kerneltweaks

03sdcardspeedfix

04syscltweaks

_99ramset

Do I need to remove all these tweaks before apply thunderbolt! v 1.4 ??
[Android Software/Hacking General [Developers Only]] tanjiajun_34:
Can this be used together with Simplicity Rom? Because this thunderbolt performs better in fps for me and Simplicity rom perform better on IO speed (In quadrant). I want both... haha
[Android Software/Hacking General [Developers Only]] chiefy009:
I have extracted a few of the scripts and used them on simplicity and my phone is flying
[Android Software/Hacking General [Developers Only]] tanjiajun_34:
How did you do that? Like how do I know which scripts on simplicity is better which from thunderbolt is better?
[Android Software/Hacking General [Developers Only]] chiefy009:
Look in inti.d folder in system/etc some scripts in the thunderbolt won't be in there extract them put them in there and test if they don't work delete them out of folder

I have thunderbolt script, screenstate and system scripts from thunderbolt in there on top of everything else 3500 in qaud
[Android Software/Hacking General [Developers Only]] sherpa25:
One more thing, I tried reading the update script and saw this:

Should I have these 4 scripts in init.d after flashing v1.4? I only have the 1st 3 (and _99ramset), and don't have 'S99SuperCharger'.

Well, it's been only 6 hours since I flashed v1.4 and it's been running well w/ no lags yet (but didn't run remount script yet though). I hope I don't speak too soon :D Will try running more apps now...

UPDATE (12 hours later): Still performs swift even after running some different apps I'd use mostly. Then a few minutes ago, I noticed some of the apps I usually prefer left running (i.e. WidgetLocker, Dock4Droid, Handcent, and Go Dialer) get closed despite them being selected in Go launcher as Locked. It seems it's gotten a bit too aggressive. Is there an app I can use to select which should stay Open in priority? Likewise, perhaps need to reduce the aggressiveness a notch lower...where?
[Android Software/Hacking General [Developers Only]] tanjiajun_34:
Wow 3500 without oc?
[Android Software/Hacking General [Developers Only]] pacc:
Yes I'll be grad to test your beta versions.

I'm actually still using v1.4 which is much more stable than v1.2, but had a few issues at the beginning (freezing when gaming), but now it has been ok for a while, let's wait a bit more, it could be just a bad start!
[Android Software/Hacking General [Developers Only]] chiefy009:
3500 with o/c these tweaks
[Android Software/Hacking General [Developers Only]] jnr21:
I get 5 and 90. Is there something wrong? CM7/Neo 17 r18

edit: Root explorer gets FC's after flashed these tweaks. Tried to clear data and reinstall root explorer but no luck.
[Android Software/Hacking General [Developers Only]] m7mkesys:
i am on ThunderBolt 1.9.3 when i go to ThunderBolt 2.1.0 must i flash the restore zip before flashing ThunderBolt 2.1.0?

thx man
[Android Software/Hacking General [Developers Only]] pikachu01:
You shouldn't need to, but doing it should be no problem if you're going to install the same addons again.
[Android Software/Hacking General [Developers Only]] Perka:
1.9.2 60, still best for me. Cf root jvt.
[Android Software/Hacking General [Developers Only]] pikachu01:
Best in terms of?