[Android Software/Hacking General [Developers Only]] sid9922:
tr3ramscript

#!/system/bin/sh

# Copyright� 2011 Juwe11

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

# 18.8.2011 Added values for oom_adj

#Modded for SGA by GadgetCheck

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,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree

fi

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

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

fi

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

echo "50" > /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 "22" > /proc/sys/vm/dirty_ratio

fi

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

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

fi

tr10ramscript

#!/system/bin/sh

# Created by 89luca89 and optimize SnakeS and PFittech

#CPU TWEAKS

echo "60000" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate

echo "60000" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/sampling_rate

echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold

echo "95" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold

echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy

chown system /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate

chown system /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_rate

chown system /sys/devices/system/cpu/cpu0/online

chown system /sys/devices/system/cpu/cpu1/online

# Turn ON dual-core CPU tweaks for Galaxy s2 by mike1986 adapted by 89luca89

chmod 777 /system/etc/dual_core/main_script

chmod 777 /system/etc/dual_core/awake_script

/system/xbin/busybox nohup /system/etc/dual_core/main_script >/dev/null &

;;

esac

#RAM Tweaks

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

echo "2560,4096,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree

fi

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

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

fi

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

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

fi

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

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

fi

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

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

fi

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

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

fi

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

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

fi

echo "Unlimiting processes and open files for system"

ulimit -n 100000

ulimit -s unlimited

echo "DONE"

#Internet Tweaks

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;

#vm management tweaks

echo "4096" > /proc/sys/vm/min_free_kbytes

echo "0" > /proc/sys/vm/oom_kill_allocating_task;

echo "0" > /proc/sys/vm/panic_on_oom;

echo "0" > /proc/sys/vm/laptop_mode;

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

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

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

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

#kernel tweaks

echo "8" > /proc/sys/vm/page-cluster;

echo "64000" > /proc/sys/kernel/msgmni;

echo "64000" > /proc/sys/kernel/msgmax;

echo "10" > /proc/sys/fs/lease-break-time;

echo "500,512000,64,2048" > /proc/sys/kernel/sem;

#battery tweaks

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

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

#SDkart speed tweaks

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

echo "TWEAKS:Telling system that disk is FLUSH!";

echo "Speeding the READ/WRITE speeds! And adds more controled write speed burst!"

MTD=`ls -d /sys/block/mtd*`;

LOOP=`ls -d /sys/block/loop*`;

MMC=`ls -d /sys/block/mmc*`;

DM=`ls -d /sys/block/dm*`;

for i in $MTD $LOOP $MMC $DM;

do

echo 0 > $i/queue/rotational;

echo 32 > $i/queue/nr_requests;

done;

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

echo "DONE"

pm setInstallLocation 1

mount -o remount,rw /dev/block/mmcblk0p10 /data

rm /data/data/nl.rogro.GScript/databases/gscript.sqlite

Thats all the script mate,..

Happy new year!!