All credit goes to Juwell for the script.
after long time of testing I found the best balance for RAM, this script will make your RAM in the best optimization, the best optimization means the best balance between free memory, multitask, speed of launching apps and system speed. It means that you'll still have enough free memory (you'll have free memory as much as you need, because it is not good if you have really a lot of free memory, because Android's work with memory is different from other OS) and you can fully use your multitask, my script doesn't kill your app automatically when you minimize it. Your system and switching between apps or launching apps will be very fast.
Now you don't have to use Task Killer!
Requirements: Root, Kernel which supports init.d
-Values which mainly affect your multitask and free memory. Values of my script were made for combination of using multitask and still have enough free memory.
-Very important values which affect your battery consumption, system speed and speed of launching apps.
HOW TO CHECK IF SCRIPT WORKS
Download "AutoKiller Memory Optimizer" and check values:
10MB, 16MB, 24MB, 48MB, 56MB, 72MB
50, 10, 5, 10, 90, 5
ROM devs can use Juwell's script in their ROMs, but give the proper credit.
INSTALL IT ON YOUR OWN RISK.
I have been testing this script with Rewind 3D Sense 3.0 and switching between apps and navagating threw the homescreen is a lot smoother.
Downside, it kills my battery pretty fast, 3 hours and already down to 50% lite use.
I attached the flashable.zip and the script by itself.
1) Download attached file (RAM_Script-CWM.zip) and install it with CWM