yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] fragargon:
hi,

open adb shell command and type:

#su

#cat /proc/sys/vm/swappiness

you should se the value 50

as exemple
[Android Software/Hacking General [Developers Only]] -juanito-:
plz update this script..(I love updating xD )
[Android Software/Hacking General [Developers Only]] Mattix724:
Why do you think the script needs an update? Why can't you make your own adjustments to the script?

I personally think it doesn't need to be updated, I think it works just fine. Don't fix something if it isn't broken.
[Android Software/Hacking General [Developers Only]] AdamJuva:
Yes, you are right :)
[Android Software/Hacking General [Developers Only]] rkuijpers:
+ 1 :)
[Android Software/Hacking General [Developers Only]] UsManyDead:
Hello.

I've installed your RAM Script on my phone (HTC Desire) running LeeDrOiD HD V3.3.1-Port-R2 A2SD+ and observed some changes (like sometimes I have a little more memory ~ 145 MB instead of ~ 100 MB) but the ROM is still laggy.

My question is:

-does this ROM has some RAM script that can interfere with your script? (I saw it said it is zipaligned to improve RAM speed, but I don't thing this is a script?)

In the init.d folder there are some scripts for a2sd and some more but none has in their name something about RAM so I'm guessing there is no script at all for RAM.

Your was applied succesfully on my device, cause I could check the LMK.

Anyway the last option I have is to reformat the card (first time I've formated with CWM Recovery) and reinstall the ROM or change to another one.

TIA.
[Android Software/Hacking General [Developers Only]] jukyO:
Does this confirms that the scrip is really active? I see value "50".
[Android Software/Hacking General [Developers Only]] Jandyman:
I have trouble getting my phoone to transition into sleep, even when screen it off sometimes it doesn't want to sleep. Will this script help? Or make it worse due to higher multitasking allowances?
[Android Software/Hacking General [Developers Only]] -juanito-:
Is there anyway to make my phone more faster for launch game? ?
[Android Software/Hacking General [Developers Only]] fragargon:
yes it does, if any doubt look the value to the system/etc/sysctl.config file from your rom In my case the value written there for swappiness is 0
[Android Software/Hacking General [Developers Only]] jeffojeff:
the script is great, thanks...
[Android Software/Hacking General [Developers Only]] colinmc8:
Hi, I was just wondering about how to check whether the script works, I downloaded autokiller memory optimizer and I´m not sure where to look for the values stated on the 1st page?
[Android Software/Hacking General [Developers Only]] jukyO:
Check my post #706 above and #709, there is a way to check it via terminal.
[Android Software/Hacking General [Developers Only]] jukyO:
The file is there, but nothing inside. Guess that means zero.
[Android Software/Hacking General [Developers Only]] Mattix724:
Same thing here
[Android Software/Hacking General [Developers Only]] fragargon:
hi,

dunno if it means zero... should be written elsewhere.

nevermind type

#su

#cat /sys/module/lowmemorykiller/parameters/minfree

you should see the following value: 2560,4096,6144,12288,14336,18432
[Android Software/Hacking General [Developers Only]] Mattix724:
There we go.
[Android Software/Hacking General [Developers Only]] neotoky:
Does this work for Trigger Final 3.2 running Bali kernel on samsung vibrant?

http://xdaforums.com/show....php?t=1041447 Trigger Rom

http://xdaforums.com/show....php?t=1043947 Bali kernel

I flashed the script and see the s97ramscript. I had to set the 777 permissions manually and rebooted. I opened galaxy tuner and I didn't see any of the values changed.

I also have these with the S97ramscript included under the init.d folder:

S01edt_sysctl

S30edt_perms

S50edt_zipalign

S97ramscript

S98edt_tweaks

S99edt_complete
[Android Software/Hacking General [Developers Only]] Eatwah:
This script is incredible thanks
[Android Software/Hacking General [Developers Only]] colinmc8:
Sorry I have no idea how to do that. I just checked about adb and it seems like alot to learn just to check a few numbers. (I´m completely new to flashing etc.)

When I open autokiller the numbers displayed are:

Foreground app 14

Visible app 16

Secondary server 32

Hidden app 40

Content provider 44

Empty app 48

The first three are greyed out and cant be changed. Do these numbers tell you if the script is running, if its not should I try to flash it again?
[Android Software/Hacking General [Developers Only]] $omator:
i9000 jvq - used those values finaly for testing purp =)

applied with galaxy tunner

- absolutley no change at ui speed/total responsivness

- some apps loaded longer as they seemed to be cleared out of memory

- could not load dungeon defenders, at one point at loading it was killed

(after setting default values everything was back to normal)

- tryed also some another 'heavy mem' game with same-exit result

score 0/10 =)
[Android Software/Hacking General [Developers Only]] jukyO:
They are present. Great, the script is active. It is correct, my phone is flying in combination of the script and XJs MIUI X-PART..
[Android Software/Hacking General [Developers Only]] voncrane:
The script isn't working...i tried flashing but it didn't store the file and so i simply extracted the file from the zip and simply copied it over to /system/etc/init.d with Root Explorer and set perm to 777 (rwxrwxrwx)...Rebooted and Voila!!

