RAM Optimization Script Makes Android Fast, Smooth And Stable


The Best RAM Optimization Script comes from XDA member Juwe11 and claims, like it’s name, to be the best to opt for at the moment. RAM hacking scripts are largely deployed in Android devices in order to achieve a smooth system sailing where every aspect of memory management is optimized for enhanced user experience.

This RAM tweaking script for any Android device basically allows you to balance free memory with multitasking, velocity of launching apps and overall system speed. This virtually implies that you will have a lot of free memory to your self if other scripts like Apps2SD etc. do not work effectively. One may argue that same features also come in Android task handlers, managers and killers but most of these apps actually create more mess then reducing clutter down to minimum. And yes, the best part, you won’t have to use task killers ever again after flasing

The best RAM optimization script doesn’t automatically kill every app when minimized and that results in a faster speed while you switch between system and installed apps on your device. The newest version of this script comes with LowMemoryKiller Values which mainly affect multitasking and free memory. In this script, values are fine tuned with a valid combination of multitasking, resulting in greater free onboard system memory. The VM values, related to battery consumption, are also tweaked thoroughly and they effect system speed and speed of launching apps.

Here is the script in raw coded form for your reference:

# Copyright© 2011 Juwe11

if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
echo "2560,4096,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree

if [ -e /proc/sys/vm/swappiness ]; then
echo "50" > /proc/sys/vm/swappiness

if [ -e /proc/sys/vm/vfs_cache_pressure ]; then
echo "10" > /proc/sys/vm/vfs_cache_pressure

if [ -e /proc/sys/vm/dirty_expire_centisecs ]; then
echo "500" > /proc/sys/vm/dirty_expire_centisecs

if [ -e /proc/sys/vm/dirty_writeback_centisecs ]; then
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs

if [ -e /proc/sys/vm/dirty_ratio ]; then
echo "90" > /proc/sys/vm/dirty_ratio

if [ -e /proc/sys/vm/dirty_background_ratio ]; then
echo "5" > /proc/sys/vm/dirty_background_ratio

Please head to the official XDA thread posted here to learn how to create the script to make it Android flashable. It is important to note that you will need root on your device along with a custom kernel that supports init.d.

You can see the effects of this script in the video below: