[Q] Dalvik to Cache Partition vs SDCard? - EVO 4G Q&A, Help & Troubleshooting

Using a2sd, one can move their dalvik cache to either the cache partition of their internal memory or the sdcard itself. The benefit being clearing up significant space in the /data/ partition for apps.
But my question is, from a performance standpoint, which is better? While internal memory is surely faster than sdcard memory, does using up part of the cache partition with dalvik cause other slowdowns that offset the benefit? Or is the difference between cache partition and sdcard measured in micro-seconds so that we wouldn't even know the difference?
Thanks

UPDATE:
I found that some Market apps did not want to download and install properly when dalvik was on the cache partition but had no issues when on the sdcard.

could you link me to the files i need to do this and tell me how you did it? i would search, but im at work on tapatalk.
thanks!

Rydah805 said:
could you link me to the files i need to do this and tell me how you did it? i would search, but im at work on tapatalk.
thanks!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=715116

Related

Cache out of space

Im trying to install some application updates from the market. They will not download because in CATLOG I see "NOT ENOUGH SPACE LEFT" ... the cache folder has 420K available. I tried uninstalling apps I never use but that didnt help.
What can I do to reolved this? I am using SPRINT LOVERS ROM which doesnt support moving the cache to the SD card. ANY ideas would be appreciated....
Update: I erase the dalvik-cache folder and when it re-created, I have 7.4MB of free space.. BUT the program I need to update is a 15MB download ... I removed a few more programs but still not enough space.. What I ended up doing is using ROOT EXPLORER to DELETE the entire contents of the DALVIK CACHE then do into market and it downloaded.
Is there a way I can determine what programs are using the most space in the cache folder? I need to free up space so I would have to unistall more programs but I only want to uninstall large programs (ones that will give me enough free space back)
Have you wiped your cache partition from the recovery? If that and wiping the market's cache doesn't help you'll probably need to uninstall some apps.
Sent from my PC36100 using XDA Premium App
xHausx said:
Have you wiped your cache partition from the recovery? If that and wiping the market's cache doesn't help you'll probably need to uninstall some apps.
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
Yes I did that.. BUT it rebuilds the cache and its filled up again. is there a utility I can use to see which programs take up the most cache space??
So what this basically means is that you have too many apps installed to be able to put your dalvik cache on the cache partition. By default it's on the data partition, and NOT the cache partition, but some ROMs move it to the cache partition by default. Or maybe you moved it there.
The idea of moving dalvik to the cache partition to free up space for more apps is self defeating. I don't get why anyone does it. The more apps you have, the more space you need for dalvik. So if you've run out of space on /data with dalvik there, you're probably at or will soon pass the point where you have too many apps to fit your dalvik on /cache. If you have few enough apps that you can fit dalvik on /cache, you probably could just leave it on /data anyway.
Basically, either:
1. Keep dalvik and the apps on /data. This may not work for you based on the fact that you've got a lot installed already.
2. Move dalvik to an ext3 partition if you've set one up.
3. Move apps to an ext3 partition, and leave dalvik on /data
4. Move both apps and dalvik to an ext3 partition.
Find the darktremor a2sd thread for details on how to do any of those.

Laggy Desire while opening apps