Open Autokiller after this and the values should now be...

Foreground app 10

Visible app 16

Secondary server 24

Hidden app 48

Content provider 56

Empty app 72
[Android Software/Hacking General [Developers Only]] colinmc8:
Ok, I´ve copied the file S97ramscript to system/etc/init.d...Just one more question, how do you set perm to 777?
[Android Software/Hacking General [Developers Only]] abZorber:
Use Root Explorer, long click on S97ramscript file and choose" Set Permissions"
[Android Software/Hacking General [Developers Only]] colinmc8:
Then what? tick all the boxes? I ticked all except the bottom three and no change after reboot.
[Android Software/Hacking General [Developers Only]] colinmc8:
I´m trying everything to get this working. I would appreciate if someone could explain how to do this as if you were telling a five year old.

Also do you need to move the two folders in the zip file to init.d or just the script file?

Sorry for the silliness of the questions.
[Android Software/Hacking General [Developers Only]] AdamJuva:
Somator sorry but I am allergic to you. I can't stand your f*cking crap. You don't understand anything :)))

Don't write here if you don't know anything about it. Please, use google and find something about Android memory. :)

Thanks :)
[Android Software/Hacking General [Developers Only]] $omator:
clm down buddy & do not hate the player - hate the game

i am just teling my story, what happened when i aplied your settings

and started one of popular games =)
[Android Software/Hacking General [Developers Only]] AdamJuva:
So then your phone is big **** because you are only the one who have this problem :) and don't write to me, you are not on my level buddy :)
[Android Software/Hacking General [Developers Only]] $omator:
i did not write to you i wrote to all who reads this so they can test it by themselves

and well i was on your level when you needed my help with your rom feature =)
[Android Software/Hacking General [Developers Only]] AdamJuva:
Ok, now I stop write with you because you know that what you wrote is a big nonsense. You know you are nothing only hackler and you know you always write big f*cking nonsense :)

Btw. LOL, I never have needed help from you I only needed names of two PNGs that's all. And CG you made me laughing for having a nice night.
[Android Software/Hacking General [Developers Only]] jbutcher91:
is glitch kernel for cm7 compatiable?
[Android Software/Hacking General [Developers Only]] $omator:
=))

ok so maybe now someone with stock jvq + cfroot can test your script with this dungeon game and report success/fail
[Android Software/Hacking General [Developers Only]] AdamJuva:
I don't care. You always write only negative feedbacks. I know you, because I have seen a lot of your posts.
[Android Software/Hacking General [Developers Only]] AdamJuva:
It is not about compatiblity. It is about supporting init.d and I think that kernel supports it.
[Android Software/Hacking General [Developers Only]] $omator:
your research is wrong i think i write like 75 'not ok' on every 100 comments made

i just do not spam all this nonsense +1 / WORKING FOR ME for 1 minute no bugs / Thanks / and so on every time i open the thread as 95% users here do

sorry for not +11111 your script but it is just not working for me what ive reported to you in this thread
[Android Software/Hacking General [Developers Only]] neotoky:
Interesting that I have been posting the same issues and legitimate questions about 6 times with no reply by the op, but you bother to reply to somator who's apparently a troll. Very helpful.
[Android Software/Hacking General [Developers Only]] $omator:
im not a troll but a recognized betatester and copypaster!!!! =)

collini out...
[Android Software/Hacking General [Developers Only]] Mattix724:
Beta testing is easy. If you were a developer then you can say that you are recognized. Learn some Linux and write your own script, build your own rom from source, and quit bickering.

Don't like it, then stop posting here.
[Android Software/Hacking General [Developers Only]] $omator:
god damn i just shared my experience with settings presented in this thread

i do not need to 'learn linux' (lulz) or write script to change randomly few system settings

only cm7 builds out of sources around i will not compete with them alone

sorry for delivering feedback
[Android Software/Hacking General [Developers Only]] zeke1988:
i just tested on HTC incredible, the game running fine.
[Android Software/Hacking General [Developers Only]] colinmc8:
Can anyone help me?
[Android Software/Hacking General [Developers Only]] Mattix724:
What's the problem mayne?
[Android Software/Hacking General [Developers Only]] nrfitchett4:
decided to try this out of fun.

