[HOWTO] enable jit on the milestone, speedup 20%
I just enabled Dalvik Jit (Just in time compiler) on my milestone.
Linpack score jumped from 4.22 to 5.21 and the system is notably snappier and scrolling speed on for example engadget.com is almost like the 2.0 browser.
I had one reboot since when I mounted my sdcard in usb management but I think my sdcard itself is dying (It hangs when trying to copy a big file) a new card is already ordered (16Gb class 6 for in case we ever get apps2sd )
The droid thread is here
Quick writeup for the milestone:
download files here and copy them on the sdcard (i created a folder /sdcard/jit and put the three files in it)
I also made a folder /sdcard/dalbk where I copied the original files of my milestone
abd pull /system/build.prop .
Open in WordPad/Textpad and add as the last line: dalvik.vm.execution-mode=int:jit
SAVE IT, copy/push it on the /sdcard/jit folder
adb shell
su
mount -o remount,rw /dev/mtd/mtdblock6 /system (for europe milestones, 7 for south american)
cp /system/build.prop /sdcard/dalbk/
cp /system/bin/dalvikvm /sdcard/dalbk/
cp /system/lib/libdvm.so /sdcard/dalbk/
cp /system/lib/libnativehelper.so /sdcard/dalbk/
cd /sdcard/jit
cp -f dalvikvm /system/bin/
busybox chmod 755 /system/bin/dalvikvm IMPORTANT
cp -f libdvm.so /system/lib/
cp -f libnativehelper.so /system/lib/
cat build.prop >/system/build.prop
chmod 644 /system/lib/libdvm.so
chmod 644 /system/lib/libnativehelper.so
chmod 666 /system/build.prop
sync
mount -o remount,ro /dev/mtd/mtdblock6 /system (for europe milestones, 7 for south american)
reboot
Most likely it's not the best idea to do this on a started phone like I did (my phone restarted before I could do the cat build.prop...... so it's probably safer to do this in recovery mode.