CM Speed Tweaks (XDA and FE Versions)

download CM Speed Tweaks (XDA and FE Versions)

of 10

Transcript of CM Speed Tweaks (XDA and FE Versions)

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    1/10

    Forum SamsungSpicai5700-AndroidPhone Development/Releases 2.2(Froyo)

    CMspeedtweaks(XDAandFEversions)

    Thread: CM speed tweaks (XDA and FE versions)

    UserName Password Login

    RememberMe?

    RegisterHelp

    What's New? Wiki Kitchen News

    Map

    Facebook TwitterToday'sPosts FAQ Calendar Community ForumActions QuickLinks

    AdvancedSearch

    ooView Augmented Reality

    AR

    Solutions

    for

    Retail

    &

    Online

    Retail,

    Real

    Estate

    &

    Propertyww

    QSFP cables from FinisarHigh-speedactiveopticalcablesFromthetrustedleaderinopticsw

    FULLY Managed VPS HostingUnlimitedTraffic,FullRootAccessPre-InstalledSctipts,JUST-$

    +ReplytoThread Results1to10of61 Page1of7 1 2 3 ... Last

    LinkBack ThreadTools Display

    10-25-201002:33AM

    CM speed tweaks (XDA and FE versions)

    XDA version=originatedfromscriptbyhardcore@XDA(now

    withsomeofmyowntweaks)

    FE version=cameupwithitafterinspectionoftunable

    parametersinantibyte'sFrozenEclairkernels

    For

    background

    info

    on

    these

    tweaks,

    read

    this

    thread

    -->startupscriptspeedtweak.

    Discussion/Feedbackthreadhere-->CMspeedtweaks(XDA

    andFEversions)-Discussion/Feedback

    Downloads (apply ONLY ONE at a time)

    ***ALTHOUGHTHESEMODSARESAFE,DONOTETHATYOU

    APPLYTHEMATYOUROWNRISK.NOTRESPONSIBLEIFYOU

    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

    Difference

    between

    EXT

    and

    RFS

    versions

    is

    value

    of

    vfs_cache_pressure,100forEXTand1000forRFS.

    NOTE

    Whetherornotthetweaksworkdependmoreonindividual

    usagepatterns.Thosewhoopenuplotsofdifferentapps

    whichtakeuplotsofmemorywillhavedifferentresultsfrom

    thosewholiketokeepafewstandardappsopenandswitch

    betweenthemoften.Therearenouniversaltweaksforlag

    issues(excepthardwaresolution),aseachuserhasdifferent

    usagepatterns.

    Sotrythemodsoutforawhileandprovidefeedback.There's

    alwaystheUNDOifyoufeelyoursystemisbecoming

    unstable.

    [translate] #1

    JoinDate:

    Location:

    Posts:

    Thanks:Thanked:

    Feb2010

    Singapore

    890

    Post Thanks / Like

    14Time(s)390Time(s)

    ch33kybutt

    SeniorMember

    Previous versions ...

    Forum Issues

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    2/10

    ~~~

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

    noatime,nodiratime";

    for

    k

    in

    $PART;

    do

    sync;

    mount-oremount,noatime,nodiratime$k;

    done;

    echo"TWEAKS:usecfqasi/oscheduler";

    foriin$STL$BML$MMC;

    do

    echo0>$i/queue/rotational;

    echo

    256

    >

    $i/queue/read_ahead_kb;

    echocfq>$i/queue/scheduler;

    done;

    echo"TWEAKS:forkernelscheduler";

    echo4000000>/proc/sys/kernel

    /sched_latency_ns;

    echo1000000>/proc/sys/kernel

    /sched_wakeup_granularity_ns;

    echo800000>/proc/sys/kernel

    /sched_min_granularity_ns;

    echo"TWEAKS:forkernelVMmanagement";

    echo

    0

    >

    /proc/sys/vm/swappiness;

    echo10>/proc/sys/vm/dirty_ratio;

    echo

    100

    >

    /proc/sys/vm/vfs_cache_pressure;echo4096>/proc/sys/vm/min_free_kbytes;

    echo

    "TWEAKS:

    miscellaneous

    ...";

    setpropdalvik.vm.startheapsize8m;

    setpropwifi.supplicant_scan_interval90;

    setpropwindowsmgr.max_events_per_sec60;

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

    noatime,nodiratime";

    for

    k

    in

    $PART;do

    sync;

    mount-oremount,noatime,nodiratime$k;

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    3/10

    changelog:

    -Reducedread_ahead_kbto256K(1Mtoolargeasbuffer)

    -Removedtweaksforback_seekandslice_idle(littleorno

    effect)

    ~~~

    Previous versions ...

    done;

    echo"TWEAKS:usecfqasi/oscheduler";

    for

    i

    in

    $STL

    $BML

    $MMC;

    do

    echo0>$i/queue/rotational;

    echo256>$i/queue/read_ahead_kb;

    echocfq>$i/queue/scheduler;

    done;

    echo"TWEAKS:forkernelscheduler";

    echo4000000>/proc/sys/kernel

    /sched_min_granularity_ns;

    echo

    8000000

    >

    /proc/sys/kernel

    /sched_latency_ns;

    echo1600000>/proc/sys/kernel

    /sched_wakeup_granularity_ns;

    echo24319>/proc/sys/kernel/sched_features;

    echo

    "TWEAKS:

    for

    kernel

    VM

    management";echo20>/proc/sys

    /vm/dirty_background_ratio;

    echo30>/proc/sys/vm/dirty_ratio;

    echo

    300

    >

    /proc/sys

    /vm/dirty_writeback_centisecs;

    echo300>/proc/sys

    /vm/dirty_expire_centisecs;

    #echo1>/proc/sys

    /vm/oom_kill_allocating_task;

    echo60>/proc/sys/vm/swappiness;

    echo2048>/proc/sys/vm/min_free_kbytes;

    echo

    100

    >

    /proc/sys/vm/vfs_cache_pressure;

    echo"TWEAKS:forTCPread/writebuffers";

    echo404480>proc/sys/net/core/wmem_max;

    echo404480>proc/sys/net/core/rmem_max;

    echo

    4096

    16384

    404480

    >

    /proc/sys/net/ipv4

    /tcp_wmem;

    echo409687380404480>/proc/sys/net/ipv4

    /tcp_rmem;

    echo

    "TWEAKS:

    miscellaneous

    ...";

    setpropdalvik.vm.startheapsize8m;

    setprop

    wifi.supplicant_scan_interval

    90;

    setpropwindowsmgr.max_events_per_sec60;

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

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    4/10

    changelog:

    +Includedthenoatime,nodiratimeremountcommandsforall

    partitions.

    +I/OschedulerchangedtoCFQ

    +Increaseread_ahead_kbfrom128KBto1MB+Reducedback_seek_penalty andslice_idle

    +LauncherProrecommendedsetpropforsmootherUI"

    noatime,nodiratime";

    forkin$PART;

    do

    sync;

    mount-oremount,noatime,nodiratime$k;

    done;

    echo"TWEAKS:usecfqasi/oscheduler";

    for

    i

    in

    $STL

    $BML

    $MMC;

    do

    echo0>$i/queue/rotational;

    echo1024>$i/queue/read_ahead_kb;

    echocfq>$i/queue/scheduler;

    echo

    1

    >

    $i/queue/iosched/back_seek_penalty;

    echo1000000000>$i/queue/iosched

    /back_seek_max;

    echo0>$i/queue/iosched/slice_idle;

    done;

    echo

    "TWEAKS:

    for

    kernel

    scheduler";echo4000000>/proc/sys/kernel

    /sched_latency_ns;

    echo1000000>/proc/sys/kernel

    /sched_wakeup_granularity_ns;

    echo800000>/proc/sys/kernel

    /sched_min_granularity_ns;

    echo"TWEAKS:forkernelVMmanagement";

    echo0>/proc/sys/vm/swappiness;

    echo10>/proc/sys/vm/dirty_ratio;

    echo100>/proc/sys/vm/vfs_cache_pressure;

    echo

    4096

    >

    /proc/sys/vm/min_free_kbytes;

    echo"TWEAKS:miscellaneous...";

    setpropdalvik.vm.startheapsize8m;

    setpropwifi.supplicant_scan_interval90;

    setprop

    windowsmgr.max_events_per_sec

    60;

    XDA speed tweaks v1

    #!/xbin/sh

    #

    echo"TWEAKS:tellkernelthestorageisnota

    spinningdisk";

    STL=`ls

    -d

    /sys/block/stl*`;

    BML=`ls

    -d

    /sys/block/bml*`;

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

    foriin$STL$BML$MMC;

    do

    echo

    0

    >

    $i/queue/rotational;

    done

    echo"TWEAKS:forkernelscheduler";

    echo4000000>/proc/sys/kernel

    /sched_latency_ns;echo1000000>/proc/sys/kernel

    /sched_wakeup_granularity_ns;

    echo800000>/proc/sys/kernel

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    5/10

    comments:

    +Configurei/oschedulerforflashmemoryinsteadofdefault

    Linuxsettingforspinningdisk

    +TweaksforkernelschedulerandVMmanagement

    +Misctweaksfordalvik-vmandwifiscanning

    /sched_min_granularity_ns;

    echo"TWEAKS:forkernelVMmanagement";

    echo

    0

    >

    /proc/sys/vm/swappiness;

    echo10>/proc/sys/vm/dirty_ratio;

    echo100>/proc/sys/vm/vfs_cache_pressure;

    echo4096>/proc/sys/vm/min_free_kbytes;

    echo

    "TWEAKS:

    miscellaneous

    ...";

    setpropdalvik.vm.startheapsize8m;

    setpropwifi.supplicant_scan_interval90;

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

    noatime,nodiratime";forkin$PART;

    do

    sync;

    mount-oremount,noatime,nodiratime$k;

    done;

    echo

    "TWEAKS:

    use

    cfq

    as

    i/o

    scheduler";

    foriin$STL$BML$MMC;

    do

    echo0>$i/queue/rotational;

    echo1024>$i/queue/read_ahead_kb;

    echo

    cfq

    >

    $i/queue/scheduler;echo1>$i/queue/iosched/back_seek_penalty;

    echo1000000000>$i/queue/iosched

    /back_seek_max;

    echo0>$i/queue/iosched/slice_idle;

    done;

    echo"TWEAKS:forkernelscheduler";

    echo

    4000000

    >

    /proc/sys/kernel

    /sched_min_granularity_ns;

    echo8000000>/proc/sys/kernel

    /sched_latency_ns;

    echo

    1600000

    >

    /proc/sys/kernel

    /sched_wakeup_granularity_ns;

    echo24319>/proc/sys/kernel/sched_features;

    echo"TWEAKS:forkernelVMmanagement";

    echo20>/proc/sys

    /vm/dirty_background_ratio;

    echo30>/proc/sys/vm/dirty_ratio;

    echo300>/proc/sys

    /vm/dirty_writeback_centisecs;

    echo300>/proc/sys

    /vm/dirty_expire_centisecs;#echo1>/proc/sys

    /vm/oom_kill_allocating_task;

    echo60>/proc/sys/vm/swappiness;

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    6/10

    changelog:

    +Includedthenoatime,nodiratimeremountcommandsforall

    partitions.+Increaseread_ahead_kbfrom128KBto1MB

    +Reducedback_seek_penalty andslice_idle

    +Highervaluesfornet.core.wmem_maxandrmem_max

    -Disabledvm.oom_kill_allocating_taskwhichwascausing

    phone-freezeandwake-lag

    echo2048>/proc/sys/vm/min_free_kbytes;

    echo1000>/proc/sys/vm/vfs_cache_pressure;

    echo

    "TWEAKS:

    for

    TCP

    read/write

    buffers";

    echo404480>proc/sys/net/core/wmem_max;

    echo404480>proc/sys/net/core/rmem_max;

    echo409616384404480>/proc/sys/net/ipv4

    /tcp_wmem;

    echo

    4096

    87380

    404480

    >

    /proc/sys/net/ipv4

    /tcp_rmem;

    echo"TWEAKS:miscellaneous...";

    setpropdalvik.vm.startheapsize8m;

    setprop

    wifi.supplicant_scan_interval

    90;

    setpropwindowsmgr.max_events_per_sec60;

    FE speed tweaks v1

    #!/xbin/sh

    #

    echo"TWEAKS:forstorageandcfqi/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

    echo0>$i/queue/rotational;

    echocfq>$i/queue/scheduler;

    done

    echo"TWEAKS:forkernelscheduler";

    echo4000000>/proc/sys/kernel

    /sched_min_granularity_ns;

    echo8000000>/proc/sys/kernel

    /sched_latency_ns;

    echo1600000>/proc/sys/kernel

    /sched_wakeup_granularity_ns;

    echo

    24319

    >

    /proc/sys/kernel/sched_features;

    echo"TWEAKS:forkernelVMmanagement";

    echo20>/proc/sys

    /vm/dirty_background_ratio;

    echo

    30

    >

    /proc/sys/vm/dirty_ratio;

    echo300>/proc/sys

    /vm/dirty_writeback_centisecs;

    echo300>/proc/sys

    /vm/dirty_expire_centisecs;

    echo

    1

    >

    /proc/sys

    /vm/oom_kill_allocating_task;

    echo60>/proc/sys/vm/swappiness;

    echo2048>/proc/sys/vm/min_free_kbytes;

    echo100>/proc/sys/vm/vfs_cache_pressure;

    echo"TWEAKS:forTCPread/writebuffers";

    echo409616384404480>/proc/sys/net/ipv4

    /tcp_wmem;

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    7/10

    comments:

    +Leveragesontheextensivespeedvsstabilitytestingdoneby

    antibyte forhisFEmod,

    +RecommendedLauncherProsetpropforsmootherUI.

    Browsing

    +ChangestoTCPbuffers.

    +I/OschedulerchangedtoCFQ

    echo409687380404480>/proc/sys/net/ipv4

    /tcp_rmem;

    echo

    "TWEAKS:

    miscellaneous

    ...";

    setpropdalvik.vm.startheapsize8m;

    setpropwifi.supplicant_scan_interval90;

    setpropwindowsmgr.max_events_per_sec60;

    Last

    edited

    by

    ch33kybutt;

    11-16-2010

    at

    05:03

    AM.Reason:addedFEspeed

    tweaks

    v2

    Reply With Quote

    PostThanks/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,anuragthehellboythankedforthispost.

    2011 Stock ForecastOurExperts'Top5InvestmentPicksForTh

    Chinese Medicine SoftwareTCMHerbalist-ChineseMedicineS

    LinuxLIVE for Linux PCsSuspend-Resume,Sharing,Mobilityand

    10-25-201002:47AM

    soifiwanttouseitihavetoinstalltheXDAoneandifiwant

    torevertbacktostandardiusetheFEtweaks??

    btwimonFE9B1

    [translate] #2

    JoinDate:

    Posts:

    Mar2010

    352

    benjy

    SeniorMember

    SGMBeta2.1Horse_POWER_3.0 - 2.6.32.9system->ext2,data->ext2,cache->ext2ADWLauncherEXQuadrant->770

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

    Reply With Quote

    10-25-201002:49AM [translate] #3

    JoinDate:

    Location:

    Posts:

    Feb2010

    Singapore

    890

    ch33kybutt

    SeniorMember

    OriginallyPostedbybenjy

    soifiwanttouseitihavetoinstalltheXDAone

    and

    if

    i

    want

    to

    revert

    back

    to

    standard

    i

    use

    theFE

    tweaks??

    btwimonFE9B1

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    8/10

    JustaddedUNDOzip.

    Butsinceyou'realreadyonFE,thetweakswillnothavemuch

    ofaneffect.ThisisforCMusers,hencethethreadlocation...

    Reply With Quote

    ooView Augmented RealityARSolutionsforRetail&OnlineRet

    QSFP cables from FinisarHigh-speedactiveopticalcablesFrom

    FULLY Managed VPS HostingUnlimitedTraffic,FullRootAccess

    10-25-201002:49AM

    sothiswontshowANYdifference?

    [translate] #4

    JoinDate:

    Posts:

    Mar2010

    352

    benjy

    SeniorMember

    SGMBeta2.1Horse_POWER_3.0 - 2.6.32.9system->ext2,data->ext2,cache->ext2ADWLauncherEX

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

    Reply With Quote

    10-25-201002:53AM

    Whydon'tyoutryandletusknow?

    [translate] #5

    JoinDate:

    Location:Posts:

    Feb2010

    Singapore890

    ch33kybutt

    SeniorMember

    OriginallyPostedbybenjy

    so

    this

    wont

    show

    ANY

    difference?

    Reply With Quote

    10-25-201002:54AM

    okwilldo!

    soiwilltestbothandthenwritebacktomorrow!

    [translate] #6

    JoinDate:

    Posts:

    Mar2010

    352

    benjy

    SeniorMember

    SGMBeta2.1Horse_POWER_3.0 - 2.6.32.9system->ext2,data->ext2,cache->ext2ADWLauncherEX

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    9/10

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

    Reply With Quote

    10-25-201003:18AM

    Eclaironlyhasanticipatoryi/oscheduler,sothecfqscheduler

    tweakwillnotworkforyou.

    [translate] #7

    JoinDate:

    Location:

    Posts:

    Feb2010

    Singapore

    890

    ch33kybutt

    SeniorMember

    OriginallyPostedbybenjy

    okwilldo!

    soiwilltestbothandthenwritebacktomorrow!

    Reply With Quote

    10-25-201004:52AM

    SothiswouldbelikeFEforCyanogenMod?Imabouttoapply

    CMinthenextdays,that'swhyiaskthishehe

    thanks

    [translate] #8

    JoinDate:

    Location:

    Posts:

    Sep2010

    cordoba

    1,209

    rrrulo

    SeniorMember

    Reply With Quote

    10-25-201005:16AM

    Flattering butno,justFE'skerneltweaks.

    ----------Postaddedat10:16AM----------Previouspostwasat10:09AM----------

    @anurag,thanksforediting1stposttoletothersknowit's

    meantmostlyforCM.Wasgonnadoit,thensawit'sdone.

    ch33rs!

    [translate] #9

    JoinDate:

    Location:

    Posts:

    Feb2010

    Singapore

    890

    ch33kybutt

    SeniorMember

    OriginallyPostedbyrrrulo

    SothiswouldbelikeFEforCyanogenMod?Im

    about

    to

    apply

    CM

    in

    the

    next

    days,

    that's

    why

    i

    askthishehe

    thanks

    Reply With Quote

    10-25-201006:01AM [translate] #10

    ribbon

    SeniorMember

  • 7/26/2019 CM Speed Tweaks (XDA and FE Versions)

    10/10

    --English(US)

    PreviousThread|NextThread

    ContactUs Archive Top

    AlltimesareGMT+3.Thetimenowis06:33AM.

    PoweredbyvBulletinVersion4.0.6Copyright 2011vBulletinSolutions,Inc.Allrightsreserved.

    SearchEngineOptimizationbyvBSEO3.5.1PL1

    poweredby

    @ch33kybutt:

    IthinkyouputwrongplaceofFEtweakscript:

    Code:

    --> FE tweaks for EXT--> tweaks_fe_rfs.zip--> FE tweaks for RFS--> tweaks_fe_ext.zip

    JoinDate:

    Location:

    Posts:

    Apr2010

    VietNam

    321

    Reply With Quote

    +ReplytoThread Page1of7 1 2 3 ... Last

    Thread Information

    Thereare

    currently

    1users

    browsing

    this

    thread.

    (0members

    and

    1guests)

    Youmaynotpostnewthreads

    Youmaynotpostreplies

    Youmaynotpostattachments

    Youmaynotedityourposts

    BB codeisOn

    SmiliesareOn

    [IMG]codeisOn

    HTMLcodeisOff

    TrackbacksareOff

    PingbacksareOff

    RefbacksareOn

    Forum Rules

    Posting Permissions