thread priority boost script[beta test]

Search This thread

hoholee12

Senior Member
May 6, 2012
2,390
2,746
my new performance tuning script, check it out!!
What's the concept?
-it boosts thread priority per process to gain extra performance.(hopefully)

How do i install?
-download the attachment
-find a way to launch it on any interactive terminal(you're on your own)
-type install

recommended applications:
download busybox from stericsonhere
download smanager here.

How to check if it works?
-type in whatever it says in the installer after you've installed.
-if it responds with error, then you've got problem.

it failed to run, what do i do now?(deeeebuuuuuugiiiiiiing)
-type in 'skeleton(or whatever you renamed it as) --verbose'
this will debug the program and show the result of what is going on.
if necessary, you can also try 'skeleton --bbpass --supass --verbose --renice 19'.

-paste the outcome here. i will help you.

How to run?
-run the program
-read the description.

hidden feature:
-'fork mediaserv 900 0.1 19'
will stop the stutters on audio.
-'randtest'
will cause havok to your device.

details will be updated in a distant future.

feel free to contribute to my code.
sourcecode: https://github.com/lenarox/avcore
 

Attachments

  • skeleton.sh.pdf
    19 KB · Views: 1,414
Last edited:

jader13254

Senior Member
May 25, 2012
5,928
17,917
Hamburg
both threads for now...
Little Tip: Update your OP.
  • "Find the flashable zips in thread" > well as this is a new Thread, nobody will ever find + Attachments are flashable lol
  • Make a Clear Structure, use your reserved second post
  • Write down the Features, Advantages, and How-to modify it with own values (even if u already did, you can still make clearer ;))
  • Make a clear Title:
    [SCRIPT][TWEAKS](12/31/2012)
    -=Lazerdroid & MP8Engine=- Gaming & UI Boost or whatever
  • Write down an easy How-To Use and Test for Not-so-Advanced (I won't call them n00bs ^*>) (Update your old tutorial)
  • Instead "Yo No Press Thanks" (which is actually pretty true) just "Please Press Thanks and rate 5* if you downloaded anything". Be thankfull... Thank You too!"
  • Don't just write CAPITAL LETTERS & USE ONLY 1-2 "!"
Only Recomnendations, I don't force you to anything.
Great Tweak btw ;)
Thank You,
Jan
 
Last edited:

Indian Devil

Senior Member
Sep 3, 2012
425
85
For not so Advanced users ( :p ) just flash the 2 zip files or anything else needs to be done?


Edit

Using i9000 with C-Rom Bean 4.2.1 v2
 
Last edited:
  • Like
Reactions: hoholee12

hoholee12

Senior Member
May 6, 2012
2,390
2,746
Little Tip: Update your OP.
  • "Find the flashable zips in thread" > well as this is a new Thread, nobody will ever find + Attachments are flashable lol
  • Make a Clear Structure, use your reserved second post
  • Write down the Features, Advantages, and How-to modify it with own values (even if u already did, you can still make clearer ;))
  • Make a clear Title:
    [SCRIPT][TWEAKS](12/31/2012)
    -=Lazerdroid & MP8Engine=- Gaming & UI Boost or whatever
  • Write down an easy How-To Use and Test for Not-so-Advanced (I won't call them n00bs ^*>) (Update your old tutorial)
  • Instead "Yo No Press Thanks" (which is actually pretty true) just "Please Press Thanks and rate 5* if you downloaded anything". Be thankfull... Thank You too!"
  • Don't just write CAPITAL LETTERS & USE ONLY 1-2 "!"
Only Recomnendations, I don't force you to anything.
Nice Tweak btw ;)
You can take a look at my threads too :silly:
Thank You,
Jan

Lol thanx for the recommendations XD

Please, just call me 'Lag Doctor'.
 
Last edited:

cnkhanh

Senior Member
Aug 9, 2012
776
145
Ha Noi
Google Pixel 5
Sound great!
Please make the instruction more clearly if you have time :D

EDIT: I'm stuck on boot logo after installing Lazerdroid&Engine package. Doesnt matter if via CWM or manually. I'm on CM9.1
 
Last edited:

pbecks1963

Senior Member
May 26, 2009
801
107
Zutphen
Flashed the zip. All is well.

