yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] pikachu01:
Remember that I mentioned that minfree adj values are checkpoints? They do match up, but the 2nd minfree value of Supercharger is really a false flag as:

* For example, write "0,8" to /sys/module/lowmemorykiller/parameters/adj and
* "1024,4096" to /sys/module/lowmemorykiller/parameters/minfree to kill processes
* with a oom_adj value of 8 or higher when the free memory drops below 4096 pages
* and kill processes with a oom_adj value of 0 or higher when the free memory
* drops below 1024 pages.

LMK_ADJ="0,4,6,8,14,15"
LMK_MINFREE="1536,3072,10240,15360,20480,25600"
FOREGROUND_APP_ADJ=0
VISIBLE_APP_ADJ=4
PERCEPTIBLE_APP_ADJ=2
HEAVY_WEIGHT_APP_ADJ=5
SECONDARY_SERVER_ADJ=6
BACKUP_APP_ADJ=7
HOME_APP_ADJ=1
HIDDEN_APP_MIN_ADJ=8
EMPTY_APP_ADJ=15

At 20480 free pages, it looks at the OOM and see that only EMPTY_APP is available to kill, but 25600 already kills it, hence false flag.

My quote here:

Basically means that you have to lead the checkpoints of each adj minfree to the which apps that you are going to kill i.e. if you want to kill HIDDEN_APP, your adj needs to be set to HIDDEN_APP's adj, you can set it lower than HIDDEN_APP, but you cannot set it higher than HIDDEN_APP. Hence the "exact" meaning. The theory of "waiting for HIDDEN_APP to go 'bad'" is not exactly precise. Yes, OOM of each app changes, but the categories themselves doesn't. a HIDDEN_APP that has a OOM value of 6 will still get killed when HIDDEN_APPs must be killed.

And a HIDDEN_APP CAN change to be an EMPTY_APP. What makes you say it won't?

And HOME_APP efficiently gets killed in stock configuration because the check point "4" which includes anything equal or higher than 4 include the HOME_APP too. Remember, LMK will look at the OOM_ADJ of the current checkpoint and higher. To requote:

This reiterates that having a checkpoint of "14" with 14 being nothing, and 15 being the only one higher is not useful.
[Android Software/Hacking General [Developers Only]] mab71:
Ok bro i understand better now...it was just a placebo.

An off topic q here...what modem are you using now bro?
[Android Software/Hacking General [Developers Only]] pikachu01:
And one more thing, the OOM values of AMM is highly suspect. I can see HIDDEN_APP having an OOM of 6 when I set it at 8.

And I'm using XXJVT modem :)
[Android Software/Hacking General [Developers Only]] bundi22:
im on cm7 now, i copied all the files except for app_process/system_server files, and it is taking ages to boot i think because its zipaligning. should i wait or reboot and delete zipalign script? thanks

edit: rebooted and loaded fine now.
[Android Software/Hacking General [Developers Only]] Rebel2k:
Hope it will be released quickly! Can't wait because my phone app is closing very often... ;)
[Android Software/Hacking General [Developers Only]] XblackdemonX:
When can we expect a "safe" version for MIUI/CM7? (especially Fascinate)

Thanks
[Android Software/Hacking General [Developers Only]] rico13:
all good

i just did a full wipe and flashed a fresh miui

dirty_background_ratio is now 55

thanks for your assistance mate
[Android Software/Hacking General [Developers Only]] pikachu01:
Hey guys, I'm looking for beta testers for:

- People that have dialer/contacts closing on them WHILE searching for contacts or dialing a number. Just having them closing for them is normal behaviour. That shows that LMK is doing its work in preventing lags. :)

- MIUI users especially Fascinate

- People who lost their Wifi after flashing (let me know what device you have)

All of the people I'm looking above must be adventurous people who are ready to flash and not worried about losing data/bootlooping etc

PM me about your issues and I'll send you a beta copy of the next version.

Thanks!
[Android Software/Hacking General [Developers Only]] Rebel2k:
Hi Pikachu01!

I'm in for testing. Hope there is not so much risk of bootlooping but I'll do a nandroid backup before. My dialer is closing by itself and GoSMS too (sometimes the Google Search Widget too). I'm waiting for the test files!

Sorry I can't send you any PM as I receive a message saying you can receive PM from.only a bunch of allowed people...
[Android Software/Hacking General [Developers Only]] pikachu01:
Oh right. I forgot about that LOL. I'll add you then :)
[Android Software/Hacking General [Developers Only]] pikachu01:
If you want to beta test, post here with your device configuration and the issues you're having. Be aware of the risks, and I'll PM you :)
[Android Software/Hacking General [Developers Only]] matsuru:
Pikachhu01,

