Jump to content

[SOLVED] Market does not download if cache mounted as tmpfs


Recommended Posts

Guest sto1911
Posted (edited)

Hi!

I mounted the /cache as tmpfs to quicken things but I just noticed that market won't download anything. It seems to start downloading, the DL icon flashes several times and then disappears. When I remount cache as yaffs everything is fine again.

On Swedish Spring R3.

Script in post_boot.sh:

umount /cache

mount -t tmpfs -o size=42M,nr_inodes=42k,mode=0770 tmpfs /cache

chown system.cache /cache

Any suggestions?

Edited by sto1911
Guest paraselene
Posted

It works for me for SS RLS4@_@

It's hard to tell the problem, anymore information or pic?

Posted (edited)

The only thing it's used for is installing apps, that's the only thing it can speed up & the difference is small. There's a downside too, it doesn't always delete the temporary apks stored in /cache, so they will use ram until the next reboot. If you have a standard cache partition size then you wont need or want it.

It worked for me on every rom i tested, but sometimes it needs a cold reboot (power off, power on). Also if you fill the cache partition, it'll do that, flash a few times & not install, again a reboot will fix it.

Altering the mount line to this line seems to make it a little faster, but it stops the download icon flashing, you just get a grey arrow.

mount -t tmpfs -o size=42M,mode=0770,noatime tmpfs /cache

Edited by wbaw
Guest sto1911
Posted
It works for me for SS RLS4@_@

It's hard to tell the problem, anymore information or pic?

Are you sure that /cache is a tmpfs? What does the mount command tell you?

The only thing it's used for is installing apps, that's the only thing it can speed up & the difference is small. There's a downside too, it doesn't always delete the temporary apks stored in /cache, so they will use ram until the next reboot. If you have a standard cache partition size then you wont need or want it.

It worked for me on every rom i tested, but sometimes it needs a cold reboot (power off, power on). Also if you fill the cache partition, it'll do that, flash a few times & not install, again a reboot will fix it.

Altering the mount line to this line seems to make it a little faster, but it stops the download icon flashing, you just get a grey arrow.

mount -t tmpfs -o size=42M,mode=0770,noatime tmpfs /cache

Then it seems that it is not worth to keep myself busy with :)

Thank you for your help anyway.

Guest paraselene
Posted (edited)
Are you sure that /cache is a tmpfs? What does the mount command tell you?

Then it seems that it is not worth to keep myself busy with :)

Thank you for your help anyway.

I am sure that /cache is a tmpfs for me

that's what I get for "df"

Filesystem		   1K-blocks	  Used Available Use% Mounted on

tmpfs				   213176		12	213164   0% /dev

/dev/block/mtdblock5	139264	125332	 13932  90% /system

/dev/block/mtdblock6	327040	236904	 90136  72% /data

/dev/block/mtdblock7	  1536	  1156	   380  75% /persist

tmpfs					 4096		 0	  4096   0% /sqlite_stmt_journals

tmpfs				   213176		 0	213176   0% /mnt/asec

/dev/block/mmcblk0p2	516040	306492	183336  63% /system/sd

tmpfs					43008	  6292	 36716  15% /cache

/dev/block/vold/179:1

					   7222480   4822800   2399680  67% /mnt/sdcard
I use same command as you in init.qcom.post_boot.sh
#### START - app install cache partition ramdisk ####

umount /cache

mount -t tmpfs -o size=42M,nr_inodes=42k,mode=0770 tmpfs /cache

chown system.cache /cache

#### END - app install cache partition ramdisk ####

Edited by paraselene
Guest sto1911
Posted
I am sure that /cache is a tmpfs for me

that's what I get for "df"

Filesystem		   1K-blocks	  Used Available Use% Mounted on

tmpfs				   213176		12	213164   0% /dev

/dev/block/mtdblock5	139264	125332	 13932  90% /system

/dev/block/mtdblock6	327040	236904	 90136  72% /data

/dev/block/mtdblock7	  1536	  1156	   380  75% /persist

tmpfs					 4096		 0	  4096   0% /sqlite_stmt_journals

tmpfs				   213176		 0	213176   0% /mnt/asec

/dev/block/mmcblk0p2	516040	306492	183336  63% /system/sd

tmpfs					43008	  6292	 36716  15% /cache

/dev/block/vold/179:1

					   7222480   4822800   2399680  67% /mnt/sdcard
I use same command as you in init.qcom.post_boot.sh
#### START - app install cache partition ramdisk ####

umount /cache

mount -t tmpfs -o size=42M,nr_inodes=42k,mode=0770 tmpfs /cache

chown system.cache /cache

#### END - app install cache partition ramdisk ####

Thanks. I have just restarted modifying the base rom and ATM it seems to be working fine for me too. I'm followin the same steps as before...

Guest sto1911
Posted
Thanks. I have just restarted modifying the base rom and ATM it seems to be working fine for me too. I'm followin the same steps as before...

OK, now it works like a charm, I've rebuilt the ROM step-by-step, tested after each modification and now it works, however I still do not know what the hell was going on.

Thank you anyway for your support!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.