[Samsung Epic 4G Touch] Goddly:
lmao..

youll love this, this is what i have working

#!/system/bin/sh

#

# Tweak by Kobridge

# Kobridge Tweak Pack v4.2A for JB

#

# Change Log:

# 12/21/12 v4.2 hotplug

# 6/6/12 v3.3, v3.4 CFS + Touch tweak + Log file

# 5/22/12 IO/SD read_ahead_kb changes for SF Tweak

# 5/15/12 Replaced lots of tweaks to use sysctl (from previous version)

LOG_FILE=/data/log/kobridge_tweak41.log;

if [ -e $LOG_FILE ]; then

rm $LOG_FILE;

fi;

echo "$( date +"%m-%d-%Y %H:%M:%S" ) 41tweaks_other started " | tee -a $LOG_FILE;

# File System Speed Tweak

echo "$( date +"%m-%d-%Y %H:%M:%S" ) ext4 File system speed tweaks " | tee -a $LOG_FILE;

for k in $(/system/xbin/busybox mount | /system/xbin/busybox grep ext4 | /system/xbin/busybox cut -d " " -f3); do

echo " Processing $k " | tee -a $LOG_FILE;

sync;

/system/xbin/busybox mount -o remount,noatime,noauto_da_alloc,nodev,nodiratime,barrier=0,nobh $k;

done;

# IO/Scheduler

#

# this portion is moved to dvfs.sh

#echo "$( date +"%m-%d-%Y %H:%M:%S" ) IO Scheduler tweaks.." | tee -a $LOG_FILE;

#if [ -f /sys/block/mmcblk0/queue/scheduler ]; then

#	echo "noop" > /sys/block/mmcblk0/queue/scheduler;

#fi;

#if [ -f /sys/block/mmcblk1/queue/scheduler ]; then

#	echo "noop" > /sys/block/mmcblk1/queue/scheduler;

#fi;

if [ -f /sys/block/mmcblk0/queue/read_ahead_kb ]; then

echo "4096" > /sys/block/mmcblk0/queue/read_ahead_kb;

fi;

if [ -f /sys/block/mmcblk1/queue/read_ahead_kb ]; then

echo "4096" > /sys/block/mmcblk1/queue/read_ahead_kb;

fi;

# sysctl Network Tweaks

echo "$( date +"%m-%d-%Y %H:%M:%S" ) Network tweaks.." | tee -a $LOG_FILE;

sysctl -w net.ipv4.tcp_timestamps=0

sysctl -w net.ipv4.tcp_tw_reuse=1

sysctl -w net.ipv4.tcp_sack=1

sysctl -w net.ipv4.tcp_dsack=1

sysctl -w net.ipv4.tcp_tw_recycle=1

sysctl -w net.ipv4.tcp_window_scaling=1

sysctl -w net.ipv4.tcp_keepalive_probes=5

sysctl -w net.ipv4.tcp_keepalive_intvl=30

sysctl -w net.ipv4.tcp_fin_timeout=30

sysctl -w net.ipv4.tcp_moderate_rcvbuf=1

sysctl -w net.ipv4.tcp_max_syn_backlog=4096

sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1

sysctl -w net.ipv4.icmp_echo_ignore_all=1

sysctl -w net.ipv4.icmp_ignore_bogus_error_responses=1

#sysctl -w net.ipv4.tcp_syncookies=0

sysctl -w net.ipv4.ip_dynaddr=0

# Other sysctl tweaks - Kernel, VM, file system

echo "$( date +"%m-%d-%Y %H:%M:%S" ) Other tweaks.." | tee -a $LOG_FILE;

sysctl -w fs.file-max=524288

sysctl -w fs.inotify.max_queued_events=32000

sysctl -w fs.inotify.max_user_instances=256

sysctl -w fs.inotify.max_user_watches=10240

sysctl -w fs.file-max=524288

sysctl -w fs.inotify.max_queued_events=32000

sysctl -w fs.inotify.max_user_instances=256

sysctl -w fs.inotify.max_user_watches=10240

sysctl -w fs.lease-break-time=10

sysctl -w fs.nr_open=1048576

sysctl -w kernel.sem="500 512000 64 2048";

sysctl -w kernel.shmmax=268435456

sysctl -w kernel.shmmni=4096sysctl -w kernel.hung_task_timeout_secs=30

sysctl -w kernel.panic=30

sysctl -w kernel.panic_on_oops=1

sysctl -w kernel.random.read_wakeup_threshold=256

sysctl -w kernel.random.write_wakeup_threshold=256

sysctl -w kernel.threads-max=524288

sysctl -w net.core.rmem_max=524288

sysctl -w net.core.wmem_max=524288

sysctl -w net.core.netdev_max_backlog=2500

sysctl -w net.ipv4.tcp_rmem="6144 87380 524288";

sysctl -w net.ipv4.tcp_wmem="6144 87380 524288";

sysctl -w vm.block_dump=0

sysctl -w vm.dirty_background_ratio=70

sysctl -w vm.dirty_expire_centisecs=500

sysctl -w vm.dirty_ratio=95

sysctl -w vm.dirty_writeback_centisecs=1000

sysctl -w vm.drop_caches=3

sysctl -w vm.laptop_mode=0

sysctl -w vm.min_free_kbytes=4096

sysctl -w vm.min_free_order_shift=4

sysctl -w vm.oom_kill_allocating_task=0

sysctl -w vm.overcommit_memory=1

sysctl -w vm.page-cluster=5

sysctl -w vm.panic_on_oom=0

sysctl -w vm.swappiness=30

sysctl -w vm.vfs_cache_pressure=50

echo "$( date +"%m-%d-%Y %H:%M:%S" ) 41tweaks_other ended " | tee -a $LOG_FILE;