Hey guys,
I have some doubts in the cache in phone which need your expertise in.
Why is it that sometimes our phone will get sluggish and laggy, and we need to reboot it or clear cache to make it back to fast again? I thought in Android (linux), that ram is needed to run any applications and it does not depend on the space (data storage) we have left in the phone. So what does clearing cache has to do with the performance of the phone?
Thanks for your time.
Anyone have any ideas on this?
What are you talking about specifically? Clearing application cache? Doing this will have ZERO effect on device performance ***EXCEPT*** when running THAT SPECIFIC PROGRAM. It could make that program itself faster or slower to clear the cache. The purpose of cache is to improve performance by making the data available locally, however, if the data required is NOT IN CACHE, then having cache will slow it down as a result of having to process the cache.
Note: If you are running a custom hacked firmware using swap or compcache, then rebooting will clear some things up and make it faster. This is another form of cache that gets cleared. Ultimately, without frequent reboots, use of swap will tend to slow the device down over time, and this is cleared by rebooting.
Erm oki, so is it better to do without swap in this case as i'm using a custom firmware?
Let's say I am running 1 foreground application with 5 background applications (sleep) and another side running 1 foreground application with 15 background applications (sleep). This is just an example. In this 2 cases, will the speed of running the 1 foreground application be the same with the different number of background applications there?
Anyone have any ideas on this?
No one know anything about this issue?
I guess it's because the database gets huge and this may be bad for the performance...
so like a big registry in windows is bad...
maybe also some fragmentation... who knows
Related
I get a black screen and have to wait 15-30 seconds for the launcher and icons to show up when exiting an application. This has happened to me with earlier cyanogenmod versions as well. I was thinking maybe I should wipe and reflash the ROM. Does anyone know the cause of this and any fixes?
Thanks.
Wipe is definitely in order but first you should look at your usage:
1. How many widgets do you have on your screens? How many apps do you have on your phone? Do you use "Advanced launcher"? Obviously all of those factors will make a difference.
2. Get an "Advanced Task Manager" from the market and see how many programs do you have running that you don't need. You can set it up so ATM closes unneeded programs once every 30 min thus freeing up your ram memory, make sure to exclude google stuff and programs that need to be running at all times (like weather widgets)
3. Do you use any 3D graphic intensive apps or watch a lot of video? If not, then 10mb hack is in order and is the best thing to happen to a man since the sliced bread.
4. Go into Spare Parts and activate "Keep home app in memory", it makes a world of a difference but may drain your battery faster, although not a big deal for me.
5. Wipe your dalvik-cache from SD. A regular wipe only goes so far so you need to make sure that you wipe Dalvik-cache every now and then.
All in all, let's face it, our G1s are very limited in terms of CPU power and Ram memory so anything we do will have trade-offs. Cyan's roms push it pretty much to the limit so lag is expected, although can be minimized.
Good luck.
nasman1993 said:
I get a black screen and have to wait 15-30 seconds for the launcher and icons to show up when exiting an application. This has happened to me with earlier cyanogenmod versions as well. I was thinking maybe I should wipe and reflash the ROM. Does anyone know the cause of this and any fixes?
Thanks.
Click to expand...
Click to collapse
get rid off linux swap it slows down the phone cuz cy doesnt use swap in his rom b get Set cpu or overclocking widget.
Thanks for the info borodin.
I wiped and reflashed the ROM, as well as flashing the 10 mb RAM hack. I've also done everything else you mentioned.
Is there a way to get rid of the regular launcher after installing advanced launcher?
Reboot into recovery, make a back-up, drop into console and
Code:
mount /system
mount /system
rm /system/app/Launcher.apk
rm -r /system/sd/dalvik-cache
reboot
Same thing with any other system apps you don't like (such as amazon.mp3, or whatever else). Just make sure to make a back up and stay away from google stuff. If you need to see exact names of apps you can use ls command
I was surprised to see my wife's N1 only had 20 MB of internal memory. She is running Enomther's Rom, which runs great.. I don't think the issue is tied to that.
She has hardly any apps on her phone, and rarely does anything other than work emails (Touchdown) and Facebook/Twitter.
Considering how little she has on the phone, and how little she does with it I, was just really shocked that she would have so little internal memory. She called me just now and stated she has a notification that she missed a text message because she did not have enough memory.
What the heck could be taking up so much memory?
What's the fix? There isn't really anything to delete (that I'm aware of)....
Search seemed helpess with "internal" and "memory" there were WAY too many posts. Please help if you can!
Browser cache might be huge, if she has many sites opened in many browser windows.
Her "not many" apps might be "many" enough for a phone with limited internal memory like Nexus - having ~200MB for apps, data and cache together.
There are exactly 3 solutions:
1) Keep browser in check. It's always a good practice.
2) Use native Froyo method and move apps to SD.
3) Use Apps2EXT method and move apps to SD. You can also move Dalvik-cache to /cache.
Hmm, she has MAYBE 10 apps?
I downloaded a cache cleaner and ran that, it removed maybe 8 MBs? That was this past weekend, and she got that message about low memory today. I doubt she has even opened the browser since then to be honest. Very light user.
I sent enomther a tweet, his reply was:
RT @enomther @CallipH need to implement either dalvik-cache-2-/cache or apps2ext in SpareParts (DataStorage options) ... sysdc-2-/cache is default on cm6
okay, so option 1 is to move dalvik cache to sd, which I think you do in Advanced > Amon's recovery, right? Any ill effects from doing this if I switch roms?..
Option 2, apps2ext... she does not have an ext partition and frankly surprised this is needed... is the nexus that low on memory? My Vibrant has 1.6 GBs. same question, any ill effects if moving to another rom with the apps on the ext? I did that a lot back in the day with the G1. I remember having some issues and having to do fix permissions a lot.
Thanks for all the help man.
Check, what's using the memory. Just go over the apps.
You can't do Dalvik-to-SD, because it requires EXT partition, which you don't have. You can do Dalvik-to-Cache.
There is no hassle in having apps on EXT whatsoever. The only hassle is getting them there.
ROM has nothing to do with application data usage either.
Have you tried wiping the Dalvik cache? Worth ago in case there's some built up crap I spose.
^^ thanks.
^ I did before flashing the rom. Will do it again.
I know it's relative, but how much internal memory would you expect someone to have when they just have about 10 apps?
Depends on the apps. I can count 2 - Google Earth and Motonav, for example - that take together 50MB of space without even counting the cache part. Another 4 apps like that, and you're out of memory (if you don't move them to SD using Froyo's method or old Apps2SD-EXT method).
There's also numerous games that are > 10MB, can easily add up.
I'm curious if Touchdown (Exchzange work email) is doing something funky... I know the apps on her phone and they are all very small. Thank you guys all for the posts.
I think I may format her card and partition it and move the cache to the ext partition and see what her memory looks like after that.
Any issues you guys can think of with that, or other ideas?
Download DiskUsage, and it will give you a good idea of what the problem is...
Sent from my Nexus One using XDA App
I have determined that a lot of my low space issues in the data/data folder are from nearly 120MB of 'system data'. I was confused but willing to work around it since system data is usually pretty important.
However, I recently set up my wife's cappy just like mine (same ROM, Kernel, Modem) and she only has 8MB of system data in her data/data folder
So, now I'm looking to understand what system data goes into that folder. I know I could do a complete clean install to figure parts of it out, but if there is an answer out there it would be much easier than the pain of a clean install.
I'm sure someone will correct me if I'm wrong, but I believe all of your application data (cache & user data, but not the applications themselves) lives in there. If you go through your application list and clear the caches, or use a cache cleaner from the market, you should be able to free up much of that space.
The nice thing about the cache cleaners from the market is that they will sort by cache size so you can see which programs hoard cache space (*coughFacebookcough*)
I've thought of that, and 1 Tap Cleaner only shows 1MB in cache. In fact, since I haven't been using a lot of my apps while figuring this out, nearly all of them are 0 cache.
Is there something that 1 tap cleaner is missing?
Cache is the easiest way to free up space, but I believe all of your user data, databases, etc. live in there as well. If you move some apps to the SD card, I think it takes the user data with it which should free up some space.
You could also go through and clear the user data from apps that have big databases (like Facebook), but this will clear all of your settings and account info. Once you start using it again, this is obviously going to start filling up again but I find it a bit hard to believe that my username, password, and settings really need to occupy the 3.06mb that it's currently taking up on my phone. It must be accumulating crap somewhere along the way.
I've moved some apps to SD w/o really affecting the amount stored there. I have also cleared some data which did help, but doesn't affect the system data.
That's the strangest part. The system data seems to be ~120MB no matter what I do. From all I can find, I only have approx 35MB of actual application user data... the rest is listed as system data, which I can't break down any further.
I've heard of the contacts storage going haywire and taking up space. Have you tried checking and/or clearing that one? Obviously you'll lose anything you don't have backed up with Google.
If that doesn't help, I'm out of ideas short of wiping all of your data and starting over.
Huh... I'll check into the contacts one. I'll report back here with what I find.
Thanks!
Darnit... only 4MB was in contact storage... and it didn't seem to affect my system data.
I guess I'll start preparing to start over. I think I may have done a backup after i fresh installed everything... perhaps I could reinstall that and see what things looked like!
Thunderbolt adds a sqlite_optimize script which defrags databases. That may help reduce the size.
Any time I use Titanium Backup to restore my apps, I do it in chucks and never restore system data since I'm always changing ROMs. For chunks I mean restore apps+data only for apps that need it, then restore apps without for all the rest. Any apps which I don't run never save any data so it saves space.
I have the 8 GB model and over the past couple months it has really started to slow down. Everything from opening apps to changing the screen orientation to unlocking the device was really slow. It was nothing like the buttery smoothness I enjoyed when I first received the device. I recently fixed my lag by clearing the cache using a program called Clean Master. The steps I took are as follows:
1) Download and Install Clean Master from the market
2) When you open the app, there will be 4 choices. Select History
3) Give the app some time to calculate all the cache being used. When it finishes, make sure System Cache is checked and then click the clean button on the bottom.
That's it. After I did that I noticed a dramatic improvement in the tablet's responsiveness. I know that you can also clear your cache out in Settings > Storage > Cached Data. That may or may not do the same thing, but for me I used Clean Master and it worked.
I did a search and couldn't find this posted so I wanted to share it in hopes of helping others out. So for those of you with lag, give this a shot and let me know if it helps you out. If it does, maybe we can discuss why this works and what the root cause of the problem is in the first place.
u dont need to install 3rd party cache cleaner in android now (ICS and JB)
go to settings>Storage>cached data
click on it and clean it.
and please this is well known method so please use search before starting a new thread.
Closed, addressed in other threads
I wiped Dalvik/Art Cache from twrp being curious on my device. The boot took 30 seconds extra but that was okay. But now apps are delayed starting like white screen at first then starting with 1second delay!? Can anyone tell reason and a fix and the theory behind this?
You might know that Android runs apps in a "virtual machine", called Dalvik / ART. In computer science, a general principle to get things to run faster is to pre-compute them, or to re-organize them to make them run faster. It's exactly what's done with the Dalvik / ART cache - bits of program that are used and run more often are translated and organized into a language that your device can run faster and does not have to "re-interpret" each time the app is launched. This process takes some extra time and storage space, so that's why not all apps are necessarily optimized this way, but it's rather the Android OS that identifies recurrent code paths and tries its best to optimize them, based on complex heuristics.
The reason for which people sometimes suggest cleaning this cache is that you always want to make sure that the "optimized" code matches the actual apps and services you're running. If the optimized code doesn't match anymore, you might end up with some severe inconsistencies or some unpredictable bugs.
Over time, as you use your apps, their performance should get optimized again, based on your usage patterns, as the Dalvik / ART cache slowly gets filled up again.