[MODULE] SIMPLE IO SCHED for ROOTED PRIME!ATP added

Search This thread

batoo

Senior Member
Jan 28, 2007
162
103
Prague
I compiled SIO (Simple I/O scheduler) for Prime.
It seems faster than CFQ to me.
It was developed mainly for SSD drives!

Download link
http://bayfiles.com/file/dvXz/iSxDXK/sio-iosched.ko

It is for .28 kernel
FOR 2.6.39 Kernel only! = e.g stock .21 , stock .28 , ANDROWOOK kernel and all roms/kernels based on Asus kernel source!!
WORKS with Asus TF300 too!

How to:
Code:
su
mount -o remount, rw /system
cp sio-iosched.ko /system/lib/modules/
insmod /system/lib/modules/sio-iosched.ko
echo sio > /sys/block/mmcblk0/queue/scheduler
Tadaaa let me know your opinion.

My source of SIO CODE:
https://github.com/waninkoko/sio-iosched

Script for Smanager
Code:
#!/system/bin/sh
insmod /system/lib/modules/sio-iosched.ko

echo sio > /sys/block/mmcblk0/queue/scheduler


EDIT:ATTACHMENT UPLOADED and SCRIPT for SMANAGER added!!

Uploaded tweaked ATP with SIO included. thx! it is by tsmt971@yahoo

new version of atp uploaded
25.6.2012
 

Attachments

  • sio-iosched.ko.zip
    52.2 KB · Views: 767
  • ATP_Tweak_SysTune.apk
    273.4 KB · Views: 1,352
Last edited:

flak0

Senior Member
Jan 3, 2009
1,650
581
Pembroke Pines , FL
I compiled SIO (Simple I/O scheduler) for Prime.
It seems faster than CFQ to me.
It was developed mainly for SSD drives!

Download link
http://bayfiles.com/file/dvXz/iSxDXK/sio-iosched.ko

It is for .28 firmware

How to:
Code:
su
mount -o remount, rw /system
cp sio-iosched.ko /system/lib/modules/
insmod /system/lib/modules/sio-iosched.ko
echo sio > /sys/block/mmcblk0/qeue/scheduler
Tadaaa let me know your opinion.
I already sent plsss to the author of ATP Tweak to add this scheduler to his application.

i have this on g2x and it makes a biig difference

Sent from my Transformer Prime TF201 using xda premium
 

Tempie007

Senior Member
Dec 15, 2010
499
72
at first the scheduler is visible in setcpu, but after reboot it disappears, gonna test now in a single session without reboot, starting with some sqlite tests and playstore installations.


Sent from my Transformer Prime TF201 using Tapatalk 2
 
  • Like
Reactions: banderos101

batoo

Senior Member
Jan 28, 2007
162
103
Prague
Typo corrected

Of course because module is not loaded after reboot.
Thats why I write to author of atp because his app can save governor after boot.
And i dont want edit init.rc because typo can kill my prime without unlocked bootloader.
Sio is mainly for user end ooint it's not for benchmarks...
 
  • Like
Reactions: Tempie007

Tempie007

Senior Member
Dec 15, 2010
499
72
first test results; no improvement in raw speed as all ready stated above.
did some updates on play store and experiencing lockups\anr as before.

currently using browser2ram but will disable it to test how browsing goes on content-rich websites!

edit; some ideas on how to test this the correct way?

Sent from my Transformer Prime TF201 using Tapatalk 2dadates
 

Tempie007

Senior Member
Dec 15, 2010
499
72
some stuff seems to be snappier, google reader for instance.
will use it as daily driver to see what happens!

some good developing going on the prime! i like :D

Sent from my Transformer Prime TF201 using Tapatalk 2
 

bdawg31

Senior Member
Nov 5, 2010
184
73
Atlanta
Does not work on VirtuousROM Stock .28; moreover, the kernel module will not install.

Sent from my Transformer Prime TF201 using xda premium
 

st33med

Senior Member
Aug 3, 2011
153
63
Does not work on VirtuousROM Stock .28; moreover, the kernel module will not install.

Sent from my Transformer Prime TF201 using xda premium

Ditto here in AndroWookie.

Code:
insmod: init_module 'system/lib/modules/sio-iosched.ko' failed (Exec format error)

Great idea though. This combines both concepts of noop and deadline. It does what noop does with basic in and out and organizes database accesses without any prioritization.
 

batoo

Senior Member
Jan 28, 2007
162
103
Prague
It is compiled against stock 2.6.39 kernel, if it runs on another onethan ok but you can have stability issues.
2.6.39 compared to 3.0 has different structure.

But ok if it run, than ok:)
 

stantang

Senior Member
Nov 15, 2009
92
13
This is great! Tried it on my rooted locked prime, the difference is huge when I tried to open a pdf with lots of images. Will test some more with other apps.
 

demandarin

Senior Member
Apr 7, 2010
7,021
2,038
Alexandria, Va
this can be applied by using terminal emulator to send commands in OP? if rooted, where exactly do you place those files/modules you have to download linked in your op? /system/lib/modules?
 

stantang

Senior Member
Nov 15, 2009
92
13
this can be applied by using terminal emulator to send commands in OP? if rooted, where exactly do you place those files/modules you have to download linked in your op? /system/lib/modules?

Just use Root Explorer or File Manager HD to copy the file to the system/lib/modules folder, then use terminal emulator to run

insmod /system/lib/modules/sio-iosched.ko
echo sio > /sys/block/mmcblk0/queue/scheduler