Running thunderbolt with Gingertheory ROM.

Don't notice any difference yet. Quadrant is similar. Will run for a couple of days to see if I notice any performance improvements.
[Android Software/Hacking General [Developers Only]] AdamJuva:
You will not see any improvements in Quadrant, read first post, there are written improvements which you can see.

Sorry, but I didn't notice your problems. Could you write me it again? Maybe I can help you.
[Android Software/Hacking General [Developers Only]] neocorteqz:
Remove the script from your init.d folder. Or manualy edit the script to adjust values.
[Android Software/Hacking General [Developers Only]] neocorteqz:
Scripts are ran in order iirc. So if you have values set in edt_tweaks it will overide the ramscript. I dont know if this is your issue, but worth comparing scripts to see if there are conflicting values.

Edit: to answer if it'll work. Op states any kernel that supports init.d

So ask dev of trigger if the rom/kernel supports it.
[Android Software/Hacking General [Developers Only]] Blackwolf14:
Does it works Galaxy Gio(S5660)?Sorry for my English.
[Android Software/Hacking General [Developers Only]] colinmc8:
See my post #725 - #726

Thanks
[Android Software/Hacking General [Developers Only]] Gustavo RD78:
You can change some values ​​so you can get better performance?

If so, what values ​​I change?

Thanks for the reply!
[Android Software/Hacking General [Developers Only]] Leeyron:
Thanks for this script, working fine with Gingervillain 2.7 on HTC Desire. :)
[Android Software/Hacking General [Developers Only]] Lucky_Charms:
Has anyone tried this on overcome Jupiter yet?

Latest Overcome on T-Mobile
[Android Software/Hacking General [Developers Only]] shankly1985:
Hello installed zip in recovery phone working fine, now am stuck on checking to see if it has worked am using autokiller memory optimizer, can you tell me where to fine theses numbers? I have looked all over the app cant find anything.

thanks
[Android Software/Hacking General [Developers Only]] vilx:
Works fine on my Incredible S running Virtuous Unity 1.29.0.
[Android Software/Hacking General [Developers Only]] neotoky:
This is my post Juwe. Thank you.
[Android Software/Hacking General [Developers Only]] Thermionics:
Thunderbolt with LTB AOSP ROM and Leankernel. Flashed through CM.

Slowed down boot, Launcher Pro loading and quadrant score.
[Android Software/Hacking General [Developers Only]] googlick:
There is another way to run the script, I use it on my Milestone with the stock ROM 2.1 (it has no init.d)

I'm not sure if the scripts has improved phone's performance (I installed it just before half an hour), but at least it makes no any problem.

I use application Autostart(root) (free on Market). You need root rights, Busybox and Superuser.apk installed (to grant su rights at the very first start). The script can be run as follows

- create directory /data/opt

- rename script as autostart.sh and put it there, set its rights (chmod 755)

- install Autostart(root) and reboot - that's all

I've also added the following string to the script

echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb

that increases SD performance (this change is a controversial one, but works fine for me)
[Android Software/Hacking General [Developers Only]] colinmc8:
It's not working for me, I tried flashing the zip, extracting the zip then copying to init.d then setting permissions, I tried a lot of different ways because no one will bother to explain to a noob exactly how to do it! I have a less than perfect phone and no one cares....boo hoo
[Android Software/Hacking General [Developers Only]] manny05:
going to try this on my captivate
[Android Software/Hacking General [Developers Only]] AdamJuva:
I can't open those threads (404 Not found). I thought Galaxy Tuner is only for Galaxy S. Can you go to the Memory management in Galaxy Tuner?
[Android Software/Hacking General [Developers Only]] AdamJuva:
What does mean "not working"? Did you check it?
[Android Software/Hacking General [Developers Only]] colinmc8:
Yep. I have no clue what I'm doing wrong
[Android Software/Hacking General [Developers Only]] colinmc8:
Well, any idea why it might not ne working for me?
[Android Software/Hacking General [Developers Only]] idle0095:
will this work on cm7 rc1.3 for thunderbolt?
[Android Software/Hacking General [Developers Only]] idle0095:
what starfield wallpaper are you useing?
[Android Software/Hacking General [Developers Only]] neotoky:
http://xdaforums.com/showthread.php?t=1043947 Bali Kernel

http://xdaforums.com/showthread.php?t=1041447 Trigger Rom