antutu score (engine8 only): 3303
antutu score (lazeroid 2.7 + engine8): 4480 (sd card write is slow as hell due to my movinand) database IO = 360 (has been better on other versions off lazeroid/vm lagtuner.

my setup: SGS 1 with slow nand, liveoc 120, ondemand, deep idle on, no big mem, 512 mb sd card read ahead, SAI on, BLN on

Still a GREAT tweak/script for my SGS.

Thnx LENAROX !

PS: [Question] What's your opinion on "SD card read ahead in semaphore" ? Mine is 512kb because i read that that more causes more lag...
 
Last edited:

hoholee12

Senior Member
May 6, 2012
2,390
2,746
Flashed the zip. All is well.

antutu score (engine8 only): 3303
antutu score (lazeroid 2.7 + engine8): 4480 (sd card write is slow as hell due to my movinand) database IO = 360 (has been better on other versions off lazeroid/vm lagtuner.

my setup: SGS 1 with slow nand, liveoc 120, ondemand, deep idle on, no big mem, 512 mb sd card read ahead, SAI on, BLN on

Still a GREAT tweak/script for my SGS.

Thnx LENAROX !

PS: [Question] What's your opinion on "SD card read ahead in semaphore" ? Mine is 512kb because i read that that more causes more lag...

Hmm.. Ill take a look about the sdcard read ahead tweaks.
If you want to disable that read ahead tweak(lazerdroid script)
you should erase all the 'tune your settings here' lines. It will permanently disable every sdcard tweak the script has.

btw, my antutu score is much worse than yours
but who cares, the games are smoooooth:D


Please, just call me 'Lag Doctor'.
 

hoholee12

Senior Member
May 6, 2012
2,390
2,746
MPEngine9 development has been finished. The current changes from the previous version are:
-removed minfree calculator(they dont work in some roms) replaced with MFKx2 multiplier.
-changed all the tweaks to non specified applet directory(includes lazerdroid)(a new fix for everything)
-alot stronger, best cache cleaner.
-theres more but i cant remember...
It still doesnt change the fact that i will release them in sunday.(if lucky i might be able to upload sooner than that:D)
thank you:)

Please, just call me 'Lag Doctor'.
 

Nemivsek

Senior Member
Dec 23, 2012
125
11
Need help. When i install CWM_LazerDroid_2_7_MPEngine8_package.zip in recovery mode and i go then to system/etc/init.d/____ i dont have any new file.
There it must be system/etc/init.d/2LazerDroid2_7. Why i dont have this file?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 366
    my new performance tuning script, check it out!!
    What's the concept?
    -it boosts thread priority per process to gain extra performance.(hopefully)

    How do i install?
    -download the attachment
    -find a way to launch it on any interactive terminal(you're on your own)
    -type install

    recommended applications:
    download busybox from stericsonhere
    download smanager here.

    How to check if it works?
    -type in whatever it says in the installer after you've installed.
    -if it responds with error, then you've got problem.

    it failed to run, what do i do now?(deeeebuuuuuugiiiiiiing)
    -type in 'skeleton(or whatever you renamed it as) --verbose'
    this will debug the program and show the result of what is going on.
    if necessary, you can also try 'skeleton --bbpass --supass --verbose --renice 19'.

    -paste the outcome here. i will help you.

    How to run?
    -run the program
    -read the description.

    hidden feature:
    -'fork mediaserv 900 0.1 19'
    will stop the stutters on audio.
    -'randtest'
    will cause havok to your device.

    details will be updated in a distant future.

    feel free to contribute to my code.
    sourcecode: https://github.com/lenarox/avcore
    76
    25
    Just an update .. Im rewriting this engine in a different code style.
    edit: everything changed. it looks alot like cell processor now:p
    busybox ps -p1 -o pcpu | sed 's/%CPU//' | tail -n1 | awk '{print $1}'
    1.
    new design of rtmixman
    boot(bios)
    (instructions)
    -C0000>I0000(read map when first boot)
    C0000(main process)
    (instructions)
    -I0000(read map)
    -I0001(sync time)
    -I0002(sleep time)
    -I0003(go go gadget)
    -I0004(^^this)
    (execute map=whole skeleton)
    (execute instructions)
    C0001(child process)
    (execute instructions)
    C0002(child process)
    (execute instructions)
    C0003(child process)
    (execute instructions)
    C0004(child process)
    (execute instructions)
    C0005(child process)
    (execute instructions)
    C0006(child process)
    (execute instructions)
    C0007(child process)
    (execute instructions)
    C0008(child process)
    (execute instructions)

    (return)
    2.
    I0004 special feature:
    -make process concentrate on foreground tasks, make background process usage low as possible(avoid lags).
    I0003 special feature:
    -kill apps only in specific layers(you can avoid killing launcher and background apps). both multitasking and performance wise(might be possible)
    I0000 special feature:
    -retrieves every single information through anywhere, anytime.(I/O)
    I0001 special feature:
    -it counts time between desired tasks(whom goes first in line) and sends random statistics to other instructions for changing aggressivity options to keep them in sync.
    I0002 special feature:
    -go to sleep for reasonable seconds.(synced with I0001).
    3.
    just two cons for this engine:
    -enabling log will be a real pain in the ass.
    -I0004 is sort of a BS, i will have to test this alot, i mean ALOT more to actually make this happen.
    4.
    just testing with these map settings for a moment...
    boot()
    {
    export boot=I0000 id=1
    C0000 #start main unit
    }
    C0000() #Power Processor Element
    {
    I0000() #mapping
    {
    ./system/etc/usrsettings.conf ##masterfile read
    ###warning: it must be able to count all instructions, or else some wont work.###
    export C0000A=\`echo \$C0000 | sed 's/,/ /' | awk '{print \$1}'\`
    export C0000B=\`echo \$C0000 | sed 's/,/ /' | awk '{print \$2}'\`
    export C0000C=\`echo \$C0000 | sed 's/,/ /' | awk '{print \$3}'\`
    export C0000D=\`echo \$C0000 | sed 's/,/ /' | awk '{print \$4}'\`
    export C0000E=\`echo \$C0000 | sed 's/,/ /' | awk '{print \$5}'\`
    export C0001A=\`echo \$C0001 | sed 's/,/ /' | awk '{print \$1}'\`
    export C0001B=\`echo \$C0001 | sed 's/,/ /' | awk '{print \$2}'\`
    export C0001C=\`echo \$C0001 | sed 's/,/ /' | awk '{print \$3}'\`
    export C0001D=\`echo \$C0001 | sed 's/,/ /' | awk '{print \$4}'\`
    export C0001E=\`echo \$C0001 | sed 's/,/ /' | awk '{print \$5}'\`
    export C0002A=\`echo \$C0002 | sed 's/,/ /' | awk '{print \$1}'\`
    export C0002B=\`echo \$C0002 | sed 's/,/ /' | awk '{print \$2}'\`
    export C0002C=\`echo \$C0002 | sed 's/,/ /' | awk '{print \$3}'\`
    export C0002D=\`echo \$C0002 | sed 's/,/ /' | awk '{print \$4}'\`
    export C0002E=\`echo \$C0002 | sed 's/,/ /' | awk '{print \$5}'\`
    export C0003A=\`echo \$C0003 | sed 's/,/ /' | awk '{print \$1}'\`
    export C0003B=\`echo \$C0003 | sed 's/,/ /' | awk '{print \$2}'\`
    export C0003C=\`echo \$C0003 | sed 's/,/ /' | awk '{print \$3}'\`
    export C0003D=\`echo \$C0003 | sed 's/,/ /' | awk '{print \$4}'\`
    export C0003E=\`echo \$C0003 | sed 's/,/ /' | awk '{print \$5}'\`
    export C0004A=\`echo \$C0004 | sed 's/,/ /' | awk '{print \$1}'\`
    export C0004B=\`echo \$C0004 | sed 's/,/ /' | awk '{print \$2}'\`
    export C0004C=\`echo \$C0004 | sed 's/,/ /' | awk '{print \$3}'\`
    export C0004D=\`echo \$C0004 | sed 's/,/ /' | awk '{print \$4}'\`
    export C0004E=\`echo \$C0004 | sed 's/,/ /' | awk '{print \$5}'\`
    export C0005A=\`echo \$C0005 | sed 's/,/ /' | awk '{print \$1}'\`
    export C0005B=\`echo \$C0005 | sed 's/,/ /' | awk '{print \$2}'\`
    export C0005C=\`echo \$C0005 | sed 's/,/ /' | awk '{print \$3}'\`
    export C0005D=\`echo \$C0005 | sed 's/,/ /' | awk '{print \$4}'\`
    export C0005E=\`echo \$C0005 | sed 's/,/ /' | awk '{print \$5}'\`
    export C0006A=\`echo \$C0006 | sed 's/,/ /' | awk '{print \$1}'\`
    export C0006B=\`echo \$C0006 | sed 's/,/ /' | awk '{print \$2}'\`
    export C0006C=\`echo \$C0006 | sed 's/,/ /' | awk '{print \$3}'\`
    export C0006D=\`echo \$C0006 | sed 's/,/ /' | awk '{print \$4}'\`
    export C0006E=\`echo \$C0006 | sed 's/,/ /' | awk '{print \$5}'\`
    export C0007A=\`echo \$C0007 | sed 's/,/ /' | awk '{print \$1}'\`
    export C0007B=\`echo \$C0007 | sed 's/,/ /' | awk '{print \$2}'\`
    export C0007C=\`echo \$C0007 | sed 's/,/ /' | awk '{print \$3}'\`
    export C0007D=\`echo \$C0007 | sed 's/,/ /' | awk '{print \$4}'\`
    export C0007E=\`echo \$C0007 | sed 's/,/ /' | awk '{print \$5}'\`
    export C0008A=\`echo \$C0008 | sed 's/,/ /' | awk '{print \$1}'\`
    export C0008B=\`echo \$C0008 | sed 's/,/ /' | awk '{print \$2}'\`
    export C0008C=\`echo \$C0008 | sed 's/,/ /' | awk '{print \$3}'\`
    export C0008D=\`echo \$C0008 | sed 's/,/ /' | awk '{print \$4}'\`
    export C0008E=\`echo \$C0008 | sed 's/,/ /' | awk '{print \$5}'\`

    #I0002 specific properties
    export main_custom_sleep_timer=\`echo \$custom_sleep_timer | sed 's/,/ /' | awk '{print \$1}'\`
    export sub_custom_sleep_timer=\`echo \$custom_sleep_timer | sed 's/,/ /' | awk '{print \$2}'\`
    }
    I0001() #sync
    {
    }
    I0002() #sleep
    {
    if [ ! "\$custom_sleep_timer" ]; then
    sleep 4
    else
    sleep \$custom_sleep_timer
    fi
    }
    I0003() #flush
    {
    prev_total=0
    prev_idle=0
    while true; do
    cpu=`cat /proc/stat | head -n1 | sed 's/cpu //'`
    user=`echo $cpu | awk '{print $1}'`
    system=`echo $cpu | awk '{print $2}'`
    nice=`echo $cpu | awk '{print $3}'`
    idle=`echo $cpu | awk '{print $4}'`
    wait=`echo $cpu | awk '{print $5}'`
    irq=`echo $cpu | awk '{print $6}'`
    srq=`echo $cpu | awk '{print $7}'`
    zero=`echo $cpu | awk '{print $8}'`
    total=$(($user+$system+$nice+$idle+$wait+$irq+$srq+$zero))
    diff_idle=$(($idle-$prev_idle))
    diff_total=$(($total-$prev_total))
    usage=$(($((1000*$(($diff_total-$diff_idle))/$diff_total+5))/10))
    clear
    echo "Current Usage: $usage%"
    prev_total=$total
    prev_idle=$idle
    sleep 1
    done
    }
    I0004() #nice
    {
    }
    if [ "\$id" == 1 ]; then \$boot; export id=0; fi ##bootup
    if [ "\$C0000A" ]; then \$C0000A; fi
    if [ "\$C0000B" ]; then \$C0000B; fi
    if [ "\$C0000C" ]; then \$C0000C; fi
    if [ "\$C0000D" ]; then \$C0000D; fi
    if [ "\$C0000E" ]; then \$C0000E; fi
    ###sub unit online interconnection###
    if [ "\$C0001" ]; then \$C0001 &; fi
    if [ "\$C0002" ]; then \$C0002 &; fi
    if [ "\$C0003" ]; then \$C0003 &; fi
    if [ "\$C0004" ]; then \$C0004 &; fi
    if [ "\$C0005" ]; then \$C0005 &; fi
    if [ "\$C0006" ]; then \$C0006 &; fi
    if [ "\$C0007" ]; then \$C0007 &; fi
    if [ "\$C0008" ]; then \$C0008 &; fi
    C0000 & ##loop
    }
    C0001() #Synergistic Processor Element #1
    {
    if [ "\$C0001A" ]; then \$C0001A; fi
    if [ "\$C0001B" ]; then \$C0001B; fi
    if [ "\$C0001C" ]; then \$C0001C; fi
    if [ "\$C0001D" ]; then \$C0001D; fi
    if [ "\$C0001E" ]; then \$C0001E; fi
    }
    C0002() #Synergistic Processor Element #2
    {
    if [ "\$C0002A" ]; then \$C0002A; fi
    if [ "\$C0002B" ]; then \$C0002B; fi
    if [ "\$C0002C" ]; then \$C0002C; fi
    if [ "\$C0002D" ]; then \$C0002D; fi
    if [ "\$C0002E" ]; then \$C0002E; fi
    }
    C0003() #Synergistic Processor Element #3
    {
    if [ "\$C0003A" ]; then \$C0003A; fi
    if [ "\$C0003B" ]; then \$C0003B; fi
    if [ "\$C0003C" ]; then \$C0003C; fi
    if [ "\$C0003D" ]; then \$C0003D; fi
    if [ "\$C0003E" ]; then \$C0003E; fi
    }
    C0004() #Synergistic Processor Element #4
    {
    if [ "\$C0004A" ]; then \$C0004A; fi
    if [ "\$C0004B" ]; then \$C0004B; fi
    if [ "\$C0004C" ]; then \$C0004C; fi
    if [ "\$C0004D" ]; then \$C0004D; fi
    if [ "\$C0004E" ]; then \$C0004E; fi
    }
    C0005() #Synergistic Processor Element #5
    {
    if [ "\$C0005A" ]; then \$C0005A; fi
    if [ "\$C0005B" ]; then \$C0005B; fi
    if [ "\$C0005C" ]; then \$C0005C; fi
    if [ "\$C0005D" ]; then \$C0005D; fi
    if [ "\$C0005E" ]; then \$C0005E; fi
    }
    C0006() #Synergistic Processor Element #6
    {
    if [ "\$C0006A" ]; then \$C0006A; fi
    if [ "\$C0006B" ]; then \$C0006B; fi
    if [ "\$C0006C" ]; then \$C0006C; fi
    if [ "\$C0006D" ]; then \$C0006D; fi
    if [ "\$C0006E" ]; then \$C0006E; fi
    }
    C0007() #Synergistic Processor Element #7
    {
    if [ "\$C0007A" ]; then \$C0007A; fi
    if [ "\$C0007B" ]; then \$C0007B; fi
    if [ "\$C0007C" ]; then \$C0007C; fi
    if [ "\$C0007D" ]; then \$C0007D; fi
    if [ "\$C0007E" ]; then \$C0007E; fi
    }
    C0008() #Synergistic Processor Element #8
    {
    if [ "\$C0008A" ]; then \$C0008A; fi
    if [ "\$C0008B" ]; then \$C0008B; fi
    if [ "\$C0008C" ]; then \$C0008C; fi
    if [ "\$C0008D" ]; then \$C0008D; fi
    if [ "\$C0008E" ]; then \$C0008E; fi
    }
    boot #start processC0000=I0000,I0001,I0002,I0003,I0004 #enable map, sync, sleep for main unit
    C0001=I0003,I0004 #repeat others for ultimate sync test
    C0002=I0003,I0004
    C0003=I0003,I0004
    C0004=I0003,I0004
    C0005=I0003,I0004
    C0006=I0003,I0004
    C0007=I0003,I0004
    C0008=I0003,I0004
    20
    dev logs>>
    this new engine will be awesome!:cool:
    currently done:
    -TRASHED LOWMEMORYKILLER and replaced it with my (DUN DUN DUN)new engine!:good:
    -if there is no adj found, use its own built-in value.
    -minfree is not connected.(use its own calculated minfree)
    -above these two really needs to be modified for performance:p
    -renice highest priority for foreground.
    -ionice lowest priority for anything else thats not needed for the moment.
    -no usrsettings.conf needed.
    18
    ditched old straight flush technology, and replaced with new cortex flush technology.(over 8kb)

    edit: i actually have managed to port the whole lowmemorykiller stuff to a bash script today and now i an modifying it for advanced gaming experience.
    Ofcourse these two wont have any conflict because the one i created will take first chance to wipe the whole targeted layer in one zap while the original one clears them one by one using least recently used lists.
    They will also share the same values on same locations:)

    stay tuned;)

    prototype
    strategy.png


    my goal is to make a full-fledged working engine with a bash script.:victory:
    im also really going to disable the lowmemorykiller when this engine is doing its job properly:)