Sent from my Transformer Prime TF201 using XDA Premium HD app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 33
    I compiled SIO (Simple I/O scheduler) for Prime.
    It seems faster than CFQ to me.
    It was developed mainly for SSD drives!

    Download link
    http://bayfiles.com/file/dvXz/iSxDXK/sio-iosched.ko

    It is for .28 kernel
    FOR 2.6.39 Kernel only! = e.g stock .21 , stock .28 , ANDROWOOK kernel and all roms/kernels based on Asus kernel source!!
    WORKS with Asus TF300 too!

    How to:
    Code:
    su
    mount -o remount, rw /system
    cp sio-iosched.ko /system/lib/modules/
    insmod /system/lib/modules/sio-iosched.ko
    echo sio > /sys/block/mmcblk0/queue/scheduler
    Tadaaa let me know your opinion.

    My source of SIO CODE:
    https://github.com/waninkoko/sio-iosched

    Script for Smanager
    Code:
    #!/system/bin/sh
    insmod /system/lib/modules/sio-iosched.ko
    
    echo sio > /sys/block/mmcblk0/queue/scheduler


    EDIT:ATTACHMENT UPLOADED and SCRIPT for SMANAGER added!!

    Uploaded tweaked ATP with SIO included. thx! it is by tsmt971@yahoo

    new version of atp uploaded
    25.6.2012
    8
    New update for the ATP_Tweak that include loading the System Tune version 0.2 (tuneV0.2.sh) from thread http://xdaforums.com/showthread.php?t=1721799

    DopBox Link: https://www.dropbox.com/sh/c9q2vuwpu84c34a/T3VbSSvHld

    Install: Remove the old application, restart Prime to refresh then intall the APK

    Change logs:

    - Remove the tun.ko and xfm4_mode_tunnel.ko due to error when importing on the ASUS Stock ROM .28
    - Fixed the checkbox status which use the lsmod to list all loaded modules and set the checkbox to be checked.
    - Added the SIO schedule from thread http://xdaforums.com/showthread.php?t=171425
    - Allow only one active schedule on start up. You can choose SIO, DEADLINE, CFQ or NOOP on start up. If you want uncheck/unload IO schedule make sure that choose another IO schedule then uncheck/unload disire one.
    - Load the tuneV0.2.sh on startup. Uncheck the checkbox to restore the original ASUS stock .28 settings.

    Will PM Batoo to put it into OP.

    Your feedback and bug report are much appreciated. Enjoy Tweak Tweak ....
    5
    Good to hear positive feedbacks about the ATP_Tweak. I have also got the permission from stun_de to continue this app. I will start new thread on the App/Theme section for the updated version and up coming tweaks for our Prime.

    Loving my Prime now.
    5
    Can someone please share the script ?

    I no longer have the Prime, but I did write you guys a quick script for it. Here are the contents:

    #!/system/bin/sh
    #created by -viperboy-

    if [ ! -e /system/lib/modules/sio-iosched.ko ]; then
    log -p e -t sioScript "*** sio module doesn't exist, checking sdcard or /data/local for module ***"
    if [ -e /sdcard/sio-iosched.ko ]; then
    mount -o remount,rw /system
    log -p i -t sioScript "*** Mounted /system RW! ***"
    cp /sdcard/sio-iosched.ko /system/lib/modules/
    log -p i -t sioScript "*** Copied module from /sdcard to /system/lib/modules ***"
    elif [ -e /data/local/sio-iosched.ko ]; then
    mount -o remount,rw /system
    log -p i -t sioScript "*** Mounted /system RW! ***"
    cp /data/local/sio-iosched.ko /system/lib/modules/
    log -p i -t sioScript "*** Copied module from /data/local to /system/lib/modules ***"
    else
    log -p e -t sioScript "*** module not on sdcard or /data/local, cannot continue. ***"
    exit
    fi
    else
    log -p i -t sioScript "*** sio module exists in /system/lib/modules ***"
    fi
    insmod /system/lib/modules/sio-iosched.ko
    log -p i -t sioScript "*** insmod sio module ***"
    echo sio > /sys/block/mmcblk0/queue/scheduler
    log -p i -t sioScript "*** set sio scheduler into mmcblk0 ***"
    echo sio > /sys/block/mmcblk1/queue/scheduler
    log -p i -t sioScript "*** set sio scheduler into mmcblk1 ***"
    log -p i -t sioScript "*** sio set! ***"

    This will check /sdcard and /data/local for the module if it doesn't exist in /system/lib/modules already and will move it. It will then insmod, and then set sio scheduler for mmcblk0 and mmcblk1. This will also log everything to logcat. You can see what is happening by doing "adb logcat -s "sioScript" on boot or use aLogcat after boot and filter by name "sioScript". I have made an update.zip that will install this and the module as well, 120 second waiting time suck lol I can't test it, but it should work. Please let me know if you have any issues. OP, feel free to put this in the 1st post if you want.

    https://dl.dropbox.com/u/6621763/sioScript.zip
    2
    I downloaded what you said and its still telling me
    sh: cp: not found

    I made sure to install the files from busybody installer. installation location is /system/xbin. it gave me a few options to where to install. that was the default. or was it supposed to go into /system/bin or doesn't matter?

    edit: changed location to /system/bin. same results sh: cp: not found

    I'm on .28.5 but same kernel version: 2.6.39.4

    the cp command is used to copy the module from your sdcard to the directory it is needed in, since its not on your sdcard (internal memory really) and you already moved it where it is needed manually with root explorer, you can skip that line.

    ---------- Post added at 03:23 AM ---------- Previous post was at 03:21 AM ----------

    I repeat my question: does this affect the ability to receive OTA/official firmware updates?
    I'm not used to these script. From what I understand, the system stays "intact" and the script "force the scheduler to load" on every boot?

    Thanks!

    I had the CFQ module, and received the .28 OTA update fine. I am now using this and dont think it will be a problem either. And if worse comes to worse, you can either remove it, or manually update via BLOB file.