Yea, it works for the vibrant as well. I did go to the memory manager to check the values which didn't change. I also tried autokiller which also showed the values with no changes.
[Android Software/Hacking General [Developers Only]] Saxysaxplayer:
To start, try removing the edt_tweak file and it will fix the VM numbers. It's just that the LM are way lower.. I'll try to remove some more and see what will happen.

I am using Bali Kernel with the Bi-Winning V3 ROM, by the same dev team, so they have the same fixes.

EDIT: After playing around with the files in the init.d folder, it seems that you can't get the desired results using an EDT rom. You can remove every file but the S50edt_zipalign file and the VM values will stay true to the script. However, removing that file will reset the value to what you would have gotten in the beginning. The LM values haven't changed at all so I'm not sure whether it's a rom issue or whatever. Maybe try a non EDT rom and see what results you yield.
[Android Software/Hacking General [Developers Only]] acank46.mh:
Does it works on x10mini miniCM6 1.0.2??
[Android Software/Hacking General [Developers Only]] Eiskrem-Kaiser:
Will this

http://xdaforums.com/showthread.php?t=991276

interfere with this?

So how would one, if it does, deinstall this script here?
[Android Software/Hacking General [Developers Only]] Gustavo RD78:
Hello, I tested this script on my X10 Mini and using MiniCM6 MiniCM7!

In MiniCM6 I can say that I noticed a big improvement overall, but was totally unlike MiniCM7, the device was very slow and unloading huge battery!

Ps: I'm still using in MiniCM6! :)
[Android Software/Hacking General [Developers Only]] teorouge:
I'd like to know that myself, either! :)
[Android Software/Hacking General [Developers Only]] Highriser:
Which is better?

Which of these do any of you think is better. The script here, or the one here: http://xdaforums.com/showthread.php?t=991276&page=114 ?

I'm not sure because this one is a bit newer, but people act like its so much faster and better on the other one...
[Android Software/Hacking General [Developers Only]] hshah:
If the init.d folder is not there, can I just create it?
[Android Software/Hacking General [Developers Only]] f1ng3r:
I think you can uninstall the script that you DONT want simply deleting the script from the /system/etc/init.d and reboot your device.

Which script is better...is just a personal choice for everyone. Both scripts are very good, but different.

@hshah. If the init folder is not there, that means your ROM dont support the init.d.
[Android Software/Hacking General [Developers Only]] hshah:
I thought it was down to the Kernel and I am using:

http://xdaforums.com/showthread.php?t=1138167
[Android Software/Hacking General [Developers Only]] colinmc8:
How can I check if the script is conflicting with another script?
[Android Software/Hacking General [Developers Only]] DanteGR:
Hello all!

If I flash this through recovery and then I don't like it or something goes wrong or....

How can I remove this script?

Thank you :)
[Android Software/Hacking General [Developers Only]] googlick:
I tried the script and after reboot checked all the changed options. All of them was OK, except vfs_cache_pressure that was 100 instead 10

# cat /proc/sys/vm/vfs_cache_pressure

100

If I change it manually, it looks OK

# echo "10" > /proc/sys/vm/vfs_cache_pressure

# cat /proc/sys/vm/vfs_cache_pressure

10

What does it mean vfs_cache_pressure and why it gets 100 after the script executing? Can it affect Android functionality? Actually I see no any great improvement nor degradation.
[Android Software/Hacking General [Developers Only]] idle0095:
what starfield wallpaper is the OP useing??
[Android Software/Hacking General [Developers Only]] jvegastn:
tagging this so i can review it later
[Android Software/Hacking General [Developers Only]] Brotuck:
Now the intresting part is : are the optimizations you proposed on the FP better ? :D
[Android Software/Hacking General [Developers Only]] AdamJuva:
In my opiniom my values are for the best optimization, you have a lot of free memory, you have fast system and you can use multitask for a lot of apps at the same time :)
[Android Software/Hacking General [Developers Only]] Brotuck:
What VM size do you use in the build.prop ?

I know it was very small on froyo (32 or 48) but on Gingerbread it's 64mb.
[Android Software/Hacking General [Developers Only]] limnos21:
i guess that the script doesn't support the supercurio kernel because can't find the init.d folder :(
[Android Software/Hacking General [Developers Only]] AdamJuva:
I didn't change value in build.prop I use stock 64, I only edited values which you can see in script.

Supercurio's kernel supports init.d it doesn't matter if you see or don't see init.d folder, if you don't see it, so create it in /system/etc
[Android Software/Hacking General [Developers Only]] Rahulrulez:
Need to test this script with MIUI, confirm if it works well with MIUI :)
[Android Software/Hacking General [Developers Only]] simone201:
LOL

