Android @ MoDaCo: UPDATED : Real fix for the "stalling/lagging" problem - Android @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
  • 22 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

UPDATED : Real fix for the "stalling/lagging" problem


#1 User is offline   mimocan 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 30-June 10

Posted 12 July 2010 - 08:40 PM

I have made a custom kernel to mount an ext3 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) / 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.It is reported that you have market download problems if you make it too big, ie larger than 2gb. ( 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

If I am allowed to post it here I will do that. Maybe Paul can shine on this.

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
-- 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 and automounts the ext3 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 use 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:

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

Download v4 (ext4) support:

http://www.multiupload.com/Z8TGXRRNCS

gr, Mimo from Holland

This post has been edited by mimocan: 14 July 2010 - 04:08 PM

0

Sponsored Links


#2 User is offline   bratfink 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 10-July 10
  • Devices:HTC Hero, Pulse, Galaxy S

Posted 12 July 2010 - 08:51 PM

If you upload it to multi-upload you could just put the link up. I look forward to downloading it. Could you also post instructions of exactly how to do so... damn these things would be so much easier with an decent recovery image on our devices....... anyone care to make one :)?

0


#3 User is offline   lp1527 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 26
  • Joined: 29-January 10
  • Devices:Nexus 1

Posted 12 July 2010 - 09:44 PM

Any further details on this? Would love to try... also, will this work on the T-Mobile US Vibrant variant?

0


#4 User is offline   Darkstriker 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 22
  • Joined: 01-July 10
  • Devices:Samsung Galaxy S

Posted 12 July 2010 - 09:46 PM

How about posting this on xda? http://forum.xda-dev...splay.php?f=665

PS: I can host the files you need on my mirror

This post has been edited by Darkstriker: 12 July 2010 - 09:46 PM

Samsung Galaxy S running Doc's V6.1 with Advanced Voodoo v69.2

Samsung Galaxy S GT-I9000 FAQ/Flash HOWTO (on xda)
Samsung Galaxy S GT-I9000 File Mirror
0


#5 User is offline   aeo087 

  • Regular
  • PipPip
  • Group: MoDaCo Ad Free
  • Posts: 67
  • Joined: 02-July 10
  • Location:Oregon
  • Interests:Computer engineering, software, android development
  • Devices:Galaxy S
  • Twitter:@aeo087

Posted 12 July 2010 - 10:12 PM

View Postmimocan, on Jul 12 2010, 13:40, said:

I have made a custom kernel to mount an ext3 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) / 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

If I am allowed to post it here I will do that. Maybe Paul can shine on this.

gr, Mimo from Holland


This sounds very interesting. Please share when you can so we can test this out; if this is works that means buying a fast SD-card would directly benefit your phone's speed!! :) That would make it worth the investment....
I do have some questions, however:
How is this different to what Samsung did having the data in a partition of the internal SD card?
Aren't the lags more related to access-times than memory speed?

0


#6 User is offline   Kilack 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 189
  • Joined: 19-February 10
  • Devices:nexus 1

Posted 12 July 2010 - 11:21 PM

What kind of card did you use? class 6? class 10?

and maybe paul can add this into the kitchen if it indeed works :)

This post has been edited by Kilack: 12 July 2010 - 11:23 PM

0


#7 User is offline   Kahnmao 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 08-February 10

Posted 13 July 2010 - 04:16 AM

View PostKilack, on Jul 13 2010, 07:21, said:

What kind of card did you use? class 6? class 10?

and maybe paul can add this into the kitchen if it indeed works :)



need edit init.rc when bootting auto mount sdcard\sd\ P2(ext3)

(but it wil restore at next reboot )


so...can't do that

0


#8 User is offline   mimocan 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 30-June 10

Posted 13 July 2010 - 05:10 AM

View PostKahnmao, on Jul 13 2010, 04:16, said:

need edit init.rc when bootting auto mount sdcard\sd\ P2(ext3)

(but it wil restore at next reboot )
so...can't do that


This is why I made my own custom kernel to ensure it gets mounted when you reboot.

0


#9 User is offline   mimocan 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 30-June 10

Posted 13 July 2010 - 05:13 AM

View PostDarkstriker, on Jul 12 2010, 21:46, said:

How about posting this on xda? http://forum.xda-dev...splay.php?f=665

PS: I can host the files you need on my mirror


on XDA I am not allowed to post any external links.

I can definitely make use of your mirror, thanks for offering.

0


