[EVO 4G Android Development] Jason Black:
Do you want your phone running like new? Here is a couple of scripts i took from other threads and combined together to give you the edge you need. A super fast phone like mine :). I also added the new juwe script. Juwe made an update for the script Amikaam included into this beautiful rom. Well first, you need a file editor that can access root files (root explorer) specially the init.d folder. Which is located in system/etc/init.d. If you're rubbing this rom, then it should have already been created for you by amikaam. Here's the script. Pretty much, go to system/etc/init.d/tweaks06 or 06tweaks, something like that. Copy this script, delete the entire script you see in the tweaks file and paste this in there. Restart and you'll be a happy man.

#!/system/bin/sh

#

# Created by Calkulin

echo 100000 > /proc/sys/kernel/sched_rt_period_us

echo 95000 > /proc/sys/kernel/sched_rt_runtime_us

# Added By Mik (credits to Juwe11 for ram scripts)

#!/system/bin/sh

# Copyright� 2011 Juwe11

# 13.8.2011 Updated VM values - Thanks to [Kalis] for help

# 18.8.2011 Added oom_adj values

# 19.9.2011 Updated VM and LMK values

if [ -e /sys/module/lowmemorykiller/parameters/adj ]; then

echo "0,1,2,4,6,15" > /sys/module/lowmemorykiller/parameters/adj

fi

if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then

echo "2560,4096,5632,10240,11776,14848" > /sys/module/lowmemorykiller/parameters/minfree

fi

if [ -e /proc/sys/vm/swappiness ]; then

echo "20" > /proc/sys/vm/swappiness

fi

if [ -e /proc/sys/vm/vfs_cache_pressure ]; then

echo "70" > /proc/sys/vm/vfs_cache_pressure

fi

if [ -e /proc/sys/vm/dirty_expire_centisecs ]; then

echo "3000" > /proc/sys/vm/dirty_expire_centisecs

fi

if [ -e /proc/sys/vm/dirty_writeback_centisecs ]; then

echo "500" > /proc/sys/vm/dirty_writeback_centisecs

fi

if [ -e /proc/sys/vm/dirty_ratio ]; then

echo "15" > /proc/sys/vm/dirty_ratio

fi

if [ -e /proc/sys/vm/dirty_background_ratio ]; then

echo "3" > /proc/sys/vm/dirty_background_ratio

fi

#SDCARD partition Tweaks

echo 512 > /sys/block/mmcblk0/queue/max_sectors_kb;

echo 512 > /sys/block/mmcblk0/queue/read_ahead_kb;

echo 1 > /sys/block/mmcblk0/queue/iosched/low_latency

echo 1 > /sys/block/mmcblk0/queue/iosched/back_seek_penalty

echo 32768 > /sys/block/mmcblk0/queue/iosched/back_seek_max

echo 0 > /sys/block/mmcblk0/queue/iosched/slice_idle

echo 32 > /sys/block/mmcblk0/queue/iosched/quantum

echo 4 > /sys/block/mmcblk0/queue/iosched/slice_async_rq

echo 1024 > /sys/block/mmcblk0/queue/iosched/fifo_expire_sync;

echo 1024 > /sys/block/mmcblk0/queue/iosched/fifo_expire_async;

echo 40 > /sys/block/mmcblk0/queue/iosched/slice_async

echo 40 > /sys/block/mmcblk0/queue/iosched/slice_sync

echo "0" > /proc/sys/net/ipv4/tcp_timestamps;

echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse;

echo "1" > /proc/sys/net/ipv4/tcp_sack;

echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle;

echo "1" > /proc/sys/net/ipv4/tcp_window_scaling;

echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes;

echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl;

echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout;

echo "404480" > /proc/sys/net/core/wmem_max;

echo "404480" > /proc/sys/net/core/rmem_max;

echo "256960" > /proc/sys/net/core/rmem_default;

echo "256960" > /proc/sys/net/core/wmem_default;

echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem;

echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem;

#DATA partition Tweaks

echo 1 > /sys/block/mtdblock5/queue/iosched/low_latency

echo 1 > /sys/block/mtdblock5/queue/iosched/back_seek_penalty

echo 32768 > /sys/block/mtdblock5/queue/iosched/back_seek_max

echo 0 > /sys/block/mtdblock5/queue/iosched/slice_idle

echo 32 > /sys/block/mtdblock5/queue/iosched/quantum

echo 4 > /sys/block/mtdblock5/queue/iosched/slice_async_rq

echo 1024 > /sys/block/mtdblock5/queue/iosched/fifo_expire_sync;

echo 1024 > /sys/block/mtdblock5/queue/iosched/fifo_expire_async;

echo 40 > /sys/block/mtdblock5/queue/iosched/slice_async

echo 40 > /sys/block/mtdblock5/queue/iosched/slice_sync

done

ROTATIONAL=`ls -d /sys/block/*`;

for g in $ROTATIONAL

do

echo 0 > $g/queue/rotational;

done;

echo "DONE"

echo "DATABASE Cleaning and tunning!"

for i in \

`find /data -iname "*.db"`

do \

sqlite3 $i 'VACUUM;';

done

echo "DONE VACUUM DATABASE!"

echo 0 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 1 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 0 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 1 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 0 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 1 > /sys/devices/platform/leds-microp/leds/green/brightness

sleep 1

echo 0 > /sys/devices/platform/leds-microp/leds/green/brightness

exit 1

#PAY ATTENTION! DO NOT COPY THE DROPBOX LINKS TOO! I LEFT THE ORIGINAL HASH TAGS IN THERE.. YOU CAN CHANGE IT IF YOU WANT. I ALSO PUT A TAG ON THIS POST, JUST INCASE SOMEONE DOES COPY IT LOL. This isn't my work. I didn't write any of them.

Sign up for dropbox http://db.tt/52Opvvv or minus http://min.us/rinWeay