Академический Документы
Профессиональный Документы
Культура Документы
Password
Log in
Help
Register
Remember Me?
Forum
What's New?
Today's
Posts FAQTwitter
Calendar
Facebook
Wiki
Community
Kitchen
Forum Actions
Issues
News
Map
Quick Links
Advanced Search
ooView Augmented Reality AR Solutions for Retail & Online Retail, Real Estate & Property www.etrifecta.co
QSFP cables from Finisar High-speed active optical cables From the trusted leader in optics www.finisar.co
FULLY Managed VPS Hosting Unlimited Traffic, Full Root Access Pre-Installed Sctipts, JUST - $6.95
Forum
Development/Releases
2.2 (Froyo)
+ Reply to Thread
Results 1 to 10 of 61
Page 1 of 7 1 2 3 ...
Last
Thread Tools
[translate]
10-25-2010 02:33 AM
ch33kybutt
Senior Member
Join Date:
Feb 2010
Location:
Singapore
Posts:
890
14 Time(s)
Thanked:
390 Time(s)
Display
#1
~~~
#!/xbin/sh
#
# tweaks_xda_ext_v2.1
PART=`mount | cut -d " " -f3`;
STL=`ls -d /sys/block/stl*`;
BML=`ls -d /sys/block/bml*`;
MMC=`ls -d /sys/block/mmc*`;
echo "TWEAKS: remount all partitions with
noatime,nodiratime";
for k in $PART;
do
sync;
mount -o remount,noatime,nodiratime $k;
done;
echo "TWEAKS: use cfq as i/o scheduler";
for i in $STL $BML $MMC;
do
echo 0 > $i/queue/rotational;
echo 256 > $i/queue/read_ahead_kb;
echo cfq > $i/queue/scheduler;
done;
echo "TWEAKS: for kernel scheduler";
echo 4000000 > /proc/sys/kernel
/sched_latency_ns;
echo 1000000 > /proc/sys/kernel
/sched_wakeup_granularity_ns;
echo 800000 > /proc/sys/kernel
/sched_min_granularity_ns;
echo "TWEAKS: for kernel VM management";
echo 0 > /proc/sys/vm/swappiness;
echo 10 > /proc/sys/vm/dirty_ratio;
echo 100 > /proc/sys/vm/vfs_cache_pressure;
echo 4096 > /proc/sys/vm/min_free_kbytes;
echo "TWEAKS: miscellaneous ...";
setprop dalvik.vm.startheapsize 8m;
setprop wifi.supplicant_scan_interval 90;
setprop windowsmgr.max_events_per_sec 60;
#!/xbin/sh
#
# tweaks_fe_ext_v2.1
PART=`mount | cut -d " " -f3`;
STL=`ls -d /sys/block/stl*`;
BML=`ls -d /sys/block/bml*`;
MMC=`ls -d /sys/block/mmc*`;
echo "TWEAKS: remount all partitions with
noatime,nodiratime";
for k in $PART;
do
sync;
mount -o remount,noatime,nodiratime $k;
done;
echo "TWEAKS: use cfq as i/o scheduler";
for i in $STL $BML $MMC;
do
echo 0 > $i/queue/rotational;
echo 256 > $i/queue/read_ahead_kb;
echo cfq > $i/queue/scheduler;
done;
echo "TWEAKS: for kernel scheduler";
echo 4000000 > /proc/sys/kernel
/sched_min_granularity_ns;
echo 8000000 > /proc/sys/kernel
/sched_latency_ns;
echo 1600000 > /proc/sys/kernel
/sched_wakeup_granularity_ns;
echo 24319 > /proc/sys/kernel/sched_features;
echo "TWEAKS: for kernel VM management";
echo 20 > /proc/sys
/vm/dirty_background_ratio;
echo 30 > /proc/sys/vm/dirty_ratio;
echo 300 > /proc/sys
/vm/dirty_writeback_centisecs;
echo 300 > /proc/sys
/vm/dirty_expire_centisecs;
#echo 1 > /proc/sys
/vm/oom_kill_allocating_task;
echo 60 > /proc/sys/vm/swappiness;
echo 2048 > /proc/sys/vm/min_free_kbytes;
echo 100 > /proc/sys/vm/vfs_cache_pressure;
echo "TWEAKS: for TCP read/write buffers";
echo 404480 > proc/sys/net/core/wmem_max;
echo 404480 > proc/sys/net/core/rmem_max;
echo 4096 16384 404480 > /proc/sys/net/ipv4
/tcp_wmem;
echo 4096 87380 404480 > /proc/sys/net/ipv4
/tcp_rmem;
echo "TWEAKS: miscellaneous ...";
setprop dalvik.vm.startheapsize 8m;
setprop wifi.supplicant_scan_interval 90;
setprop windowsmgr.max_events_per_sec 60;
changelog:
- Reduced read_ahead_kb to 256K (1M too large as buffer)
- Removed tweaks for back_seek and slice_idle (little or no
effect)
~~~
#!/xbin/sh
#
PART=`mount | cut -d " " -f3`;
STL=`ls -d /sys/block/stl*`;
BML=`ls -d /sys/block/bml*`;
MMC=`ls -d /sys/block/mmc*`;
echo "TWEAKS: remount all partitions with
noatime,nodiratime";
for k in $PART;
do
sync;
mount -o remount,noatime,nodiratime $k;
done;
echo "TWEAKS: use cfq as i/o scheduler";
for i in $STL $BML $MMC;
do
echo 0 > $i/queue/rotational;
echo 1024 > $i/queue/read_ahead_kb;
echo cfq > $i/queue/scheduler;
echo 1 > $i/queue/iosched/back_seek_penalty;
echo 1000000000 > $i/queue/iosched
/back_seek_max;
echo 0 > $i/queue/iosched/slice_idle;
done;
echo "TWEAKS: for kernel scheduler";
echo 4000000 > /proc/sys/kernel
/sched_latency_ns;
echo 1000000 > /proc/sys/kernel
/sched_wakeup_granularity_ns;
echo 800000 > /proc/sys/kernel
/sched_min_granularity_ns;
echo "TWEAKS: for kernel VM management";
echo 0 > /proc/sys/vm/swappiness;
echo 10 > /proc/sys/vm/dirty_ratio;
echo 100 > /proc/sys/vm/vfs_cache_pressure;
echo 4096 > /proc/sys/vm/min_free_kbytes;
echo "TWEAKS: miscellaneous ...";
setprop dalvik.vm.startheapsize 8m;
setprop wifi.supplicant_scan_interval 90;
setprop windowsmgr.max_events_per_sec 60;
changelog:
+ Included the noatime,nodiratime remount commands for all
partitions.
+ I/O scheduler changed to CFQ
+ Increase read_ahead_kb from 128KB to 1MB
+ Reduced back_seek_penalty and slice_idle
+ LauncherPro recommended setprop for smoother UI"
#!/xbin/sh
#
echo "TWEAKS: tell kernel the storage is not a
spinning disk";
STL=`ls -d /sys/block/stl*`;
BML=`ls -d /sys/block/bml*`;
MMC=`ls -d /sys/block/mmc*`;
for i in $STL $BML $MMC;
do
echo 0 > $i/queue/rotational;
done
echo "TWEAKS: for kernel scheduler";
echo 4000000 > /proc/sys/kernel
/sched_latency_ns;
echo 1000000 > /proc/sys/kernel
/sched_wakeup_granularity_ns;
echo 800000 > /proc/sys/kernel
/sched_min_granularity_ns;
echo "TWEAKS: for kernel VM management";
echo 0 > /proc/sys/vm/swappiness;
echo 10 > /proc/sys/vm/dirty_ratio;
echo 100 > /proc/sys/vm/vfs_cache_pressure;
echo 4096 > /proc/sys/vm/min_free_kbytes;
echo "TWEAKS: miscellaneous ...";
setprop dalvik.vm.startheapsize 8m;
setprop wifi.supplicant_scan_interval 90;
comments:
+ Configure i/o scheduler for flash memory instead of default
Linux setting for spinning disk
+ Tweaks for kernel scheduler and VM management
+ Misc tweaks for dalvik-vm and wifi scanning
FE speed tweaks v2
#!/xbin/sh
#
PART=`mount | cut -d " " -f3`;
STL=`ls -d /sys/block/stl*`;
BML=`ls -d /sys/block/bml*`;
MMC=`ls -d /sys/block/mmc*`;
echo "TWEAKS: remount all partitions with
noatime,nodiratime";
for k in $PART;
do
sync;
mount -o remount,noatime,nodiratime $k;
done;
echo "TWEAKS: use cfq as i/o scheduler";
for i in $STL $BML $MMC;
do
echo 0 > $i/queue/rotational;
echo 1024 > $i/queue/read_ahead_kb;
echo cfq > $i/queue/scheduler;
echo 1 > $i/queue/iosched/back_seek_penalty;
echo 1000000000 > $i/queue/iosched
/back_seek_max;
echo 0 > $i/queue/iosched/slice_idle;
done;
echo "TWEAKS: for kernel scheduler";
echo 4000000 > /proc/sys/kernel
/sched_min_granularity_ns;
echo 8000000 > /proc/sys/kernel
/sched_latency_ns;
echo 1600000 > /proc/sys/kernel
/sched_wakeup_granularity_ns;
echo 24319 > /proc/sys/kernel/sched_features;
echo "TWEAKS: for kernel VM management";
echo 20 > /proc/sys
/vm/dirty_background_ratio;
echo 30 > /proc/sys/vm/dirty_ratio;
echo 300 > /proc/sys
/vm/dirty_writeback_centisecs;
echo 300 > /proc/sys
/vm/dirty_expire_centisecs;
#echo 1 > /proc/sys
/vm/oom_kill_allocating_task;
echo 60 > /proc/sys/vm/swappiness;
changelog:
+ Included the noatime,nodiratime remount commands for all
partitions.
+ Increase read_ahead_kb from 128KB to 1MB
+ Reduced back_seek_penalty and slice_idle
+ Higher values for net.core.wmem_max and rmem_max
- Disabled vm.oom_kill_allocating_task which was causing
phone-freeze and wake-lag
FE speed tweaks v1
#!/xbin/sh
#
echo "TWEAKS: for storage and cfq i/o
scheduler";
STL=`ls -d /sys/block/stl*`;
BML=`ls -d /sys/block/bml*`;
MMC=`ls -d /sys/block/mmc*`;
for i in $STL $BML $MMC;
do
echo 0 > $i/queue/rotational;
echo cfq > $i/queue/scheduler;
done
echo "TWEAKS: for kernel scheduler";
echo 4000000 > /proc/sys/kernel
/sched_min_granularity_ns;
echo 8000000 > /proc/sys/kernel
/sched_latency_ns;
echo 1600000 > /proc/sys/kernel
/sched_wakeup_granularity_ns;
echo 24319 > /proc/sys/kernel/sched_features;
echo "TWEAKS: for kernel VM management";
echo 20 > /proc/sys
/vm/dirty_background_ratio;
echo 30 > /proc/sys/vm/dirty_ratio;
echo 300 > /proc/sys
/vm/dirty_writeback_centisecs;
echo 300 > /proc/sys
/vm/dirty_expire_centisecs;
echo 1 > /proc/sys
/vm/oom_kill_allocating_task;
echo 60 > /proc/sys/vm/swappiness;
echo 2048 > /proc/sys/vm/min_free_kbytes;
echo 100 > /proc/sys/vm/vfs_cache_pressure;
echo "TWEAKS: for TCP read/write buffers";
echo 4096 16384 404480 > /proc/sys/net/ipv4
/tcp_wmem;
comments:
+ Leverages on the extensive speed vs stability testing done by
antibyte for his FE mod,
+ Recommended LauncherPro setprop for smoother UI.
Browsing
+ Changes to TCP buffers.
+ I/O scheduler changed to CFQ
2011 Stock Forecast Our Experts' Top 5 Investment Picks For This Year!
[translate]
10-25-2010 02:47 AM
#2
benjy
Senior Member
Join Date:
Mar 2010
Posts:
352
[translate]
10-25-2010 02:49 AM
ch33kybutt
Senior Member
Join Date:
Feb 2010
Location:
Singapore
Posts:
890
#3
ooView Augmented Reality AR Solutions for Retail & Online Retail, Real Es
QSFP cables from Finisar High-speed active optical cables From the truste
FULLY Managed VPS Hosting Unlimited Traffic, Full Root Access Pre-Instal
[translate]
10-25-2010 02:49 AM
#4
benjy
Senior Member
Join Date:
Mar 2010
Posts:
352
[translate]
10-25-2010 02:53 AM
#5
ch33kybutt
Senior Member
Join Date:
Feb 2010
Location:
Singapore
Posts:
890
[translate]
10-25-2010 02:54 AM
benjy
Senior Member
Join Date:
Mar 2010
Posts:
352
ok will do!
so i will test both and then write back tomorrow!
#6
[translate]
10-25-2010 03:18 AM
#7
ch33kybutt
Senior Member
Join Date:
Feb 2010
Location:
Singapore
Posts:
890
ok will do!
so i will test both and then write back tomorrow!
[translate]
10-25-2010 04:52 AM
#8
rrrulo
Senior Member
Join Date:
Sep 2010
Location:
cordoba
Posts:
1,209
[translate]
10-25-2010 05:16 AM
#9
ch33kybutt
Senior Member
Join Date:
Feb 2010
Location:
Singapore
Posts:
890
Flattering
---------- Post added at 10:16 AM ---------- Previous post was at 10:09 AM ----------
@anurag, thanks for editing 1st post to let others know it's
meant mostly for CM. Was gonna do it, then saw it's done.
ch33rs!
10-25-2010 06:01 AM
ribbon
Senior Member
[translate]
#10
Join Date:
Apr 2010
Location:
Viet Nam
Posts:
321
@ch33kybutt:
I think you put wrong place of FE tweak script:
Code:
--> FE tweaks for EXT --> tweaks_fe_rfs.zip
--> FE tweaks for RFS --> tweaks_fe_ext.zip
+ Reply to Thread
Page 1 of 7 1 2 3 ...
Last
Posting Permissions
You may not post new BB code is On
threads
Smilies are On
You may not post replies [IMG] code is On
You may not post
HTML code is Off
attachments
Trackbacks are Off
You may not edit your Pingbacks are Off
posts
Refbacks are On
Forum Rules
-- English (US)
All times are GMT +3. The time now is 06:33 AM.
Powered by vBulletin Version 4.0.6
Copyright 2011 vBulletin Solutions, Inc. All rights reserved.
Search Engine Optimization by vBSEO 3.5.1 PL1
powered by