Wanna report:

1. Experience multiple FC on mostly Gapps, titanium backup...etc... They just keep on appearing non-stop.

2. This happened 2 times liao. 1st time I somehow manage to CWM wipe partition, Wipe dalwick, Fix permission, Re-flashed CM7 + Gapps...etc etc and get back Stable Phone again. that was 1 to 2 days ago.

3. Then, just now it happen again. I suspect maybe something corrupted somehow...

4. When thru the process stated no.2 above again. reboot still no go. CWM again, reflashed and got a few FC.

5. I got what it appears to be "Browser lack of space" kind of message on the notification & it says click to clear some space.. i cant remember the exact words.

I think i am gonna reformat and re-flashed CM7 again and avoid your script for now.

My specs:

CM7 #153

gapps 20110828 + newtalk.

i pushed your script manually using root explorer.

Hope you can find out what happen and solved it.

Thank you for your hardwork Pikachu01~!;)
[Android Software/Hacking General [Developers Only]] pikachu01:
I might go into kernel devving when I get the chance to :)

Stock ROM is always the best for me, so no plans for custom ROMs yet :)

I'm currently using the same LMK values for EMPTY_APP but I reduced everything to 40MB on HIDDEN_APP onwards. If you would like the beta, let me know your device/kernel, I'll PM you the link :)
[Android Software/Hacking General [Developers Only]] pikachu01:
Would you like to try a new beta for CM7MIUI?
[Android Software/Hacking General [Developers Only]] pikachu01:
Added CWM based restore packs for easier restore. Also forgot to add a changelog for sqlite3 binary. Doesn't affect anything. I just felt that it was better to have something built for the i9000 and not rely on a binary from nook.

Changelog:

10/21/2011 - Added restore packs for i9000 and CM7/MIUI. Let me know if you would like to have a restore pack for your device. I'll make one.

10/19/2011

- Also replaced the nook sqlite3 binary with i9000 CM7 sqlite3 binary that I compiled together with the libsqlite.so/libsqlite_jni.so. It works well together :)
[Android Software/Hacking General [Developers Only]] baghera1979:
I can use that restore for i9000 instead of wiping my phone right? That would be awesome. Just making sure before i go ahead with it. Its cwm flashable. Do I need to un mount data and system before i flash? Or is it good to go without having to do that?

sent from your inner ear. ..that's right. ..look behind you
[Android Software/Hacking General [Developers Only]] pikachu01:
In both cases, you'll have to mount /system and /data. It's stated in the OP.
[Android Software/Hacking General [Developers Only]] alexrod73:
With version 1.6.1 no force close at all

anything seems work fine so far so good :)
[Android Software/Hacking General [Developers Only]] baghera1979:
Thanks pikachu.

sent from your inner ear. ..that's right. ..look behind you
[Android Software/Hacking General [Developers Only]] .:Crack:.:
I would do some beta testing if you still need guys.
[Android Software/Hacking General [Developers Only]] pikachu01:
PM sent :)

Remember to stress the LMK by opening/closing lotsa apps that you usually use. Report issues through PM.

Thanks!
[Android Software/Hacking General [Developers Only]] alexrod73:
Everything good for me Pika :)
[Android Software/Hacking General [Developers Only]] XblackdemonX:
Version 1.6.1 beta works great on MIUI 1.10.14 with my Fascinate

No Bootloops:D

No Force Close:D

Root Explorer and Script manager are working fine!:D
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Believe it or not, I actually read ALOT of articles on the subject... and the following screenshot is no mystery to me...

I don't have anything set to be 9 or 10... and yet...

You let "labels" get in the way... after all, why do secondary server apps fall into the hidden application grouping/slot 4 when thunderbolted?

So why do I have apps with priority 9 and 10?

Because of the badness score... see Taming the OOM Killer

An app's badness increases, priority adj goes up, it falls into the appropriate slot based on new adj value, gets killed based on new adj value.

This is also why when you "bulletproof" and app with adj of -17, it does not stick indefinitely.

It could revert back to it's regular adj in 30 seconds or 20 minutes... because android is always evaluating an app's "badness".

Also, if you give an app a priority of 4 or 5, or course it's not permanent - or else it would never be a foreground app with priority 0 when you're using it.

There is nothing suspect about AMM's reporting - it reads system information.

If minfrees are loaded at bootup via init.d folder and you run AMM right away, AMM will show stock groupings and if you're refreshing, the new goupings get reflected once the boot script launches.

