Jump to content
sto1911

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

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
It works for me for SS [email protected][email protected]

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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