Você está na página 1de 10

User Name

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

Samsung Spica i5700 - Android Phone

Development/Releases

2.2 (Froyo)

CM speed tweaks (XDA and FE versions)

+ Reply to Thread

Results 1 to 10 of 61

Page 1 of 7 1 2 3 ...

Last

Thread: CM speed tweaks (XDA and FE versions)


LinkBack

Thread Tools

[translate]

10-25-2010 02:33 AM

ch33kybutt
Senior Member
Join Date:

Feb 2010

Location:

Singapore

Posts:

890

Post Thanks / Like


Thanks:

14 Time(s)

Thanked:

390 Time(s)

Display

#1

CM speed tweaks (XDA and FE versions)


XDA version = originated from script by hardcore@XDA (now
with some of my own tweaks)
FE version = came up with it after inspection of tunable
parameters in antibyte's Frozen Eclair kernels
For background info on these tweaks, read this thread -->
startup script speed tweak.
Discussion/Feedback thread here --> CM speed tweaks (XDA
and FE versions) - Discussion/Feedback

Downloads (apply ONLY ONE at a time)


*** ALTHOUGH THESE MODS ARE SAFE, DO NOTE THAT YOU
APPLY THEM AT YOUR OWN RISK. NOT RESPONSIBLE IF YOU
TURN YOUR SPICA INTO A BRICK ***
XDA speed tweaks v2.1 for EXT -->
tweaks_xda_ext_v2.1.zip
XDA speed tweaks v2.1 for RFS -->
tweaks_xda_rfs_v2.1.zip
FE speed tweaks v2.1 for EXT --> tweaks_fe_ext_v2.1.zip
FE speed tweaks v2.1 for RFS --> tweaks_fe_rfs_v2.1.zip
UNDO zip --> tweaks_UNDO.zip
Previous versions ...

Difference between EXT and RFS versions is value of


vfs_cache_pressure, 100 for EXT and 1000 for RFS.
NOTE
Whether or not the tweaks work depend more on individual
usage patterns. Those who open up lots of different apps
which take up lots of memory will have different results from
those who like to keep a few standard apps open and switch
between them often. There are no universal tweaks for lag
issues (except hardware solution), as each user has different
usage patterns.
So try the mods out for awhile and provide feedback. There's
always the UNDO if you feel your system is becoming
unstable.

~~~

Here are the latest scripts ...


XDA speed tweaks v2.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;

FE speed tweaks v2.1

#!/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)

~~~

Previous versions ...


XDA 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_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"

XDA speed tweaks v1

#!/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;

echo 2048 > /proc/sys/vm/min_free_kbytes;


echo 1000 > /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:
+ 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;

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;

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

Last edited by ch33kybutt; 11-16-2010 at 05:03 AM. Reason: added FE speed


tweaks v2

Reply With Quote

Post Thanks / Like


brebis875, fehrudi, serhad83, a92, orionomni, dknight12114, -west-, petikeke, rrrulo, Robbert, DrBeat,
AnMOS, JimJam707, Alks, Krendelrus, dOnEr, Ruff.005, jipo, Pjodor, Pizzmaker, ruzhovt, wmanu, sendvic,
markus75, anuragthehellboy thanked for this post.

2011 Stock Forecast Our Experts' Top 5 Investment Picks For This Year!

Chinese Medicine Software TCM Herbalist - Chinese Medicine SW Student

LinuxLIVE for Linux PCs Suspend-Resume, Sharing, Mobility and Re-Conne

[translate]

10-25-2010 02:47 AM

#2

benjy
Senior Member
Join Date:

Mar 2010

Posts:

352

so if i want to use it i have to install the XDA one and if i want


to revert back to standard i use the FE tweaks??
btw im on FE9B1

SGM Beta 2.1


Horse_POWER_3.0 - 2.6.32.9
system->ext2, data->ext2, cache->ext2
ADWLauncherEX
Quadrant -> 770
CPU: 1547 | Mem: 334 | I/O: 1693 | 2D: 152 | 3D: 122
Linpack -> 9.376MFLOPS
Reply With Quote

[translate]

10-25-2010 02:49 AM

ch33kybutt
Senior Member
Join Date:

Feb 2010

Location:

Singapore

Posts:

890

Originally Posted by benjy

so if i want to use it i have to install the XDA one


and if i want to revert back to standard i use the
FE tweaks??
btw im on FE9B1

#3

Just added UNDO zip.


But since you're already on FE, the tweaks will not have much
of an effect. This is for CM users, hence the thread location ...

Reply With Quote

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

so this wont show ANY difference?

SGM Beta 2.1


Horse_POWER_3.0 - 2.6.32.9
system->ext2, data->ext2, cache->ext2
ADWLauncherEX
Quadrant -> 770
CPU: 1547 | Mem: 334 | I/O: 1693 | 2D: 152 | 3D: 122
Linpack -> 9.376MFLOPS
Reply With Quote

[translate]

10-25-2010 02:53 AM

#5

ch33kybutt
Senior Member
Join Date:

Feb 2010

Location:

Singapore

Posts:

890

Originally Posted by benjy

so this wont show ANY difference?

Why don't you try and let us know?

Reply With Quote

[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!

SGM Beta 2.1


Horse_POWER_3.0 - 2.6.32.9
system->ext2, data->ext2, cache->ext2
ADWLauncherEX

#6

Quadrant -> 770


CPU: 1547 | Mem: 334 | I/O: 1693 | 2D: 152 | 3D: 122
Linpack -> 9.376MFLOPS
Reply With Quote

[translate]

10-25-2010 03:18 AM

#7

ch33kybutt
Senior Member
Join Date:

Feb 2010

Location:

Singapore

Posts:

890

Originally Posted by benjy

ok will do!
so i will test both and then write back tomorrow!

Eclair only has anticipatory i/o scheduler, so the cfq scheduler


tweak will not work for you.

Reply With Quote

[translate]

10-25-2010 04:52 AM

#8

rrrulo
Senior Member
Join Date:

Sep 2010

Location:

cordoba

Posts:

1,209

So this would be like FE for CyanogenMod? Im about to apply


CM in the next days, that's why i ask this hehe
thanks
Reply With Quote

[translate]

10-25-2010 05:16 AM

#9

ch33kybutt
Senior Member
Join Date:

Feb 2010

Location:

Singapore

Posts:

890

Originally Posted by rrrulo

So this would be like FE for CyanogenMod? Im


about to apply CM in the next days, that's why i
ask this hehe
thanks

Flattering

but no, just FE's kernel tweaks.

---------- 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!

Reply With Quote

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 With Quote

+ Reply to Thread

Page 1 of 7 1 2 3 ...

Last

Previous Thread | Next Thread


Thread Information
There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Contact Us Archive Top

-- 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

Você também pode gostar