This is probably why you saw hidden apps with a 6 - the boot script probably hadn't launched yet.
[Android Software/Hacking General [Developers Only]] pikachu01:
Actually, my phone has long booted and it stays at 6 :/

I also see that AMM is still using the Froyo categories of not including PERCEPTIBLE, HEAVYWEIGHT, BACKUP and HOME.

Edit: Nice link there. Good read so far :)
[Android Software/Hacking General [Developers Only]] matsuru:
Pikachu01,

Can i use your new CWM to revert to original setting without reflashing CM7?

If can, that will be easy enuff to restore if there is anything wrong.

Send the beta over :D
[Android Software/Hacking General [Developers Only]] pikachu01:
Yes restore will restore it perfectly (but, if data is already corrupted, you need to go to Apps > Settings > Clear Data to make it not FC). However, I'm banking on it not corrupting in this beta.

Will do that through PM :)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Still at 6?

Ah yep.. those aren't hidden apps... those are secondary servers with the 6...

You have...

ro.SECONDARY_SERVER_ADJ=6

and...

your adjs are 0,1,4,6,8,15

slot 4 has the "hidden app" label but you have secondary servers in that slot ;)

another reason why I ignore the lables and go with "slots" heh...
[Android Software/Hacking General [Developers Only]] sherpa25:
Since I don't encounter any of those problems indicated, I should just wait for the next version's release? Had a reboot though earlier today, but not sure why. Other than that, all seems well.
[Android Software/Hacking General [Developers Only]] pikachu01:
Ahh .. checking the oom_score shows me that it is a large number. I'm hedging towards that, that the oom_adj is looked at first (when LMK kicks in), then anything higher than that oom_adj depending on the badness score will be killed first. It's kind of in line with my thought of which apps get killed first.

But the badness score != oom_adj. You can confirm that through Root Explorer/File Expert actually.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Right... android will change oom_adj

based on

badness...

And when you "renice" and app, I'm pretty sure that it's the badness score that gets reset to 0

Here is a snippet of my bulletproof app code...

echo " Found $bpappname..."
echo ""
$sleep
echo "-17" > /proc/`pgrep $bpps`/oom_adj
renice -20 `pgrep $bpps`
echo " $bpappname has been BulletProofed!"
echo ""
$sleep
echo -n " $bpappname's oom score is "
cat /proc/`pgrep $bpps`/oom_score
echo ""
$sleep
echo -n " $bpappname's oom priority is "
cat /proc/`pgrep $bpps`/oom_adj

btw, bulletproofing the dialer works renice :D
[Android Software/Hacking General [Developers Only]] pikachu01:
Ahh, ok. Cool. :)
[Android Software/Hacking General [Developers Only]] flolep:
Ok. An up on this one as it is really annoying for me... Any solution in the future? Thanks man :p

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] pikachu01:
There's a fix for this in the beta. Not on my laptop currently. Will pm you the link when I have my laptop :)
[Android Software/Hacking General [Developers Only]] eliteforce:
Pikachu i didn't understand your dialogue with zeppelinrox!

does this script working now for i9000? i need to deny phone automatically unload Phone.apk

and also what about bulletproofing? Does it work? i want to bulletproof Go Contacts :D
[Android Software/Hacking General [Developers Only]] flolep:
Ok. Thank you very much. Will wait impatiently :p (take your time)

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] yvrRome:
My new email notification appears then disappears so unless I get my email while I'm looking at my screen, I miss new emails. This is with the email app (SGS2) with exchange.

Stock JVT ROM with Semaphore 1.8 with only OC enabled. All scripts deleted in init.d prior to installing Thunderbolt.
[Android Software/Hacking General [Developers Only]] goodolsen:
I'm having an issue with any app that is supposed to check for updates (Words with Friends, ScoreMobile, XDA, etc) that I never get any updates. If I load the app I see updates, but they never check.

Could they be getting killed in the background?

I'm going to revert and see if that resolves the issue.
[Android Software/Hacking General [Developers Only]] Guto ViP:
I'm waiting for a medium value for LMK, to solve this problems with system applications and some updates in market too. Needs only this to be the best. :)
[Android Software/Hacking General [Developers Only]] Rebel2k:
1.6.1 beta version was behaving nicely for a few hours and now dialer is autoclosing again while in use but I also have the launcher which is redrawing very often (which was never happening with the 1.6.0 version). It's really not easy to find what are the best value to keep a non-laggy phone without killing foreground apps in-use...

