[HTC Droid DNA] t1gartist:
internet speed tweaks

Code:

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

Code:

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

misc kernel tweaks

Code:

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;

5. battery tweaks

Code:

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

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

6. EXT4 tweaks (greatly increase I/O)

(needs /system, /cache, /data partitions formatted to EXT4)

removes journalism

Code:

tune2fs -o journal_data_writeback /block/path/to/system

tune2fs -O ^has_journal /block/path/to/system

tune2fs -o journal_data_writeback /block/path/to/cache

tune2fs -O ^has_journal /block/path/to/cache

tune2fs -o journal_data_writeback /block/path/to/data

tune2fs -O ^has_journal /block/path/to/data

b) perfect mount options

Code:

busybox mount -o remount,noatime,noauto_da_alloc,nodiratime,barrier =0,nobh /system

busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /data

busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodir atime,barrier=0,nobh /cache

Flags blocks as non-rotational and increases cache size

Code:

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

RAM=`ls -d /sys/block/ram*`;

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

for j in $LOOP $RAM

do

echo "0" > $j/queue/rotational;

echo "2048" > $j/queue/read_ahead_kb;

done

microSD card speed tweak

Code:

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

Defrags database files

Code:

for i in \

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

do \

sqlite3 $i 'VACUUM;';

done

Auto change governor and I/O Scheduler

a) I/O Scheduler (Best: MTD devices - VR; EMMC devices - SIO) - needs kernel with these

Code:

echo "vr" > /sys/block/mmcblk0/queue/scheduler

or

echo "sio" > /sys/block/mmcblk0/queue/scheduler

b) Governor (Best: Minmax > SavagedZen > Smoothass > Smartass > Interactive) - needs kernel with these

Code:

echo "governor-name-here" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Move dalvik-cache to cache partition to free up data partition space <<< do this only if room is availble

Code:

CACHESIZE=$(df -k /cache | tail -n1 | tr -s ' ' | cut -d ' ' -f2)

if [ $CACHESIZE -gt 80000 ]

then

echo "Large cache detected, moving dalvik-cache to /cache"

if [ ! -d /cache/dalvik-cache ]

then

busybox rm -rf /cache/dalvik-cache /data/dalvik-cache

mkdir /cache/dalvik-cache /data/dalvik-cache

fi

busybox chown 1000:1000 /cache/dalvik-cache

busybox chmod 0771 /cache/dalvik-cache

# bind mount dalvik-cache so we can still boot without the sdcard

busybox mount -o bind /cache/dalvik-cache /data/dalvik-cache

busybox chown 1000:1000 /data/dalvik-cache

busybox chmod 0771 /data/dalvik-cache

else

echo "Small cache detected, dalvik-cache will remain on /data"

fi

Disable normalize sleeper

Code:

mount -t debugfs none /sys/kernel/debug

echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features

there does those 2 posts help you out orange

---------- Post added at 08:52 AM ---------- Previous post was at 08:51 AM ----------

also some of these are just examples so just modify for your needs cool?

---------- Post added at 08:54 AM ---------- Previous post was at 08:52 AM ----------

autobrightness you need to decompile framework-res.apk