5,605,373 Members 39,615 Now Online
XDA Developers Android and Mobile Development Forum

[FIX] UPDATED - Real fix for the "stalling/lagging" problem

Tip us?
 
mimocan
Old
(Last edited by mimocan; 11th August 2010 at 07:44 PM.) Reason: added download link
#1  
Member - OP
Thanks Meter 3
Posts: 37
Join Date: Jan 2008
Location: Amsterdam
Default [FIX] UPDATED - Real fix for the "stalling/lagging" problem

I have made a custom kernel to mount an ext3/ext4 partition on the sdcard at the boot time.

to be able to use it:

-- you need an external sdcard: partitioned as follows:
- partition 1 (fat32) / for your storage needs
- partition 2 (ext3/ext4) / for program database

This implies that instead of making a symlink to the /dbdata directory, you will make a symlink to the ext3 partition on the sdcard.

Advantages:

-- you have the freedom of creating that partition for your needs ( mine is 1gb)
-- after applying the lag fix posted on the forum I still had that lagging after a while, but now my phone is flying

And here it is:

Prerequisites:

-- an external sd card partitioned in 2
-- the ext3 partition must be the 2nd one, otherwise this won't work, so Partition 1 ishould be fat32, and partition 2 ext3 or ext4
-- use gparted or paragon hard disk manager to make the partitions and format them (just google how to do this)

How to:

-- download the tar file attached to this post, this includes the modified kernel which supports ext3/ext4 and automounts the ext3/ext4 partition when you restart your phone
-- put the phone in download mode, just like updating the firmware
-- fire up Odin and attach the phone to the USB

-- choose only the PDA section and put the downloaded tar into there ( do NOT choose repartition or something else otherwise you will loose settings)
-- it should finish within 5 seconds and wait till the phone is booted

when booted (assuming you already have busybox)

adb shell
su -
busybox cp -rp /data/data /disk/
busybox mv /data/data /data/data.bak
busybox ln -s /disk/data /data/data

to fix market issues:
busybox mv /system/media /disk/
busybox ln -s /disk/media /system/media
reboot

when booted you should see your 2nd partition of your external sdcard is mounted on /disk and your program database in residing in it.

If you do it like this you won't loose any personal data or settings.

Remember this does not depend on any specific firmware, so you are free to try it to on any firmware

If you want to try out the kernel with ext4 support I have attached it below. The same steps should be taken to mount the 2nd partition as ext4, but create the partition as ext4.

My personal experience and benchmark results are showing ext4 is faster than ext3. But ext3 is there for many years and ext4 is stable stated from kernel versions 2.6.3x.


Download v3 (ext3):

http://www.multiupload.com/5QAVQBU6GB

Download v4 (ext4):

http://www.multiupload.com/Z8TGXRRNCS
gr, Mimo from Holland

for the ones who like watching instead of reading Oblivia made some great video tutorials:

Part1: http://www.youtube.com/watch?v=a7fDBJOzQw8
Part2: http://www.youtube.com/watch?v=S26ny2UGBBU
 
Jonas.M
Old
#2  
Member
Thanks Meter 2
Posts: 65
Join Date: Jun 2010
Well first thanks. Will try it when I flash the new firmware

Sent from my GT-I9000 using Tapatalk
 
dahool2008
Old
#3  
dahool2008's Avatar
Member
Thanks Meter 0
Posts: 37
Join Date: Nov 2008
tested...runs completly smooth now. after opening many apps - also smooth. with the old stalling fix-i get after many apps open little lags. but this is great.

good work done.
 
mimocan
Old
#4  
Member - OP
Thanks Meter 3
Posts: 37
Join Date: Jan 2008
Location: Amsterdam
thanks for testing dahool,

next step will be putting apps onto this partition and testing the speed.

am really glad that you see improvements.

Quote:
Originally Posted by dahool2008 View Post
tested...runs completly smooth now. after opening many apps - also smooth. with the old stalling fix-i get after many apps open little lags. but this is great.

good work done.
 
dahool2008
Old
#5  
dahool2008's Avatar
Member
Thanks Meter 0
Posts: 37
Join Date: Nov 2008
Question to anybody who did former use app2sd on a other android mobile. did it drain the battery if the sd card is constantly used? like with this fix here.

a big top is-i has only a class2 16gb sd card and it runs completly smooth with this fix. (opened bis apps like copilot and many games-no lag anymore)
 
Fredrichc
Old
#6  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Jul 2010
Hi Mimo, great job!
I just have a question regarding the SD card. Could you please tell us which card (brand, class) that you are using? I am thinking of buying a new one and would like to be sure that I don't mess it up

Regards,
Fredrich
 
dahool2008
Old
#7  
dahool2008's Avatar
Member
Thanks Meter 0
Posts: 37
Join Date: Nov 2008
@Fredrichc I have a really cheap Toshiba 16gb Class2 and everything is smooth. Don't think you have to pay for a expensive Class 6 card for this fix here.
 
Fredrichc
Old
#8  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Jul 2010
Quote:
Originally Posted by dahool2008 View Post
@Fredrichc I have a really cheap Toshiba 16gb Class2 and everything is smooth. Don't think you have to pay for a expensive Class 6 card for this fix here.
Awesome, thank you for the quick reply!

Regards,
Fredrich
 
NZtechfreak
Old
#9  
Senior Member
Thanks Meter 907
Posts: 2,342
Join Date: Sep 2008
I don't think there is any read-speed difference with the higher class card anyway is there? Isn't it the write speed only that the classes reference?
Twitter: @nztechfreak
Blogs: androidnz.net, blog.clove.co.uk
Facebook: http://goo.gl/baZHQ


 
dahool2008
Old
(Last edited by dahool2008; 13th July 2010 at 08:18 AM.)
#10  
dahool2008's Avatar
Member
Thanks Meter 0
Posts: 37
Join Date: Nov 2008
Attention: There is a bug in this fix. When i want to install from market i get "there is not enough space for this installation". Can reproduce this on two mobiles.
i think it's a permission error on /disk - compare this to normal permissions on /data/data

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Android App Review: Auto Config Free – XDA Developer TV

In this weeks episode of XDA Xposed Tuesday, we talked about customization of … more

Cloupload is a Beautiful and Fully Functional CloudApp Client for Android

If you’re a Mac OS X user who frequently uploads screenshots, … more

Microsoft Finally Brings Remote Desktop to Windows Phone

You may recall that back in October of last year, Microsoft released itsofficial … more

SideControl Gains New Powers through Xposed

You may recall that a little overa month ago, we first talked about SideCutsby XDA Forum … more