Hope you'll break this enigma Pika! At the moment, for me, 1.6.0 is working better than 1.6.1 beta.
[Android Software/Hacking General [Developers Only]] yvrRome:
I experience the same for new email updates. If another app is open, that's when I see this. If I close all running apps, then it's fine.
[Android Software/Hacking General [Developers Only]] yvrRome:
I restored to stock and my notifications are back to normal.
[Android Software/Hacking General [Developers Only]] sherpa25:
@pika, had to ask this again as I couldn't find your previous post. You mentioned that local.prop and supercharger files should not exist since I'm in Talon. I remember removing them from /data a few days ago (actually, backed them up into another folder). However, I checked this morning and found local.prop existing again in /data, perhaps after the reboot (I didn't flash anything new yet). I then also checked your Thunderbolt! releases and saw local.prop in them too, w/c I understood was part of supercharger, and hence I should omit. Shouldn't this be excluded? Just want to clarify, as I got confused when I saw the file again :D
[Android Software/Hacking General [Developers Only]] RaymondPJR:
Tweaks/Thundrbolt

Finally back on my feet. Just confirmed that there is a ram.conf file in the etc folder. I am going to attach a zip that contains the Simply Honey init.d that has the acid tweaks flashed over it. That is what I was using with great success. If any of these can co-exist with your tweaks, let me know. I'll also post a link to Simone's tweaked Talon kernel for the Vibrants running his and EB's i9000 port of SH.:)

http://xdaforums.com/showthread.php?t=1271308
[Android Software/Hacking General [Developers Only]] pikachu01:
ThunderBolt! doesn't bulletproof apps. You'll need Supercharger for that. If you use Supercharger, you'll have to forgo the LMK/OOM setting that ThunderBolt! has.

Must be an overly aggressive LMK. Researching this at the moment with a team of beta testers. Hang tight :)

Yeah, are you willing to beta test? :)

Yeah, will be spending some time researching on this. Will PM you links after I package them :)

Are you willing to beta test the new not overly-aggressive LMK?

Talon will create the local.prop itself. Every reboot will regenerate it, so don't worry :)

With that fact, I included the local.prop as well as there's a bug in Talon that CONTENT_PROVIDER_MEM is not set in ram.conf. Only way to set it is to edit the local.prop directly, hence why ThunderBolt! included it.

Ahh, saw those init.d scripts. I reviewed them quite some time ago actually here:

http://xdaforums.com/showpost.php?p=18021594&postcount=184

They actually don't do much. The real source of performance is the TalonSH kernel (from Talon :)) I am tweaking it a bit more with ThunderBolt! tweaks :)
[Android Software/Hacking General [Developers Only]] RashaMatt:
I assume that's not going to address the issue with db-heavy apps like Memento taking forever (possible fsync issue)?

____________________________________________________________

AT&T Captivate SGH-I897 build 1010, Apex 10, Talon Dev 0.5.1 RC1 1200 BIGMEM kernel, KC1 modem
[Android Software/Hacking General [Developers Only]] eliteforce:
Pica I willing to betatest the new not overly-aggressive LMK!

want to deny phone automatically unload phone process
[Android Software/Hacking General [Developers Only]] pikachu01:
The patched libsqlite are supposed to help in db heavy apps by disabling the need to fsync before committing data. Memento must be doing something unique to hasten its database writes that it did something that it broke the fsync-disable support in sqlite.

Fsync-disabling is a supported method by sqlite:

http://www.sqlite.org/pragma.html#pragma_synchronous

To disable this system wide though, one needs to recompile the libsqlite.so to reduce the safety_level to 1 to make it true for every transaction.

You need to bring it up to the developer to solve this.

sqlite3 binary is only used by the VACUUM statement from the system_tweak. Not sure if CM7/MIUI has other uses for it though.
[Android Software/Hacking General [Developers Only]] pikachu01:
To those who applied to be beta testers, 1.6.2 beta will be released soon :)

Give me 30mins to repack, upload and PM :)
[Android Software/Hacking General [Developers Only]] flolep:
Don't forget me ;p

Sent from my GT-I9000
[Android Software/Hacking General [Developers Only]] mdv53:
i can't wait on the new release
[Android Software/Hacking General [Developers Only]] Rebel2k:
Yeahhhh ready to test!
[Android Software/Hacking General [Developers Only]] Sqb:
Hey Pikachu. Thanks for all your hard work. I am having problems with my phone apk closing on me only after over 24 hours uptime. If its ok with you could I try the beta. Thanks