#10 User is offline   speedofheat 

  • Newbie
  • Pip
  • Group: MoDaCo Ad Free
  • Posts: 6
  • Joined: 03-November 06
  • Gender:Male
  • Devices:Samsung Galaxy S II

Posted 13 July 2010 - 05:37 AM

Looks very promising. Thanks a ton mimocan.

Too bad I need to root my phone for this. I flashed my first firmware yesterday from that sammy FW site but am still too chicken to try rooting my beauty. :)

0


#11 User is offline   vaioboy 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 04-July 10
  • Devices:Samsung Galaxy S GT-i9000

Posted 13 July 2010 - 05:37 AM

Hi, what is the command to mount ext3 partition?

0


#12 User is offline   mimocan 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 30-June 10

Posted 13 July 2010 - 06:24 AM

View Postspeedofheat, on Jul 13 2010, 05:37, said:

Looks very promising. Thanks a ton mimocan.

Too bad I need to root my phone for this. I flashed my first firmware yesterday from that sammy FW site but am still too chicken to try rooting my beauty. :D


you don't need to root your phone to do this, rooting is already provided in the kernel :) but you need to have the busybox tools...

This post has been edited by mimocan: 13 July 2010 - 06:25 AM

0


#13 User is offline   rasp 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 20
  • Joined: 16-May 10
  • Devices:HTC Desire

Posted 13 July 2010 - 06:58 AM

View Postmimocan, on Jul 13 2010, 06:24, said:

you don't need to root your phone to do this, rooting is already provided in the kernel :) but you need to have the busybox tools...


a few questions:
1) is this based off first source code or later source code posted recently?
2) planning to expand the work to include custom kernel mods? like OC/UV stuff?
3) can you provide rooted adb?

This post has been edited by rasp: 13 July 2010 - 06:59 AM

0


#14 User is offline   torsten2010 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 21-October 09

Posted 13 July 2010 - 07:02 AM

Runs really smooth. But i get when i want to install something from market the error "not enough space for the installation". can reproduce this on 2 mobiles.

0


#15 User is offline   speedofheat 

  • Newbie
  • Pip
  • Group: MoDaCo Ad Free
  • Posts: 6
  • Joined: 03-November 06
  • Gender:Male
  • Devices:Samsung Galaxy S II

Posted 13 July 2010 - 07:02 AM

View Postmimocan, on Jul 13 2010, 12:54, said:

you don't need to root your phone to do this, rooting is already provided in the kernel :) but you need to have the busybox tools...

Thanks.

Now to install busybox.

0


#16 User is offline   Bizzie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 12
  • Joined: 07-July 10
  • Devices:Samsung Galaxy S

Posted 13 July 2010 - 07:06 AM

Sounds like a great solution, but what will happen when you connect the Galaxy to USB ? Normally the internal and external SD will be dismounted for USB access. Isn't that a problem?

This post has been edited by Bizzie: 13 July 2010 - 07:07 AM

0


#17 User is offline   torsten2010 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 21-October 09

Posted 13 July 2010 - 07:12 AM

So testet now on 3 phones. There is definttily a bug with this fix & market-you get a error not enough space for isntallation and it won't install any app.
The Problem i think is the write permision on /disk
if you compare this to the /data/data permissions.

This post has been edited by torsten2010: 13 July 2010 - 07:18 AM

0


#18 User is offline   mimocan 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 30-June 10

Posted 13 July 2010 - 07:17 AM

View Posttorsten2010, on Jul 13 2010, 07:12, said:

So testet now on 3 phones. There is definttily a bug with this fix & market-you get a error not enough space for isntallation and it won't install any app.


Ok.

I think I know what the problem is. There is not enough room in the /system partition.

we will make some room there, here it goes:

adb shell
su -
mount -o remount,rw rootfs /
mv /system/media /disk
ln -s /disk/media /system/media


this should fix the bug.

0


#19 User is offline   rasp 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 20
  • Joined: 16-May 10
  • Devices:HTC Desire

Posted 13 July 2010 - 07:17 AM

View Posttorsten2010, on Jul 13 2010, 07:12, said:

So testet now on 3 phones. There is definttily a bug with this fix & market-you get a error not enough space for isntallation and it won't install any app.

did you try to move /data/data/com.android.vending out from ext3 to mmcblkp02?

0


#20 User is offline   oxylos 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 29-June 10
  • Devices:Galaxy S

Posted 13 July 2010 - 07:21 AM

What firmware version is the kernel based on or it is independent?

Do you have to rebuild the kernel every new firmware is released?

0


Sponsored Links

Share this topic:


  • 22 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!