In my ROM i use with success 48mb, no lags at all and multitasking is ok...:)
[Android Software/Hacking General [Developers Only]] ocelofil:
I tested it a few minutes with MIUI v5!And looks very great :)
[Android Software/Hacking General [Developers Only]] deezid:
Great work!

My phone feels much faster opening apps and doesn't close opera mobile everytime (until now) :D
[Android Software/Hacking General [Developers Only]] simone201:
Hey Juwe, take a look at my tweaks (only a part):

echo "0" > /proc/sys/vm/swappiness
echo "90" > /proc/sys/vm/dirty_ratio
echo "4096" > /proc/sys/vm/min_free_kbytes

echo "2000" > /proc/sys/vm/dirty_writeback_centisecs
echo "1000" > /proc/sys/vm/dirty_expire_centisecs

sysctl -w vm.oom_kill_allocating_task=1
sysctl -w vm.vfs_cache_pressure=10

And it runs smooth as silk! ;)

Maybe u can mod your or include some of these into the script....

PS = swappiness disabled to help with ZRAM enabled kernels
[Android Software/Hacking General [Developers Only]] Brotuck:
In any ginger ROM it's 64mb by default.

I even use 92mb in my ROM's

48 is a froyo setting...........
[Android Software/Hacking General [Developers Only]] Brotuck:
Enabling OOM will give you a unstable ROM. Tried it and i do not like it.
[Android Software/Hacking General [Developers Only]] simone201:
Always found 48m the best setting....mah....

I use it successfully, and it works like a charm, max performaces and smoothness! And it is completely stable...

EDIT:

proc/sys/vm/oom_kill_allocating_task (since Linux 2.6.24)
This enables or disables killing the OOM-triggering task in out-of-
memory situations.

If this is set to zero, the OOM-killer will scan through the entire
tasklist and select a task based on heuristics to kill. This normally
selects a rogue memory-hogging task that frees up a large amount of
memory when killed.

If this is set to nonzero, the OOM-killer simply kills the task that
triggered the out-of-memory condition. This avoids a possibly
expensive tasklist scan.

If /proc/sys/vm/panic_on_oom is nonzero, it takes precedence over
whatever value is used in /proc/sys/vm/oom_kill_allocating_task.

The default value is 0.
[Android Software/Hacking General [Developers Only]] fifa_king:
can somebody help me apply this on fugu kernel which does not have init.d script support?
[Android Software/Hacking General [Developers Only]] drevo10:
E:Can't open /sdcard/Juwe_RAM_...

Hi,

there is something strange with script. I am trying to apply the patch on your 4.3.1 ROM and this is what I get:

-- Installing : /sdcard/Juwe_RAM_Script-CWM_Flashable.zip

Finding update package...

Opening update package...

E:Can't open /sdcard/Juwe_RAM_Script-CWM_Flashable.zip

(bad)

Installation aborted.

Any idea? Note, I am not using ext4... Is that an issue?

EDIT: I have uploaded your scrip over the Bluetooth (Bluetooth File Transfer apk). It seems the app sets restrictive permissions. When uploaded over USB Mass storage everything's fine...
[Android Software/Hacking General [Developers Only]] ooohhh2:
Download once more, reflash
[Android Software/Hacking General [Developers Only]] Brotuck:
Do you exactly know what OOM does ?

When enabled it is less carefull in killing processes. So you might end up with the wrong killed process.

For explanation:

http://www.linuxinsight.com/proc_sys_vm_oom_kill_allocating_task.html

On heavy usage i got reboots (after a hour or more)
[Android Software/Hacking General [Developers Only]] simone201:
Yes i know what it is.....i have also posted the complete explanation....

For our devices, that don't use much memory, it is better to enable it to kill the task that triggered the out-of-memory condition.

Only on big memory devices, with big multitasking, is good to disable it....to be sure that the wrong task won't be killed! ;)

This is my pic, just to know, nothing else....
[Android Software/Hacking General [Developers Only]] zacharias.maladroit:
typo:

/proc/sys/vm/dirty_backgroud_ratio

/proc/sys/vm/dirty_background_ratio

thanks for the scripts & confirming my (RAM) values !

I got nearly same values yesterday by doing some experimenting :)
[Android Software/Hacking General [Developers Only]] Brotuck:
Ok our opinion differs on this. :)

My motto is "better be safe then sorry" as i find a 0 setting more safe.

Not trying to start a yes or no fight here. ;)
[Android Software/Hacking General [Developers Only]] Mattix724:
Yes, as long as your kernel supports init.d