Sent from a rock on fire in the middle of the sea
[Android Software/Hacking General [Developers Only]] pikachu01:
Sent PM to everyone who requested for the beta. Thank you for enrolling :)

Also tested MIUI music. No problems for me here. Works fine.
[Android Software/Hacking General [Developers Only]] eliteforce:
installed beta2

playing golf2 from gameloft and receiving incoming call after that phone unloaded game, and redrawing go launcher:confused:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
BulletProofing an app is separate actually.

If you use the feature, it creates a different script independant of any supercharger boot script.

Also, gingerbread and higher don't have CONTENT_PROVIDER* settings.

Froyo and below have it but lack the PERCEPTIBLE_APP* and HEAVY_WEIGHT_APP* settings.
[Android Software/Hacking General [Developers Only]] pikachu01:
Hmm, it seems that I still need to tune down Hidden App. I'll release another Beta with a less aggressive Hidden App :)

Yes, it's a separate feature that I don't wish to create as I would inappropriately be duplicating what Supercharger is doing.

And yes, you've explained Bulletproofing in the last few posts, I understood that it does not interfere with Supercharger's script, but it's not a perfect solution as with time it wears off? Agh, can't find the post LOL.

And the CONTENT_PROVIDER_MEM prop setting is still available in my phone, not sure why though. My theory is that Dalvik's and Linux's LMK are separate and they (Android devs) might have not done a good job in syncing both up. If CONTENT_PROVIDER_MEM is still there, I might as well write a prop setting for it - was my thought.
[Android Software/Hacking General [Developers Only]] minlee85:
I am suffering severe memory leaks..looks like this could be exactly what I need!!! or am I dreaming???:eek::eek::eek:
[Android Software/Hacking General [Developers Only]] sherpa25:
Hi Perka, where can I find the features this has vs stock JVT or other ROMs, as I've checked your site and searched XDA but couldn't find any. Thanks.
[Android Software/Hacking General [Developers Only]] b-eock:
Could this work on the Captivate!
[Android Software/Hacking General [Developers Only]] Gromlakh:
It works for me...
[Android Software/Hacking General [Developers Only]] pikachu01:
Thanks Perka :)

I'm not getting this. Weird. Might be a busybox issue or your "free" command is linked to tune2fs? Not sure.

And the MemoryFreak changes was done because I added the tweak to turn off overcommit_memory and so far no memory leaks for me (memory leaks as in lagginess experienced after certain uptime, not the unrecoverable memory even after killing tasks -> That's normal as Android will fill it up just as fast after you kill tasks).

I made my MemoryFreak more aggressive for multitasking purposes. So far no lags :P

Don't delete /xbin files :S You'll make your phone unbootable at worse. Some files like busybox, when deleted will make you lose root at best.

Only if you load the zram/compache module. I faintly remember that this was supported at one time. Not sure if its been removed because of lack of interest.

I'm going to include an update that removes Acid Tweaks but leave Supercharger intact (as it only tweaks the minfree/OOM settings).

Do a

free

See if there's a Swap memory in your VM. If there is, it's supported.

No, you don't have to. You can just flash it like that.

Yes you can, but leave the S_volt_scheduler and the _99ramset files (as well as Supercharger etc) but all the other files can be deleted (and should be, as it will conflict with the tweaks that are included in ThunderBolt!)

Cool! It made my phone super smooth like no other.

Yes, I've included this in the Known issues section :) sqlite3 and zipalign apparently takes quite a while even after the boot screen.

Yes, it might be unecessary if the user are well aware of all the updates done to the APKs. However, the zipalign script is intelligent enough to determine if an APK is already zipaligned (and it stores a db file to make sure that zipaligned files are not rechecked, making it faster in subsequent runs)

Might be related to ZRAM/Swappiness setting in MemoryFreak. You can tweak the MemoryFreak settings like mine (in my sig) and you will get an even greater boost :)

Yeah. Try it and let me know how it goes. :)

Is your captivate's /system partition in stl9?
[Android Software/Hacking General [Developers Only]] pikachu01:
Updated to ThunderBolt! v1.1 :)

Changelog:

10/11/2011

* Updated system_tweak to tweak Deadline scheduler. Recommend scheduler is still SIO.

* Update updater_script to wipe known tweaks that conflicts with ThunderBolt! and to wipe older ThunderBolt! scripts (to replace with a new one)
[Android Software/Hacking General [Developers Only]] geokilla:
So.... which is the best to use with my configuration in sig pika pika? I don't get understand the first 2 posts lol. Maybe it'll make more sense when I go over it again in the morning.