Hey,
I have extremely annoying issue on my Desire. Everytime I am opening an app there is a delay between tapping the icon and displaying app (full loaded screen of the app). Sometimes it takes 3-5 seconds. You can imagine how bothering it is. I found out that when I do full wipe it is great again but it takes less then two three days and lags are back. The biggest dealy has Handcent, Gallery, etc. Sometimes opening settings is laggy too.
Any idea how to get rid of this lags? I think it started some time after rooting my phone. Could be the problem the number of apps installed on a2sd storage? I have currently 106 apps.
I am really desperate! I love Android but this is not the user experinece I would expect from such a system and such a smartphone!!
I use GingerVillain 2.7 based on CM7. I used CM7 before and it was the same.
Do you use software like setcpu to control the cpu frequency or using scripts/software to control the voltage?
MatDrOiD said:
Do you use software like setcpu to control the cpu frequency or using scripts/software to control the voltage?
Click to expand...
Click to collapse
I used JuiceDefender but I had this problem before I use it. There is also some performance settings in CM7-settings. Do you think the problem is somewhere in CPU settings?
I don't think so. Given the fact that after a wipe it works fine, I'd put my money on your davlik cache. As it grows bigger in size, combined with probably low class sd card, it gets slower. You have some tips&tricks how to move davlik to /data in the development section. Or simply buy a faster sd card.
erklat said:
I don't think so. Given the fact that after a wipe it works fine, I'd put my money on your davlik cache. As it grows bigger in size, combined with probably low class sd card, it gets slower. You have some tips&tricks how to move davlik to /data in the development section. Or simply buy a faster sd card.
Click to expand...
Click to collapse
I have Kingston 16GB class4. I know that class4 is not the biggest number but I read that Kingston is as fast as some other cards class6 and that in fact it is not necessary to have so speed card This is a new want I don't really want to pay for another one...
Move dalvik to /data? Do you think this helps? And a2sd storage will work the same way?
devcager said:
I have Kingston 16GB class4. I know that class4 is not the biggest number but I read that Kingston is as fast as some other cards class6 and that in fact it is not necessary to have so speed card This is a new want I don't really want to pay for another one...
Move dalvik to /data? Do you think this helps? And a2sd storage will work the same way?
Click to expand...
Click to collapse
Moving dalvik cache to internal /data partition often solves perfomance problems. That's why some developers do not move it to sd.
It won't disturb the working of a2sd, because has two different versions:
A2SD: All apps you install will be automatically moved to sd-ext
A2SD+: All apps you install plus dalvik cache will be automatically moved to sd-ext.
So when you move dalvik cache to /data, you are using "only" a2sd, but it's still working the same way.
But before this I would try wether wiping dalvik cache in recovery solves your problem.
MatDrOiD said:
Moving dalvik cache to internal /data partition often solves perfomance problems. That's why some developers do not move it to sd.
It won't disturb the working of a2sd, because has two different versions:
A2SD: All apps you install will be automatically moved to sd-ext
A2SD+: All apps you install plus dalvik cache will be automatically moved to sd-ext.
So when you move dalvik cache to /data, you are using "only" a2sd, but it's still working the same way.
But before this I would try wether wiping dalvik cache in recovery solves your problem.
Click to expand...
Click to collapse
Oh. Thanks! I will try! But I am afraid that I tried an app moving dalvik in the past and my phone got extremely laggy and buggy. Maybe it was not compatible app with my ROM
As I said when I do full wipe (so wiping dalvik as well) it is quick several days but then it gets back to laggy phone.
GV 2.7 - I have dalvik cache on Internal memory with Cm7r2 Hboot - no delays like you have, instead instant opening.
You can move it easily by using any terminal (I have better Terminal Emulator Pro).
Commands:
a2sd cachesd - moves Dalvik to SD
a2sd cachesdreset - moves Dalvik to SD, but firstly it wipes it.
a2sd nocache - moves Dalvik to Internal NAND.
a2sd nocachereset - moves Dalvik to Internal, but firstly it wipes it.
Personally, I prefer the "reset" commands.
davebugyi said:
GV 2.7 - I have dalvik cache on Internal memory with Cm7r2 Hboot - no delays like you have, instead instant opening.
You can move it easily by using any terminal (I have better Terminal Emulator Pro).
Commands:
a2sd cachesd - moves Dalvik to SD
a2sd cachesdreset - moves Dalvik to SD, but firstly it wipes it.
a2sd nocache - moves Dalvik to Internal NAND.
a2sd nocachereset - moves Dalvik to Internal, but firstly it wipes it.
Personally, I prefer the "reset" commands.
Click to expand...
Click to collapse
And when it is not enough space on internal??
devcager said:
And when it is not enough space on internal??
Click to expand...
Click to collapse
Change your partition table. With aosp rom you waste almost 150mb on /system. That is one hefty davlik with 110 apps approximately.

[Q] Can the Cache partition be increased in size?

