What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Memory Performance Tweaks

Ok guys need help, im rooted, charged, and sd card speed up, love it, this thing moves . Question, im replacing the.sd card with a 16gk class 6 card for more room& speed how do I save my settings to keep me rooted & all or do I unroot & start all over
 
Ok guys need help, im rooted, charged, and sd card speed up, love it, this thing moves . Question, im replacing the.sd card with a 16gk class 6 card for more room& speed how do I save my settings to keep me rooted & all or do I unroot & start all over

Rooting won't be affected by your SDCard. The SuperCharger script might... but that depends on where you're storing it (obviously, if you're storing it on the old SDCard, you won't have access to it after you make the swap).

There's really no reason why you can't use a PC to move all the data from the old SDCard to the new SDCard... mount your phone to your PC, copy all the folders, swap the cards, mount the phone, copy it all back. As long as the directory structure remains intact, everything should just pick right back up.
 
Correct me if im wrong but it changes the running priority of your home screen I think. Btw I changed mine to 0 and got a lot more screen redraws. Im at 1 now

Sent from my DROID X2 using DroidForums
 
Yep.
But the supercharger script does it for you
If you have that entry in local.prop,then run v6 supercharger, the script will delete that line before adding the new one.

If it didn't, local.prop would gain an extra 20 lines each time the script runs.

Sent from my Milestone using Tapatalk
 
Last edited:
Hey so I did everything and overall my phone runs faster these quick easy mods. I still get redraws on my home screen.... I have mine set to 1. What else can I do to make this bad boy run faster?

Sent from my DROID X2 using DroidForums
 
I can't figure out how the heck you can get a redraw when its set to 0

A redraw is when the launcher gets killed... when it's 0, its unkillable

Sent from my Milestone using Tapatalk
 
Going to try this on my wife's phone - if there are problems or she wants to revert, the step is to run option 13 in the script, and what else?
 
So happy! Thank you!

My Droid X2 is my first smartphone - it is running SOOOOOOOOOOO much better after updating to a class 6 SD card, rooting and using V6_Supercharger and SD Speed Increase, and freezing apps I don't need with Titanium Backup Pro. I no longer feel like throwing it against a wall every time I try to use it now!! Hopefully fixed the stupid popping and clicks in the music player as well (so far, so good).

Thank you so much to zeppelinrox for supercharger, the devs for creating SD speed increase and Titanium, and for vvildcard for posting this "how to" for the DX2 which gave me the courage to try this! You guys rock.
 
You're welcome...

Bonus... http://www.droidforums.net/forum/motorola-droid-x2/154841-if-youre-considering-x2-must-read-3.html

Perhaps that discussion can further help with the audio popping...

Here is the script for easy reference (it will be included with V8 SuperCharger ;))
Code:
#!/system/bin/sh
sysctl -p
#
#Disable normalized sleeper
#
mount -t debugfs none /sys/kernel/debug;
echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features;
#
#  Memory management
# http://forum.xda-developers.com/showthread.php?t=813309
busybox sysctl -w vm.swappiness=0;
busybox sysctl -w vm.oom_kill_allocating_task=0;
busybox sysctl -w vm.panic_on_oom=0;
busybox sysctl -w vm.dirty_background_ratio=60;
busybox sysctl -w vm.dirty_ratio=95;
busybox sysctl -w vm.min_free_kbytes=4096;
busybox sysctl -w vm.vfs_cache_pressure=10;
busybox sysctl -w kernel.panic=0;
busybox sysctl -w kernel.panic_on_oops=1;
busybox sysctl -w kernel.msgmni=2048;
busybox sysctl -w kernel.msgmax=64000;
busybox sysctl -w kernel.shmmax=268435456;
busybox sysctl -w kernel.sem='500 512000 64 2048';
busybox sysctl -w kernel.sched_features=24189;
busybox sysctl -w kernel.hung_task_timeout_secs=0;
busybox sysctl -w kernel.sched_latency_ns=18000000;
busybox sysctl -w kernel.sched_min_granularity_ns=1500000;
busybox sysctl -w kernel.sched_wakeup_granularity_ns=3000000;
busybox sysctl -w kernel.sched_compat_yield=1;
busybox sysctl -w kernel.sched_shares_ratelimit=256000;
busybox sysctl -w kernel.sched_child_runs_first=0;
busybox sysctl -w kernel.threads-max=5000;
busybox sysctl -w net.core.wmem_max=524288;
busybox sysctl -w net.core.rmem_max=524288;
busybox sysctl -w net.ipv4.tcp_tw_recycle=1;
busybox sysctl -w net.ipv4.tcp_rmem='6144 87380 524288';
busybox sysctl -w net.ipv4.tcp_wmem='6144 87380 524288';

# Tweak cfq io scheduler
# http://forum.xda-developers.com/showthread.php?p=12445735
# http://intl.feedfury.com/content/47077504-tweak-skript-f-r-android-spica.html
# http://forum.xda-developers.com/showthread.php?p=4806456

for i in $(ls -d /sys/block/*);
do
echo "cfq" > $i/queue/scheduler;
done; 

for i in $(ls -d /sys/block/*);
do	
	echo "0" > $i/queue/rotational;
	echo "1" > $i/queue/iosched/low_latency;
	echo "1" > $i/queue/iosched/back_seek_penalty;
	echo "1000000000" > $i/queue/iosched/back_seek_max;
	echo "0" > $i/queue/iosched/slice_idle;
	echo "512" > $i/queue/nr_requests;
	echo "1" > $i/queue/iosched/fifo_batch;
	echo "16" > $i/queue/iosched/quantum;
done;

for i in $(ls -d /sys/block/*);
do
echo "noop" > $i/queue/scheduler;
done;

# Remount all partitions with noatime
for k in $(busybox mount | grep relatime | cut -d " " -f3);
do
sync;
busybox mount -o remount,noatime $k;
done;

# Misc tweaks for battery life
busybox sysctl -w vm.dirty_writeback_centisecs=2000;
busybox sysctl -w vm.dirty_expire_centisecs=1000;
 
Back
Top