thread priority boost script[beta test]

Search This thread

flarestar123

Senior Member
Aug 21, 2013
390
147
Laoag
i need some feedbacks, guys!
also if you like my work, click the thanks button, subscribe, and rate 5 stars!
it will encourage me to improve this script performance more than ever!;)
[/QUOTE]

WOW! Thanks for updating and coming back :good:
 

pinpontbs

Senior Member
Aug 14, 2011
78
19
Please help!

I downloaded the file installer.sh.pdf (11kb) and opened it with smanager (I already have Busybox installed) but it seem that there is something wrong.

My phone is LG G2 D802 4.4.2.
 

Attachments

  • Screenshot_2014-11-09-21-15-55.png
    Screenshot_2014-11-09-21-15-55.png
    193.9 KB · Views: 380

dhrtlockeroo9

Senior Member
Sep 24, 2013
250
50
Ahmedabad
Exact same problem here

You must have to install busybox by stericson to run this script. I m using paid busybox so I never had any problem with script. Sorry for my bad English.:D
One more thing must set system for r/o to r/w from smanager menu- advance -select mount/system as r/w

Sent from my HM 1SW using XDA Premium 4 mobile app
 
Last edited:

hoholee12

Senior Member
May 6, 2012
2,390
2,746
i dont have time but i fixed some bugs as much as i could...
new update!

also if you read op carefully, you'll find some hidden gem.:D
 

HeathenMan

Senior Member
Oct 8, 2011
494
95
Please help!

I downloaded the file installer.sh.pdf (11kb) and opened it with smanager (I already have Busybox installed) but it seem that there is something wrong.

My phone is LG G2 D802 4.4.2.

Same here, first dorimax bb - now stericson but both with same error. Maybe you should try to create a flashable zip with needed busybox features inside

Sent from my GT-I9505 using XDA Free mobile app
 

hoholee12

Senior Member
May 6, 2012
2,390
2,746
Same here, first dorimax bb - now stericson but both with same error. Maybe you should try to create a flashable zip with needed busybox features inside

Sent from my GT-I9505 using XDA Free mobile app

read the op description on debugging.
otherwise, i cant help you.

Sent from my SHW-M110S using Tapatalk 2
 
Last edited:

xWynx

Member
Mar 10, 2014
27
2
i keep getting this error says not found. i already install it in /system/bin and /system/xbin. any suggestion? thanks.
 

Attachments

  • Screenshot_2014-11-15-13-43-53.png
    Screenshot_2014-11-15-13-43-53.png
    98.8 KB · Views: 526

hoholee12

Senior Member
May 6, 2012
2,390
2,746
long time no see,
new api update for this sophisticated mod has arrived!

i am welcoming anyone who has knowledge of linux process scheduling and shell programming wants to contribute to the code.
 

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