Log in

I forgot my password

Poll

What size screen do you think is best for the next device?
12% 12% [ 6 ]
23% 23% [ 12 ]
21% 21% [ 11 ]
13% 13% [ 7 ]
31% 31% [ 16 ]

Total Votes : 52

Latest topics

» Rebuild gator driver to open mali option
Today at 3:06 pm by ilgwt

» Memory, final code and final video (in Spanish)
Today at 9:05 am by Alvaro

» ODROID-A4 IO Board
Today at 6:36 am by tuxfield

» odroid linux kernel config file "hkdk_rtm20_defconfig " missed
Yesterday at 10:09 am by odroid

» odroid-7 source code
Sun May 20, 2012 7:52 am by odroid

» Application source code for Embedded Android Platform based on ODROID-A4
Sun May 20, 2012 2:52 am by odroid

» What is ODROID-BaB project LSED?
Sat May 19, 2012 9:44 am by Alvaro

» CPU Module S5PV310 and K3PE7E700B
Fri May 18, 2012 6:01 am by odroid

» BF040-I50B_N09 Board to Board Connector
Thu May 17, 2012 4:45 am by efung

» CPU Module Schematics
Thu May 17, 2012 2:37 am by odroid

» A stupid question : How can I root the ODROID-A
Wed May 16, 2012 7:05 am by Bingley

» ODROID-PC Ubuntu 12.04 with HDMI
Tue May 15, 2012 12:33 pm by grikukan

» ODROID-A4 IO Board - Oscilloscope
Tue May 15, 2012 11:48 am by tuxfield

» OPEN RFID Tag
Tue May 15, 2012 7:51 am by Alvaro

» About the recovery tool for Odroid-pc
Tue May 15, 2012 6:37 am by odroid


    Enabling JIT compiler on Android 2.1

    Share

    softgear
    Member
    Member

    Devices: ODROID, ODROID-T, ODROID-7(reserved)
    Posts: 13
    Join date: 2010-05-14
    Location: Gwangju Korea

    Enabling JIT compiler on Android 2.1

    Post by softgear on Wed Oct 20, 2010 6:58 am

    Enabling JIT compiler on Android 2.1 for Odroid

    References:
    http://www.uglyn.com:8080/showItem/showDetail/9007534.html
    http://androidforums.com/droid-all-things-root/51027-how-enable-jit.html
    http://github.com/CyanogenMod/android_bionic/tree/froyo/linker

    Descriptions:

    Start from ODROID source code (hk_eclair_2.1_r2.tar.gz).
    Make buildspec.mk and build as the following.
    Code:
    $ cd hk_eclair_2.1_r2
    $ echo "WITH_JIT:=true" > buildspec.mk
    $ hkdkc100_build.sh


    Copy following files to PC (or adb connected computer)
    Code:
    ./out/target/product/hkdkc100/system/bin/dalvikvm
    ./out/target/product/hkdkc100/system/lib/libdvm.so
    ./out/target/product/hkdkc100/system/lib/libnativeheler.so


    On PC,
    Code:
    > adb pull /system/build.prop build.prop

    Edit build.prop
    Add the following line into the last line in build.prop.
    Code:
    dalvik.vm.execution-mode=int:jit

    Save
    Code:
    > adb push build.prop /system/build.prop
    > adb push dalvikvm /system/bin/dalvikvm
    > adb push libdvm.so /system/lib/libdvm.so
    > adb push libnativeheler.so /system/lib/libnativeheler.so
    > adb shell chmod 755 /system/bin/dalvikvm
    > adb shell dalvikvm -h

    You can see "with_jit" option in last part of displayed.
    Reboot


    Test Result:
    I tested with "linpack for android".
    On JIT disabled ODROID, it got about 15secs.
    On JIT enabled ODROID, it got about 10secs.
    The result says that JIT enabled odroid runs 50% faster.


    To turn off JIT:
    change build.prop to
    Code:
    dalvik.vm.execution-mode=int:fast



    Alvaro
    Admin
    Admin

    Devices: ODROID, ODROID-T, ODROID-7, ODROID-A, ODROID-ADK, ODROID-BaB, ODROID-PC, ODROID-E7, ODROID-A4
    Posts: 929
    Join date: 2010-05-09
    Location: Madrid, Spain

    Re: Enabling JIT compiler on Android 2.1

    Post by Alvaro on Wed Oct 20, 2010 7:06 am

    Hi,

    As I can taste it, but look good

    Thanks,

    Alvaro


    _________________
    Alvaro

    Alvaro
    Admin
    Admin

    Devices: ODROID, ODROID-T, ODROID-7, ODROID-A, ODROID-ADK, ODROID-BaB, ODROID-PC, ODROID-E7, ODROID-A4
    Posts: 929
    Join date: 2010-05-09
    Location: Madrid, Spain

    Re: Enabling JIT compiler on Android 2.1

    Post by Alvaro on Sun Oct 24, 2010 5:06 pm

    Hi,

    My results were:

    ODROID(Aug-05-2010) without JIT



    ODROID(Aug-05-2010) with JIT



    ODROID(5-8-2010) without JIT = 5.651 Mflops/s
    ODROID(5-8-2010) with JIT = 8.538 Mflops/s

    There is an improvement of 51.08%

    This coupled with EXT4, you get a much faster


    Attached files obtained from the compilation of the system, so you will soon on getting JIT

    Thanks,

    Alvaro


    Attachments
    ODROID-JIT.zip
    You don't have permission to download attachments.
    (408 Kb) Downloaded 0 times


    _________________
    Alvaro

    David
    Member
    Member

    Devices: ODROID, ODROID-S, ODROID-T
    Posts: 98
    Join date: 2010-08-13
    Age: 26

    Re: Enabling JIT compiler on Android 2.1

    Post by David on Sun Oct 24, 2010 6:18 pm

    Seeing the improvement, could you get a official ROM with JIT?

    What is the improvement of ext4?

    Alvaro
    Admin
    Admin

    Devices: ODROID, ODROID-T, ODROID-7, ODROID-A, ODROID-ADK, ODROID-BaB, ODROID-PC, ODROID-E7, ODROID-A4
    Posts: 929
    Join date: 2010-05-09
    Location: Madrid, Spain

    Re: Enabling JIT compiler on Android 2.1

    Post by Alvaro on Sun Oct 24, 2010 6:22 pm

    Hi David,

    The information on EXT4 be found at: http://odroid.foros-phpbb.com/odroid-discussion-f1/odroid-release-2010_08_05-t260.htm

    Alvaro wrote:
    odroid wrote:Here are simple process to adopt the EXT4 file system for testing.

    1. Change kernel option to support EXT4 file system and compile it and put it to Odroid.
    2. Back up files in Micro-SD card.
    3. Format Micro-SD card's two partitions with EXT4 not EXT3.
    4. Restore back up files.
    5. Change bootargs of uboot from EXT3 to EXT4.

    Please try this process and get back to me.
    When I have some time, I'll also try this.

    Hi odroid,

    The results were:

    Charging time, EXT3 version (08/05/2010): 55 ~ 60 seconds, depending on battery level.

    Loading time EXT4 version (apart from the code posted 22/03/2010): 35 ~ 45 seconds, depending on battery level.

    But I fear that to me is not valid because the current version I can not connect to my network and also the current is more stable. But if it had that hit, no doubt I was with EXT4

    Thanks,

    Alvaro


    Thanks,

    Alvaro


    _________________
    Alvaro

      Current date/time is Tue May 22, 2012 6:10 pm