Hi Experts!
I have an HTC Wildfire rooted with CM 7.1.0.1 stable installed. Love my phone and Cyanogenmod but I have an irritating problem with downloading large apps from the Market app. Basically there is not enough space on internal storage to store the file.
After some searching and investigation I think I can see the problem. The market uses the Cache partition as a temporary store for downloads. The dalvik cache is also located on the partition. Unfortunately the dalvik cache is so large that it is using up pretty much most of the cache partition (currently 31.62MB used leaving 8.38MB free and there is nothing else but the dalvik cache taking up space at present).
So I'm not sure how to resolve this. I've seen some posts where people have moved the dalvik cache and/or the Market download folder to SD but I'm reluctant to do that as I can imagine this will slow things down a lot plus cause problems if I remove the SD card, turn on mass storage mode etc.
This leaves me to the conclusion that I need a bigger cache partition. So I'd like to know, is this even possible or recommended? If not what other options do I have?
Thanks,
Neil
Try this
http://forum.xda-developers.com/showthread.php?t=1233340
Thanks for that Guide, that certainly looks helpful, although a pain to have to wipe my system and start over .
Something unusual I have noticed is that I seem to have two Dalvik-Cache's. One is on /cache/dalvik-cache the other is on data/dalvik-cache. They both have contents too so I would assume they are both used!
elneilios said:
Thanks for that Guide, that certainly looks helpful, although a pain to have to wipe my system and start over .
Something unusual I have noticed is that I seem to have two Dalvik-Cache's. One is on /cache/dalvik-cache the other is on data/dalvik-cache. They both have contents too so I would assume they are both used!
Click to expand...
Click to collapse
Try to wipe dalvik-cache and see if it appears again. Dalvik cache should be on data partition, but if you flash your roms through RomManager than it moves dalvick-cache to /cache for some reason.
Sent from my HTC Wildfire using xda premium
Did it work ok then?

[Q] SD ext not found in dalvik cache wipe

Hi I had a quick question.
When I flash between cm9 nightlies using cwm touch recovery I'm always in the habit of wiping cache partition and also dalvik cache. However I've noticed that with dalvik cache it always says SD ext partition not found but immediately after it'll say the wipe was completed. I understand the galaxy nexus is all internal memory but cwm actually wiping dalvik cache even with this error?
Thanks in advance for your answers.
Sent from my Galaxy Nexus
Yes, it's still wiping fine. It's just not wiping a certain partition that we don't have and have no need for. You can be sure Dalvik is being wiped because when you reboot it gives you the "android is upgrading" screen. That's the dalvik cache being rebuilt.
As the GNexus "only" has a row of system memory chips, there is no sd-ext. to be harvested, and filed down.
If, however, the GNexus would have an internal SD, it would have have an sd-ext.
But, as I said, as it is the ROM AND the userdata carrier, and is always mounted, and therefor does not need an ext
Hope I could help!

low storage (dalvik cache vs Android 4.1.2 vs MIUI ROM)

Hi,
I was thinking about how to solve low storage problems on my HTC Desire, I have a question about Link2SD in relation to MIUI ROM and Android 4.1.2
To increase the available storage, in my previous ROM (CM7.1 on Android 2.3.7) I used Link2SD in order to move to the SD-EXT partition either apk, libs and dalvik cache.
I installed Link2SD even on my new MIUI ROM on Android 4.1.2.
I'm able to move either apk, libs and dalvik cache to SD_EXT as expected BUT (!) as soon as I restart the phone I'm prompted with a screen saying "optimizing apps" and if I open again Link2SD I see that:
apk and libs are still on the SD-EXT partition
dalvik cache has been moved back to internal memory.
Sincerely I don't know if this has to be addressed to Android 4.1.2 or MIUI ROM
Any suggestion about how to actually move dalvik cache to EXT ??
Thanks in advance for your support
Don't use Link2sd.
Use this script. It will move app and dalvik to sd-ext.
http://db.tt/m4sQLDOI
abaaaabbbb63 said:
Don't use Link2sd.
Use this script. It will move app and dalvik to sd-ext.
http://db.tt/m4sQLDOI
Click to expand...
Click to collapse
thanks for your reply.... but what does this script do?
will it move only user app?
will t let me choose which apps must be moved? or does it move in a massive way?
The problem is not that Link2SD cannot move dalvik to EXT but the problem is that MIUI/Android move back dalvik to internal memory after reboot.
Does this script solve that too?

Categories

Resources