Go Back   Android Forums > Android Phones > LG Ally > Ally - All Things Root

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

Closed Thread
 
LinkBack Thread Tools
Old March 24th, 2011, 04:00 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Thumbs down Dalvik-Cache: Fatal design flaw or just boneheaded oversight?

Okay, I really, just have to vent about this. Somehow, in the Google-perceived history of the internet, nobody has ever actually labeled the Dalvik-Cache system/folder/"bug" as a fatal design flaw in the Android architecture? Really? It's pretty obvious in my opinion...

Think about it. Dalvik-Cache is a folder that:
  • is at least 1.0 times the size of all installed APKs (often more than 1x, as below)
  • does not get cleaned-up - EVER - by the Android OS
  • is transparent to the user, just mysteriously consuming space on the phone
  • lives in the USER data structure (on-phone storage), instead of on the cache partition
  • has absolutely no facility for any utility apps, or for the user, to clean up the mess in the folder
  • can only increase in size, since if an app is uninstalled, its corresponding (and equally large) dalvik-cache entries do not get erased

(EDIT: Please jump to THIS post: Dalvik-Cache: Fatal design flaw or just boneheaded oversight? to see where we stand in this discussion at the moment)

It's just mind-bogglingly ridiculous... especially on as hardware-limited phone as the Ally, I would expect (not just "hope") that a folder titled "cache" of any kind would have limitations imposed on it. To have the effect of hardware limitations be "slower performance", i.e. the phone would have to re-generate Dalvik-cache entries for rarely-used apps it had to prune-off due to imposed cache limitations... that would make sense. But no... it has no limitations, and very frequently overruns the amount of storage available to the user.

Before I rooted, I found myself constantly out of storage, with a small number of apps installed. It didn't make sense... it first occurred to me when I worked to manually tally up the reported amount of storage each app took up. The amount totaled up to about 25MB for all my apps. So why, if I have 150MB of storage, do I have 15MB free? I found it: 80mb in Dalvik-Cache, and the rest is app data. WTF? 80MB of cache for 25mb of apps? Cache - that is, something that can be re-generated with zero penalty of lost data? Can we be serious here? Why isn't this cache being maintained by the OS? Why is it permitted to balloon to 75% of user-data space, completely unchecked? And no way to clear it, without erasing all data by doing a factory reset. So it's a ticking time-bomb that will eventually fill the device's onboard memory even with no apps installed (all uninstalled).

I understand the purpose of Dalvik-Cache. To place an optimized, compiled copy of the apps that run on the Android OS. That makes sense. But with there being no maintenance of this folder, free-wheeling in the same way as MSIE's "Temporary Internet Files" folder (which has obscene limitations and often stores upwards of 30,000+ useless, outdated cache files with little to no maintenance, and is often the source of computer slowness on IE-users' systems)... it's an OBVIOUS design flaw that really should have been caught and fixed before Android even made it into production.

[/rant]

edit: Final statements on this wildly out-of-control discussion: http://androidforums.com/lg-ally/304806-dalvik-cache-fatal-design-flaw-just-boneheaded-oversight-2.html#post2476584

Quote:
Take it or leave it, but this is my final comment in this thankfully-now-slightly-more-sane topic:
The dalvik-cache folder is a cache folder. It generates caches of applications (apk files) that are run on the device. Since these entries are generated on demand, the dalvik-cache should be maintained by the OS at a user- or OS-configured size limit, and prune unused (least-recently-accessed) entries to maintain that size limit. If that application is launched after the cache file is removed, it will simply re-generate the cache file - expected behavior for a rarely-used app. It should not store cache files for rarely-accessed applications in the same way that it stores frequently-used and system applications. And finally, this cache folder should be located outside of user-space, on the "cache" partition, so the user has full control over the data on his or her device. These issues all come to light on low-spec-but-otherwise-useful devices such as the LG Ally, which would not have such a serious storage limitation if not for dalvik-cache.

If anyone wants to argue a single one of the points in the above paragraph, I politely ask that you quote the relevant statement and stay on topic, as to avoid the complete clusterf**k that started off this thread.

FalconFour is offline  
Last edited by FalconFour; March 24th, 2011 at 10:47 PM.
sponsored links
Old March 24th, 2011, 06:40 PM   #2 (permalink)
Junior Member
 
Join Date: Aug 2010
Posts: 31
 
Device(s): LG Ally Velocity 1.1
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

Really?
BugsyM is offline  
Old March 24th, 2011, 06:42 PM   #3 (permalink)
ROM Developer
 
j2cool2012's Avatar
 
Join Date: Nov 2010
Location: In the computer
Posts: 487
 
Device(s): LG Ally running StormDroid/Velocity, Samsung Fascinate running ICS "CM9"
Carrier: Not Provided

Thanks: 173
Thanked 213 Times in 123 Posts
j2cool2012@gmail.com
Default

Really?
j2cool2012 is offline  
Old March 24th, 2011, 06:50 PM   #4 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by BugsyM View Post
Really?
Quote:
Originally Posted by j2cool2012 View Post
Really?
Really.
FalconFour is offline  
Old March 24th, 2011, 07:01 PM   #5 (permalink)
ROM Developer
 
j2cool2012's Avatar
 
Join Date: Nov 2010
Location: In the computer
Posts: 487
 
Device(s): LG Ally running StormDroid/Velocity, Samsung Fascinate running ICS "CM9"
Carrier: Not Provided

Thanks: 173
Thanked 213 Times in 123 Posts
j2cool2012@gmail.com
Default

No... NOT really.
j2cool2012 is offline  
Old March 24th, 2011, 07:18 PM   #6 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by j2cool2012 View Post
No... NOT really.
Well aren't you being helpful! Thanks for your insightful contribution to the topic.

( Sarcasm self-test complete, you may now exit the topic. )
FalconFour is offline  
Old March 24th, 2011, 07:31 PM   #7 (permalink)
Member
 
Join Date: May 2010
Posts: 463
 
Device(s):
Carrier: Not Provided

Thanks: 114
Thanked 71 Times in 50 Posts
Default

Quote:
edit: and don't even get me started on people that actually trust Android's background-task manager and say you "don't need a task killer"... ahahahaha. Dalvik-Cache is proof of Google's resource-management negligence here, so you can't possibly tell me task killers aren't necessary.
Task killers aren't necessary.
__________________
HTC Incredible - w/MIUI ROM.
HTC Incredible 2 - w/MIUI ROM.
flyinjoe13 is offline  
Old March 24th, 2011, 07:32 PM   #8 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by flyinjoe13 View Post
Task killers aren't necessary.
Is that all this forum is good for? One line trolls? Well, here's my contribution: "yes they are"
FalconFour is offline  
Old March 24th, 2011, 07:41 PM   #9 (permalink)
Member
 
Join Date: Nov 2010
Location: South Carolina
Posts: 324
 
Device(s): LG Ally (Dev), Droid Incredible
Carrier: Not Provided

Thanks: 25
Thanked 71 Times in 43 Posts
Default

Dalvik cache is what holds all installed apps so the OS can run them, it opens the apk and runs it like an executable, and runs from there, its not a flaw, and isnt a problem, Dalvik cache is a genius idea, and is even being adopted by Blackberry in their OS5
Afteraffekt is offline  
Old March 24th, 2011, 07:44 PM   #10 (permalink)
Member
 
Join Date: May 2010
Posts: 463
 
Device(s):
Carrier: Not Provided

Thanks: 114
Thanked 71 Times in 50 Posts
Default

I have 383 posts to your 26 and i'm a troll?

But back on point....if you want to believe they are, more power to you, but the fact remains that they are not necessary. Necessary implies my phone wouldn't run without one, but my phone has run just fine without one since the day I bought it.
flyinjoe13 is offline  
sponsored links
Old March 24th, 2011, 07:49 PM   #11 (permalink)
Member
 
Goonie21's Avatar
 
Join Date: Jul 2010
Location: Memphis
Posts: 177
 
Device(s): Samsung DROID Charge TW3@K3D 2.2 ; Samsung Fascinate; LG Ally running on bacon
Carrier: Not Provided

Thanks: 53
Thanked 42 Times in 31 Posts
Default

Quote:
Originally Posted by FalconFour View Post
Is that all this forum is good for? One line trolls? Well, here's my contribution: "yes they are"
This is not windows.
it doesn't matter how much stuff is running in the background your phone wont slow down. Task killer interferes with automatic updates and email.
Goonie21 is offline  
The Following User Says Thank You to Goonie21 For This Useful Post:
Trident (March 24th, 2011)
Old March 24th, 2011, 07:49 PM   #12 (permalink)
Member
 
Join Date: Mar 2010
Posts: 358
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 250 Times in 78 Posts
Default

Isn't a little early for April Fools jokes?
__________________
Come join us on irc.andirc.net #thunderbolt or use our webchat http://chat.andirc.net:9090/?channels=#thunderbolt
Code:
Linking to pirated/illegal software: It's a shame I actually have to touch on this. Don't do it. It will be removed and repeat offenses will result in a ban.
http://androidforums.com/introductions/704-site-rules-guidelines.html
jcase is offline  
The Following User Says Thank You to jcase For This Useful Post:
Trident (March 24th, 2011)
Old March 24th, 2011, 07:49 PM   #13 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by Afteraffekt View Post
Dalvik cache is what holds all installed apps so the OS can run them, it opens the apk and runs it like an executable, and runs from there, its not a flaw, and isnt a problem, Dalvik cache is a genius idea, and is even being adopted by Blackberry in their OS5
Well, like I said, I understand the function of Dalvik-Cache. Did you actually read the post and what's wrong with the cache, or are you just sponsored by Google to cover up the flaws with "as-designed" tags?
FalconFour is offline  
Old March 24th, 2011, 07:53 PM   #14 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by Goonie21 View Post
This is not windows.
it doesn't matter how much stuff is running in the background your phone wont slow down. Task killer interferes with automatic updates and email.
Christ, people, is this whole forum sponsored by Google, or what? Yes, it does slow down (and crash) the phone... not to mention untold numbers of unwanted partial-wakeups caused by unwanted applications that can only be truly CLOSED with a task-killer... Android does a piss-poor job of managing tasks, plain and simple. It keeps all available RAM occupied by unwanted apps in their current state, so if--... wait, are we seriously launching into this debate? No, screw that, this topic is about dalvik-cache. Can you debunk a single one of the flaws in OP, or are you just rambling rambling rambling about stuff you haven't actually researched?
FalconFour is offline  
Old March 24th, 2011, 07:56 PM   #15 (permalink)
Premium Member
 
Trident's Avatar
 
Join Date: Jan 2010
Location: Virginia Beach, VA
Posts: 3,036
 
Device(s): HTC Thunderbolt, Motorola Droid, LG Ally, Logitech Revue, HTC Incredible
Carrier: Not Provided

Thanks: 386
Thanked 2,333 Times in 414 Posts
Contact for info
Default

Where, pray tell, is YOUR research?
__________________



HTC Thunderbolt

Please do not PM me with phone related support queries, that's what the forums are for!

Site Rules/ Guidelines & Zero Tolerance Policy

Trident is offline  
Old March 24th, 2011, 07:58 PM   #16 (permalink)
Member
 
Goonie21's Avatar
 
Join Date: Jul 2010
Location: Memphis
Posts: 177
 
Device(s): Samsung DROID Charge TW3@K3D 2.2 ; Samsung Fascinate; LG Ally running on bacon
Carrier: Not Provided

Thanks: 53
Thanked 42 Times in 31 Posts
Default

I have never had a problem without using a task manger, And there is nothing wrong with Dalvik cache at all.
Goonie21 is offline  
Old March 24th, 2011, 08:01 PM   #17 (permalink)
Member
 
Join Date: May 2010
Posts: 463
 
Device(s):
Carrier: Not Provided

Thanks: 114
Thanked 71 Times in 50 Posts
Default

Going by your logic that anyone who defends Android is sponsored by Google, I guess that means you are sponsored by Apple. So if that is the case, what are you doing here?

But back on point again.....my phone has never slowed down. My phone has never FC'd. My phone has never partially woken up by an unwanted app. And oddly enough, I don't have a task manager. How can that be????
flyinjoe13 is offline  
The Following 2 Users Say Thank You to flyinjoe13 For This Useful Post:
death2all110 (March 24th, 2011), Trident (March 24th, 2011)
Old March 24th, 2011, 08:02 PM   #18 (permalink)
Premium Member
 
Trident's Avatar
 
Join Date: Jan 2010
Location: Virginia Beach, VA
Posts: 3,036
 
Device(s): HTC Thunderbolt, Motorola Droid, LG Ally, Logitech Revue, HTC Incredible
Carrier: Not Provided

Thanks: 386
Thanked 2,333 Times in 414 Posts
Contact for info
Default

On the task killer subject.. please refer to this article. You are terribly misinformed.
Trident is offline  
The Following 3 Users Say Thank You to Trident For This Useful Post:
death2all110 (March 24th, 2011), j2cool2012 (March 24th, 2011), solo65impala (March 24th, 2011)
Old March 24th, 2011, 08:15 PM   #19 (permalink)
Member
 
Join Date: Nov 2010
Location: South Carolina
Posts: 324
 
Device(s): LG Ally (Dev), Droid Incredible
Carrier: Not Provided

Thanks: 25
Thanked 71 Times in 43 Posts
Default

Quote:
Originally Posted by FalconFour View Post
Well, like I said, I understand the function of Dalvik-Cache. Did you actually read the post and what's wrong with the cache, or are you just sponsored by Google to cover up the flaws with "as-designed" tags?
YOu do realise that theres 40 apps on your phone that you dont see? yea, go on sir
Afteraffekt is offline  
Old March 24th, 2011, 08:17 PM   #20 (permalink)
Premium Member
 
death2all110's Avatar
 
Join Date: Jun 2010
Location: Illinois, US
Gender: Male
Posts: 1,979
 
Device(s): Samsung Galaxy S4; LG Spectrum
Carrier: Verizon Wireless

Thanks: 162
Thanked 1,190 Times in 479 Posts
Send a message via Yahoo to death2all110 deatheatergrim@gmail.com
Default

Trolololololol

Sorry. Had to.

But are you serious?

This isn't funny guy. Its only the 24th. Come back on the 1st, maybe?
__________________
I help maintain CM11 for the LG Spectrum.

LG VX8300>LG Decoy>LG Dare>LG Ally>Droid2>LG Ally>HTC Droid Incredible>HTC Thunderbolt>HTC Droid Incredible>Samsung Galaxy Nexus>LG Spectrum>Moto Droid RAZR Maxx>Samsung Galaxy S4


I'm located in: Computers&IT, LG Spectrum, XDA Developers; AllyIRC My Blog


Please press button, and please consider donating to my energy drink fund.Thanks!
death2all110 is offline  
The Following 2 Users Say Thank You to death2all110 For This Useful Post:
j2cool2012 (March 24th, 2011), Trident (March 24th, 2011)
sponsored links
Old March 24th, 2011, 08:22 PM   #21 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by flyinjoe13 View Post
Going by your logic that anyone who defends Android is sponsored by Google, I guess that means you are sponsored by Apple. So if that is the case, what are you doing here?

But back on point again.....my phone has never slowed down. My phone has never FC'd. My phone has never partially woken up by an unwanted app. And oddly enough, I don't have a task manager. How can that be????
No, not anyone that defends Android. I do it all the time. Just anyone that completely ignores the matter in the topic and pounces on one "by the by..." line. That's pretty trolly IMO. I think Android kicks Apple's ass in most areas. But there are these glaring design flaws that just make me wonder "who was responsible for this aspect, and were they sacked yet?".

"My phone has never slowed down... never FC'd... never partially woken up" - alright, let's go through these completely Disneyland statements, shall we?
- never slowed down: OK, so you can seriously tell me that you hold a stopwatch to your phone ever time you tap one of your apps? o.O OK, I didn't think so. Disneyland #1 gone.
- never FC'd: I can almost believe this one, so this Disneyland can stay. You must not use many apps or do much hacking.
- never partially woken up: You can't even test this. I haven't yet seen a debug app that logs every partial wake-up event (that happen numerous times every hour). And for that matter, if it's never partially woken-up, then you must not be receiving any email or alarm notifications, or incoming phone calls, or text messages, or... [...] ... you see the point here? Partial wake-ups are things apps do to collect data and update their state, set off alarms, notifications, etc. It happens all the time, and it happens in excess for unwanted running apps (i.e. Amazon MP3, voice search, etc). Task killers close these programs unless they're wanted.

And task killers can be configured to ignore apps you DO want - for example, I want my Handcent SMS and TouchDown mail client to stay open when I do the (admittedly rare) "end-all" function. But I do "end-all" to clean up wasted memory, which always stays at 100% utilization until I close the background clutter that collects over the days. Task killers are practically a necessity due to the inability to signal to the OS that "I'm actually done with this app, it can go away now". Otherwise it says "dormant", unknowing that I'm done using it, unsure if I'll want to use it again.

Now, about that Dalvik-Cache thing. Strange, I'm getting a pretty huge deja-vu vibe from this topic... as if we've been here before. o.O I've gotta wonder, you're right, it's not April 1st yet, so how the hell are you all completely missing the point and acting like "the counter-point is obvious"... like, that the supermassive Dalvik-Cache folder eating up 75% of your phone storage is somehow a non-issue? *uber confused*
FalconFour is offline  
Old March 24th, 2011, 08:26 PM   #22 (permalink)
Premium Member
 
Trident's Avatar
 
Join Date: Jan 2010
Location: Virginia Beach, VA
Posts: 3,036
 
Device(s): HTC Thunderbolt, Motorola Droid, LG Ally, Logitech Revue, HTC Incredible
Carrier: Not Provided

Thanks: 386
Thanked 2,333 Times in 414 Posts
Contact for info
Default

That super long message is cool and all, but I'm still waiting on your proof and research.
Trident is offline  
The Following User Says Thank You to Trident For This Useful Post:
McLovlein13 (March 24th, 2011)
Old March 24th, 2011, 08:33 PM   #23 (permalink)
Member
 
Join Date: May 2010
Posts: 463
 
Device(s):
Carrier: Not Provided

Thanks: 114
Thanked 71 Times in 50 Posts
Default

I use plenty of apps, but I don't keep unwanted apps on my phone so maybe you are the one who needs a lesson in hacking if you still have them on your phone. I have removed or frozen all of those unwanted apps ages ago. It's a pretty simple thing to do so instead of complaining about how you need a task manager to kill all of them, why don't you do some research (since you seem to be so fond of doing reasearch) on how to remove them.

As for why the dalvik cache eating up 75% of my storage space is a non-issue, that's easy. I take 10 seconds out of my day if I have been installing\uninstalling apps, go into recovery and wipe the dalvik cache. Problem solved. If that is such a big hassle to you that it requires this meaningless rant about dalvik cache, then I think you are the one with the problem, not us.
flyinjoe13 is offline  
Last edited by flyinjoe13; March 24th, 2011 at 08:48 PM.
Old March 24th, 2011, 08:43 PM   #24 (permalink)
ROM Developer
 
savoxis's Avatar
 
Join Date: Aug 2010
Location: Pacific NW
Posts: 811
 
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided

Thanks: 259
Thanked 707 Times in 265 Posts
Send a message via MSN to savoxis Send a message via Skype™ to savoxis savoxis@gmail.com
Default

Let me clear up a few things here.


Task Killers:

The Android task killer handles all applications life cycles, when an application in in the Foreground it takes priority over all Background applications and services, allowing it to have the resources needed to operate. Google setup the lifecycle for applications with performance in mind, it allows for an application not being used to be classified as a empty process, storing it in cache (not ram) so it can be called back up to the same screen it was on when it whent to an empty process, when you are not using an application it doesnt take any of your ram, or (very many) processes, or even very much space
When you use a task killer the android system will often try to get the application that it had "stowed away" back and in doing so it will will bring the application to a higher level in the lifecycle, thus using more of your ram and proc, thus eating your battery.
Basics of Android Development : Android Application Lifecycle | Android Competency Center


Dalvik-Cache:

For those not familiar with java, it is a cross platform language, and android devices are all different platforms due to vastly differing hardware and software versions. When you fire up your phone for the first time, or install an application the system compiles each application into executable code for your device. This is necessary. And due to the nature of java, the dex files created are often larger than the application.
When you uninstall an application thru the Android OS, it removes the dex file, the data, and the apk.
When you uninstall an application by just removing the apk, you still have the dex, and the data.
The only time your dalvik-cache will be incorrect is when you manually remove apks without removing the others. And ofcourse since android phones ARE NOT ROOTED the folks at google obviously realized that there is no reason they should have this location monitored, or cleaned. Since. You dont need to rebuild the dalvik for an application-the executable code will never have to be changed for your platform.
This being said the only reason you would have to manipulate your dalvik-cache is when you have been doing things that you technically should not do.

If you take away anything from this please remember:
Dont go wiping your dalvik a bunch thinking it will improve performance.
Only wipe your dalvik if you have MANUALLY removed applications
Task killers will eat your processes and visa vi your battery.
__________________
Come join us on IRC!
The mAndroid Connection
VZW Galaxy Nexus CM9 Nightly
There Aint No Such Thing As A Free Lunch
Donate
savoxis is offline  
The Following 4 Users Say Thank You to savoxis For This Useful Post:
dots (March 24th, 2011), j2cool2012 (March 24th, 2011), roboots21 (March 25th, 2011), Tempusfugit (March 24th, 2011)
Old March 24th, 2011, 08:45 PM   #25 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by Trident View Post
That super long message is cool and all, but I'm still waiting on your proof and research.
Hey, I've got teh uber respect for you and all the work on Velocity (which has saved my phone from being frustratedly snapped in half a few times now)... using v1.0 now, and the "move Dalvik-Cache to cache partition" function has saved my phone from one of the aforementioned snapinhalf moments I seriously do not take lightly to my phone telling me it's out of storage when I have very few apps installed (compared to what I've seen on other phones), and moved most of them to SD... so that "move" function is a lifesaver. No bugs so far either, no FCs or hangs. You've done some great work there

... Which makes me wonder why you're missing the point, or even questioning this? All the research and proof is laid out in the original topic... it's pretty common knowledge that Dalvik-Cache is an unmanaged, runaway mess, with the mere Googling of "dalvik-cache" resulting in pages of "oh, have you tried clearing Dalvik-Cache?"... "clearing dalvik-cache is harmless, just reboot"... or, hell, let's just run that search now, why don't we?
"[How to] Clear Dalvik Cache" ... "What exactly is the Dalvik Cache and when do I need to clear it?" ... "Clear Dalvik Cache - xda-developers" ... "it seems like my internal memory /data is declining, though bit by bit (im using apps2sd). it was recently 84mb free but now just 75mb free" ... "Just wondering because i always see it during my nandroid backup and usually takes the longest"...

Seems pretty common knowledge to me, which stumps me as to why all the folks in this topic so far are completely... and I mean completely... dodging the entire issue. Do you guys somehow think I'm an Apple fanboy bashing one aspect of Android in order to belittle the whole platform? No... I'm just ranting about one poorly-conceived aspect of the OS. I think it's pretty common knowledge that Dalvik-Cache consumes way more storage than is appropriate for its function... I mean, if I could say "limit Dalvik-Cache to 25% of storage", and it would prune off the unused app cache files... that would make sense! I would want it to remove the cache files for apps I never touch, the preinstalled ones, or the apps I only use every now and then (like Terminal Emulator - I only use that when I have a problem I want to solve, certainly not every day, necessitating a persistent cache file!). That is the way I'd think cache would be implemented. It would just create a cache file when it notices one isn't there, and only store "X-amount" of cache files, deleting the least-recently-used one when it needs more room. Makes sense, right?
FalconFour is offline  
Old March 24th, 2011, 08:48 PM   #26 (permalink)
Member
 
Join Date: Nov 2010
Location: South Carolina
Posts: 324
 
Device(s): LG Ally (Dev), Droid Incredible
Carrier: Not Provided

Thanks: 25
Thanked 71 Times in 43 Posts
Default

You are a flipping troll, even if you believe what you are saying lol! Trident, Savoxis, Death2all are all Rom developers for the Ally and other phones... So how can you say we dont know what we are doing, when everything you have learned about the ally you learned from us?
Afteraffekt is offline  
Last edited by Afteraffekt; March 24th, 2011 at 08:51 PM.
The Following User Says Thank You to Afteraffekt For This Useful Post:
inception (March 24th, 2011)
Old March 24th, 2011, 08:50 PM   #27 (permalink)
Junior Member
 
Join Date: Jan 2011
Location: U.S.A
Posts: 38
 
Device(s): LG Ally
Carrier: Not Provided

Thanks: 17
Thanked 4 Times in 3 Posts
Default

nevermind. kthxbai
inception is offline  
Last edited by inception; March 24th, 2011 at 08:54 PM.
Old March 24th, 2011, 08:52 PM   #28 (permalink)
Member
 
Join Date: May 2010
Posts: 463
 
Device(s):
Carrier: Not Provided

Thanks: 114
Thanked 71 Times in 50 Posts
Default

Afteraffekt,

I hope your response was sarcasm because I was resonpding to what FalconFour said about me not using many apps or knowing how to hack an android phone. I was in no way putting down any of the developers.

Guess I should have quoted the response I was responding to so that my intentions were more clear.
flyinjoe13 is offline  
Old March 24th, 2011, 08:52 PM   #29 (permalink)
ROM Developer
 
savoxis's Avatar
 
Join Date: Aug 2010
Location: Pacific NW
Posts: 811
 
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided

Thanks: 259
Thanked 707 Times in 265 Posts
Send a message via MSN to savoxis Send a message via Skype™ to savoxis savoxis@gmail.com
Default

Quote:
Originally Posted by FalconFour View Post
. I mean, if I could say "limit Dalvik-Cache to 25% of storage", and it would prune off the unused app cache files... that would make sense! I would want it to remove the cache files for apps I never touch, the preinstalled ones, or the apps I only use every now and then (like Terminal Emulator - I only use that when I have a problem I want to solve, certainly not every day, necessitating a persistent cache file!). That is the way I'd think cache would be implemented. It would just create a cache file when it notices one isn't there, and only store "X-amount" of cache files, deleting the least-recently-used one when it needs more room. Makes sense, right?

I really do appologize if this comes out wrong, but you REALLY, REALLY, REALLY dont get it, So, im gunna say this slow.


YOUR
DALVIK CACHE
DOES
NOT
GROW
UNLESS
YOU
INSTALL
APPLICATIONS!
savoxis is offline  
The Following User Says Thank You to savoxis For This Useful Post:
inception (March 24th, 2011)
Old March 24th, 2011, 08:54 PM   #30 (permalink)
Junior Member
 
Join Date: Jan 2011
Location: U.S.A
Posts: 38
 
Device(s): LG Ally
Carrier: Not Provided

Thanks: 17
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by flyinjoe13 View Post
Uhmmm, I hope this is sarcasm because this was a response to what FalconFour said about me not using many apps or knowing how to hack an android phone. I was in no way putting down any of the developers.

Guess I should have quoted the response I was responding to so that my intentions were more clear.
Oh. Haha, I just read a few posts up, and realized it. My bad.
inception is offline  
sponsored links
Old March 24th, 2011, 08:54 PM   #31 (permalink)
Member
 
Join Date: Nov 2010
Location: South Carolina
Posts: 324
 
Device(s): LG Ally (Dev), Droid Incredible
Carrier: Not Provided

Thanks: 25
Thanked 71 Times in 43 Posts
Default

Sorry flyingjoe, i quoted the wrong post!

This topic is so fail it wins
Afteraffekt is offline  
The Following User Says Thank You to Afteraffekt For This Useful Post:
inception (March 24th, 2011)
Old March 24th, 2011, 08:56 PM   #32 (permalink)
Senior Member
 
Join Date: Dec 2010
Posts: 588
 
Device(s): Evo 4g
Carrier: Not Provided

Thanks: 117
Thanked 76 Times in 64 Posts
Default

Almost everything you talked about in your "google search research" about dalvik cache was relating to clearing dalvik to install a rom, or moving it for internal space.. None of it says dalvik is flawed.

Your bottom of the barrell android phone =/= Android OS... I think maybe this is the confusion were having Falcon.

I have well over 100 downloaded apps. I've moved dalvik cache to /cache, and my cache partition has grown from 80 mb to around 100 mb since I flashed a new rom.

And I guess I'm in disneyland too, my phone doesn't have force closes or lag either.
Tempusfugit is offline  
Old March 24th, 2011, 08:56 PM   #33 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by flyinjoe13 View Post
As for why the dalvik cache eating up 75% of my storage space is a non-issue, that's easy. I take 10 seconds out of my day if I have been installing\uninstalling apps, go into recovery and wipe the dalvik cache. Problem solved. If that is such a big hassle to you that it requires this meaningless rant about dalvik cache, then I think you are the one with the problem, not us.
(I'll ignore the part about unused apps since I already went over uninstall != removes dalvik-cache entry...)

So, you're saying... you... have to go into recovery... and wipe Dalvik-Cache...

...

AND THIS IS "STOCK BEHAVIOR"?! That's the ENTIRE RANT of this topic... that you have to root your phone and perform very non-standard operations in order to maintain any level of sanity in the data department. A normal user, one who installs as many apps as the phone can hold, will not be able to use all their storage since D-C is needlessly wasting all their storage and they can't clear it. Myself, I KNOW about wiping Dalvik-Cache, that was half the point of OP. I've done it, it freed up a crapload of valuable space. But the fact is that it does NOT maintain itself, it requires someone to manually (and "un-supportedly") completely wipe the cache in order to regain the space wasted by the cache's unused files. There's the rant. Can you address that?
FalconFour is offline  
Old March 24th, 2011, 09:00 PM   #34 (permalink)
Junior Member
 
Join Date: Jan 2011
Location: U.S.A
Posts: 38
 
Device(s): LG Ally
Carrier: Not Provided

Thanks: 17
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by FalconFour View Post
(I'll ignore the part about unused apps since I already went over uninstall != removes dalvik-cache entry...)

So, you're saying... you... have to go into recovery... and wipe Dalvik-Cache...

...

AND THIS IS "STOCK BEHAVIOR"?! That's the ENTIRE RANT of this topic... that you have to root your phone and perform very non-standard operations in order to maintain any level of sanity in the data department. A normal user, one who installs as many apps as the phone can hold, will not be able to use all their storage since D-C is needlessly wasting all their storage and they can't clear it. Myself, I KNOW about wiping Dalvik-Cache, that was half the point of OP. I've done it, it freed up a crapload of valuable space. But the fact is that it does NOT maintain itself, it requires someone to manually (and "un-supportedly") completely wipe the cache in order to regain the space wasted by the cache's unused files. There's the rant. Can you address that?
Well, that sucks for you, if you don't have your phone rooted, BECAUSE GOOGLE NEVER INTENDED FOR IT'S DAMN USERS TO HAVE THEM ROOTED. It isn't that complicated. Now, if they DID want them to have it rooted, it may be a different story, due to the fact that they would have the ACTUAL ABILITY TO CLEAR IT. There are limitations in the Android system, and your going to have to learn to accept that.
/facepalm
inception is offline  
Old March 24th, 2011, 09:00 PM   #35 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

I seriously just read the last few posts, tossed my empty soda cup backwards, and simply said out loud, to my computer,

"What the f*** is wrong with these people?!"

Please? Please? Please someone tell me... what... where... can we please get in a Skype chat or something? Something non-text based? Video chat? I can host it. I just don't get it. Maybe we're hitting a communications gap here. This just doesn't make any sense. I don't get it at all, how are you all missing the point? How are you all so vehemently denying the existence of this flaw? It's sitting right there, you're even confirming it by even talking about rooted phones or clearing the D-C folder... I'm just...

DUMBFOUNDED!

Skype group audio chat. I'm all for it. falconiv. I'm online. Please, this is insanity!
FalconFour is offline  
Old March 24th, 2011, 09:00 PM   #36 (permalink)
ROM Developer
 
j2cool2012's Avatar
 
Join Date: Nov 2010
Location: In the computer
Posts: 487
 
Device(s): LG Ally running StormDroid/Velocity, Samsung Fascinate running ICS "CM9"
Carrier: Not Provided

Thanks: 173
Thanked 213 Times in 123 Posts
j2cool2012@gmail.com
Default

Quote:
Originally Posted by FalconFour View Post
(I'll ignore the part about unused apps since I already went over uninstall != removes dalvik-cache entry...)

So, you're saying... you... have to go into recovery... and wipe Dalvik-Cache...

...

AND THIS IS "STOCK BEHAVIOR"?! That's the ENTIRE RANT of this topic... that you have to root your phone and perform very non-standard operations in order to maintain any level of sanity in the data department. A normal user, one who installs as many apps as the phone can hold, will not be able to use all their storage since D-C is needlessly wasting all their storage and they can't clear it. Myself, I KNOW about wiping Dalvik-Cache, that was half the point of OP. I've done it, it freed up a crapload of valuable space. But the fact is that it does NOT maintain itself, it requires someone to manually (and "un-supportedly") completely wipe the cache in order to regain the space wasted by the cache's unused files. There's the rant. Can you address that?

Pretty sure a "normal user" won't really care.
j2cool2012 is offline  
The Following User Says Thank You to j2cool2012 For This Useful Post:
inception (March 24th, 2011)
Old March 24th, 2011, 09:02 PM   #37 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by inception View Post
Well, that sucks for you, if you don't have your phone rooted, BECAUSE GOOGLE NEVER INTENDED FOR IT'S DAMN USERS TO HAVE THEM ROOTED. It isn't that complicated. Now, if they DID want them to have it rooted, it may be a different story, due to the fact that they would have the ACTUAL ABILITY TO CLEAR IT. There are limitations in the Android system, and your going to have to learn to accept that.
/facepalm
I'm almost in tears here... THAT'S THE FRICKIN' POINT! Not intended to be... I... just... YES! DUH! I... how are you...

*crying*

It's not April 1 yet... why are you all doing this to me...
FalconFour is offline  
Old March 24th, 2011, 09:02 PM   #38 (permalink)
Senior Member
 
dots's Avatar
 
Join Date: Aug 2010
Location: Shelby Township, MI
Posts: 965
 
Device(s): LG Ally (Retired), HTC Inspire 4g (Current)
Carrier: Not Provided

Thanks: 53
Thanked 244 Times in 190 Posts
kissarmy10001
Default

I'd love to see your response to savoxis first post cause it makes 100% sense to me.
__________________
Visit the LG Ally IRC Channel!
LG Ally IRC Channel
dots is offline  
Old March 24th, 2011, 09:03 PM   #39 (permalink)
Senior Member
 
Join Date: Dec 2010
Posts: 588
 
Device(s): Evo 4g
Carrier: Not Provided

Thanks: 117
Thanked 76 Times in 64 Posts
Default

Quote:
Originally Posted by FalconFour View Post
I seriously just read the last few posts, tossed my empty soda cup backwards, and simply said out loud, to my computer,
Ok, I see the problem now.

Go outside and have this conversation with a real person. If they agree with you, come back and start spouting more nonsense.

But so far its you and your computer on one side, and the rest of the world on the other... Maybe you should ask the computer what's wrong with you instead of everyone else?
Tempusfugit is offline  
The Following User Says Thank You to Tempusfugit For This Useful Post:
j2cool2012 (March 24th, 2011)
Old March 24th, 2011, 09:05 PM   #40 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by dots View Post
I'd love to see your response to savoxis first post cause it makes 100% sense to me.
Done! Looking it up now. I'm just so... completely flabbergasted here. I don't get where the point is being missed. Everything I wrote up is inherent to every Android phone using Dalvik-Cache... and no point of it is subject to rooting or user preference or misuse or anything... it's just standard (and completely insane) behavior... and I'm just completely lost as to how people are completely, totally, entirely missing the point. I'm dying here, I'll go for anything. Gimme a few, I'll go over that post...
FalconFour is offline  
sponsored links
Old March 24th, 2011, 09:05 PM   #41 (permalink)
Junior Member
 
Join Date: Jan 2011
Location: U.S.A
Posts: 38
 
Device(s): LG Ally
Carrier: Not Provided

Thanks: 17
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by FalconFour View Post
I'm almost in tears here... THAT'S THE FRICKIN' POINT! Not intended to be... I... just... YES! DUH! I... how are you...

*crying*

It's not April 1 yet... why are you all doing this to me...
wanna cookie
inception is offline  
Old March 24th, 2011, 09:06 PM   #42 (permalink)
ROM Developer
 
savoxis's Avatar
 
Join Date: Aug 2010
Location: Pacific NW
Posts: 811
 
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided

Thanks: 259
Thanked 707 Times in 265 Posts
Send a message via MSN to savoxis Send a message via Skype™ to savoxis savoxis@gmail.com
Default

Quote:
Originally Posted by FalconFour View Post
But the fact is that it does NOT maintain itself, it requires someone to manually (and "un-supportedly") completely wipe the cache in order to regain the space wasted by the cache's unused files. There's the rant. Can you address that?
If your dalvik-cache is "out of control" and "growing on its own" YOU my friend are doing something wrong.

Dalvik-cache only gets larger when you install apps.

Ill say it again incase you missed it

Dalvik-cache only gets larger when you install apps.



Now.

Are you absolutely sure your not a moron? Are you sure that its not your cache partition getting full due to downloading a bunch of OTA content with my script and not clearing?

Are you sure that you are not manually removing applications so the dalvik-cache's dex's stay?

Are you sure that you dont have some unique android virus creating things in your dalvik-cache?

Would you like to pay me to write you a useless script that will monitor your dalvik-cache and clear out "outdated" dex files?



IF this was necessary I would have written a solution. And by that logic I > Google's Developers. So do you really think that if I could make an init script to manage dalvik they would not have?
savoxis is offline  
The Following 4 Users Say Thank You to savoxis For This Useful Post:
inception (March 24th, 2011), j2cool2012 (March 24th, 2011), Tempusfugit (March 24th, 2011), truelefty4 (March 24th, 2011)
Old March 24th, 2011, 09:18 PM   #43 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by savoxis View Post
Let me clear up a few things here.

Task Killers:

The Android task killer handles all applications life cycles, when an application in in the Foreground it takes priority over all Background applications and services, allowing it to have the resources needed to operate. Google setup the lifecycle for applications with performance in mind, it allows for an application not being used to be classified as a empty process, storing it in cache (not ram) so it can be called back up to the same screen it was on when it whent to an empty process, when you are not using an application it doesnt take any of your ram, or (very many) processes, or even very much space
When you use a task killer the android system will often try to get the application that it had "stowed away" back and in doing so it will will bring the application to a higher level in the lifecycle, thus using more of your ram and proc, thus eating your battery.
Basics of Android Development : Android Application Lifecycle | Android Competency Center
OK, so explain to me how Android reads minds and knows what I intend to do when I press "Home"? Far as I can tell, it understands "bring home to foreground", and that's it. The rest is up to the built-in task handler. Which means, what if I'm running Pandora? It keeps that app running in the background so it plays music. Cool. What if I'm loading a page in the browser? It... well, I half-expect it to stop loading. But maybe it continues loading. Maybe running a download. What about sending an SMS? It lets it keep sending. Cool. All functioning as intended. Now, what about some misbehaving app? Something that demands too much OS attention, more attention than I want to give it (personally)? Something I just one-off launched, didn't like, now "go away"? It keeps running. It'll keep running, too, if it wants to keep polling a network resource for updates. Or wants to keep monitoring for input. So, say I started running some Twitter app, and signed in. Bleh, I don't like twitter, I go back home. It keeps running. Facebook. It keeps running, polling, waking the phone to do its updates. It doesn't go to sleep, it doesn't yield to other apps, unless I open another huge app like Angry Birds. How does Angry Birds know if I want to pause the game for a quick detour then get right back to it, or if I'm done playing and want to exit? None of that stuff can be known without reading my mind. None of that stuff can be relayed to the task handler without a task killer, a way for me to say "I'm done with all that other crap, clear your mind and let me take control".

Quote:
Originally Posted by savoxis View Post
Dalvik-Cache:

For those not familiar with java, it is a cross platform language, and android devices are all different platforms due to vastly differing hardware and software versions. When you fire up your phone for the first time, or install an application the system compiles each application into executable code for your device. This is necessary. And due to the nature of java, the dex files created are often larger than the application.
When you uninstall an application thru the Android OS, it removes the dex file, the data, and the apk.
When you uninstall an application by just removing the apk, you still have the dex, and the data.
The only time your dalvik-cache will be incorrect is when you manually remove apks without removing the others. And ofcourse since android phones ARE NOT ROOTED the folks at google obviously realized that there is no reason they should have this location monitored, or cleaned. Since. You dont need to rebuild the dalvik for an application-the executable code will never have to be changed for your platform.
This being said the only reason you would have to manipulate your dalvik-cache is when you have been doing things that you technically should not do.

If you take away anything from this please remember:
Dont go wiping your dalvik a bunch thinking it will improve performance.
Only wipe your dalvik if you have MANUALLY removed applications
Task killers will eat your processes and visa vi your battery.
True in terms of how the cache works. Not so true in terms of its flaws. In my use, D-C has always left "dex" (I'm assuming - I haven't cracked up my cache folder in a while) files laying around even when the app is uninstalled via Market, or via Manage Apps. I've NEVER removed an app by deleting it via root methods. Ever. Except the ones removed via Velocity's script (removing unwanted system apps). I'm not counting those files. I'm talking about the fact that D-C never prunes itself, never maintains itself, never removes old and unused cache files (old app versions, unused apps, etc), and just keeps growing. It grows to over 70% of the size of the user data partition, which is... well... supposed to be for user data. Dalvik-Cache is a system function, and in fact, it's a cache function... so that poses two questions: 1) why isn't it stored in CACHE, like its function implies? And 2) Why doesn't it maintain itself?

I'm a little curious by the comments that uninstalling an app also deletes its cache entry, though. Obviously my phone wasn't doing that (UNrooted, UNmodified). And it was doing that routinely, even after factory-restores. That can't possibly be normal behavior. OK, so uninstalls may clear the related dex files, but what about updates? The cache would be different, does it delete the old cache file? It's so rare that a cache file is deleted... has anyone even done any research into how the folder's contents change when an app is updated, not just uninstalled?

Hopefully the "OMG troll?!" comments have come to an end, though... they're really just confusing the hell outta me. I'm on your side here, guys... only thing I'm trying to contribute here is a concrete problem, and working to present a solution... I don't get why everyone is denying the very existence of the problem itself.
FalconFour is offline  
Old March 24th, 2011, 09:24 PM   #44 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Quote:
Originally Posted by savoxis View Post
If your dalvik-cache is "out of control" and "growing on its own" YOU my friend are doing something wrong.

Dalvik-cache only gets larger when you install apps.

Ill say it again incase you missed it

Dalvik-cache only gets larger when you install apps.

Now.

Are you absolutely sure your not a moron? Are you sure that its not your cache partition getting full due to downloading a bunch of OTA content with my script and not clearing?

Are you sure that you are not manually removing applications so the dalvik-cache's dex's stay?

Are you sure that you dont have some unique android virus creating things in your dalvik-cache?

Would you like to pay me to write you a useless script that will monitor your dalvik-cache and clear out "outdated" dex files?

IF this was necessary I would have written a solution. And by that logic I > Google's Developers. So do you really think that if I could make an init script to manage dalvik they would not have?
Just to respond to this post: I covered a lot of this in my latest reply. But to individually address in brief:
- No, it also grows to create cache files for apps built into the system, so as those apps are launched the Dalvik-Cache will also continue to grow with no apps installed. After all, the Dalvik-Cache needs to create a dex for every apk in use, so as system apk's are launched, a dex file will be created as well. Sadly, none will be deleted even if you never touch that app again.
- absolutely sure I'm not a moron? Yep, pretty sure. I've lived with my Ally for almost a year now, and I've studied its behavior, as well as contributed to revealing a few other UI flaws in Android that just make for a "rough around the edges" experience. Things that slipped through the cracks, but should be easy to fix - some of which have been since I posted them.
- no, I'm not manually removing APKs - the dex files just linger around, but at any rate there's no reason 25mb of apps should ever create 80mb of Dalvik-Cache.
- I'm tempted to take you up on the dalvik-monitoring script, but the fact is, I know how to clear my D-C... it's just something I shouldn't have to maintain myself. It should have limits.

edit: also...
- yes, I do believe Google overlooked Dalvik-Cache maintenance entirely, and that's the point of this topic. Yes, D-C serves a purpose, but it runs in a "free-wheeling" mode that allows it to balloon to ridiculous sizes, eclipsing the apps it's supposed to be serving (caching). That's what I'm ranting about in this topic, that after all these Android versions, D-C is still as flawed as it was from the start, with no oversight and no management to keep it in "cache" terms... to keep it from taking over the whole /data partition. How big is your Dalvik-Cache, compared to the apps folder?
FalconFour is offline  
Last edited by FalconFour; March 24th, 2011 at 09:28 PM.
Old March 24th, 2011, 09:27 PM   #45 (permalink)
Junior Member
 
Join Date: Nov 2010
Location: California, Venice
Posts: 44
 
Device(s): [Lg Ally Terminal Velocity] DINC 2 (non-rooted)
Carrier: Not Provided

Thanks: 26
Thanked 8 Times in 6 Posts
theleontrotsky1
Default

Quote:
Originally Posted by FalconFour View Post
Okay, I really, just have to vent about this. Somehow, in the Google-perceived history of the internet, nobody has ever actually labeled the Dalvik-Cache system/folder/"bug" as a fatal design flaw in the Android architecture? Really? It's pretty obvious in my opinion...

Think about it. Dalvik-Cache is a folder that:
  • is at least 1.0 times the size of all installed APKs (often more than 1x, as below)
  • does not get cleaned-up - EVER - by the Android OS
  • is transparent to the user, just mysteriously consuming space on the phone
  • lives in the USER data structure (on-phone storage), instead of on the cache partition
  • has absolutely no facility for any utility apps, or for the user, to clean up the mess in the folder
  • can only increase in size, since if an app is uninstalled, its corresponding (and equally large) dalvik-cache entries do not get erased

It's just mind-bogglingly ridiculous... especially on as hardware-limited phone as the Ally, I would expect (not just "hope") that a folder titled "cache" of any kind would have limitations imposed on it. To have the effect of hardware limitations be "slower performance", i.e. the phone would have to re-generate Dalvik-cache entries for rarely-used apps it had to prune-off due to imposed cache limitations... that would make sense. But no... it has no limitations, and very frequently overruns the amount of storage available to the user.

Before I rooted, I found myself constantly out of storage, with a small number of apps installed. It didn't make sense... it first occurred to me when I worked to manually tally up the reported amount of storage each app took up. The amount totaled up to about 25MB for all my apps. So why, if I have 150MB of storage, do I have 15MB free? I found it: 80mb in Dalvik-Cache, and the rest is app data. WTF? 80MB of cache for 25mb of apps? Cache - that is, something that can be re-generated with zero penalty of lost data? Can we be serious here? Why isn't this cache being maintained by the OS? Why is it permitted to balloon to 75% of user-data space, completely unchecked? And no way to clear it, without erasing all data by doing a factory reset. So it's a ticking time-bomb that will eventually fill the device's onboard memory even with no apps installed (all uninstalled).

I understand the purpose of Dalvik-Cache. To place an optimized, compiled copy of the apps that run on the Android OS. That makes sense. But with there being no maintenance of this folder, free-wheeling in the same way as MSIE's "Temporary Internet Files" folder (which has obscene limitations and often stores upwards of 30,000+ useless, outdated cache files with little to no maintenance, and is often the source of computer slowness on IE-users' systems)... it's an OBVIOUS design flaw that really should have been caught and fixed before Android even made it into production.

[/rant]

edit: and don't even get me started on people that actually trust Android's background-task manager and say you "don't need a task killer"... ahahahaha. Dalvik-Cache is proof of Google's resource-management negligence here, so you can't possibly tell me task killers aren't necessary.




Really ?
Personally I just think your stupid
2nd:I know how to solve you your problem and ours
1.Go to your profile
2.Logout
3.Go to your browser settings
4.Go to Browser history
5.CLEAR/DELETE Browser history
6.NEVER COME BACK HERE again

Now if you are following these steps it well help a lot of people
truelefty4 is offline  
The Following User Says Thank You to truelefty4 For This Useful Post:
j2cool2012 (March 24th, 2011)
Old March 24th, 2011, 09:28 PM   #46 (permalink)
ROM Developer
 
savoxis's Avatar
 
Join Date: Aug 2010
Location: Pacific NW
Posts: 811
 
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided

Thanks: 259
Thanked 707 Times in 265 Posts
Send a message via MSN to savoxis Send a message via Skype™ to savoxis savoxis@gmail.com
Default

Quote:
Originally Posted by FalconFour View Post
Now, what about some misbehaving app? Something that demands too much OS attention, more attention than I want to give it (personally)? Something I just one-off launched, didn't like, now "go away"? It keeps running. It'll keep running, too, if it wants to keep polling a network resource for updates. Or wants to keep monitoring for input. So, say I started running some Twitter app, and signed in. Bleh, I don't like twitter, I go back home. It keeps running. Facebook.
Dont use improperly coded applications, your right they are out there, but that isnt androids fault, they have throughly documented how to write applications that conform to the lifecyle.

As for applications like Twitter and Facebook, well first let me just say, if you run a task killer and see apps "running" that doesnt mean they are in the Foreground or Service lifecyle. Applications that are suspended will also show in this list, that DOESNT mean they are eating up resources. Anyway, applications like twitter and facebook are written correctly so they are suspended when not in use, they will come alive to sync if they are in the background, but you can easily turn this off.

And I answered you dalvik concerns a few times.


As much as I would like to continue this class, I am done feeding this fire and have much more productive things to be doing. Im sorry you are confused and dont understand how things work. I tried to help you but you obviously have formed your own concepts and ideas of how these things work.
savoxis is offline  
Last edited by savoxis; March 24th, 2011 at 09:32 PM.
The Following 2 Users Say Thank You to savoxis For This Useful Post:
inception (March 24th, 2011), j2cool2012 (March 24th, 2011)
Old March 24th, 2011, 09:35 PM   #47 (permalink)
Junior Member
Thread Author (OP)
 
FalconFour's Avatar
 
Join Date: Oct 2010
Location: Fresno, CA
Posts: 67
 
Device(s): Nexus S 4G Vizio vtab1008
Carrier: Not Provided

Thanks: 11
Thanked 7 Times in 4 Posts
Default

Still doesn't address the issue of "not being able to read my mind"... actually it doesn't address anything I even mentioned. I'm not forming my own concepts and ideas here either... it's pretty easy to "ls -l" the data/dalvik-cache folder and see what's left behind in there.

Maybe I'm just writing too many words, people are just skimming?

Either way, I'm starting to "report" posts that are just abusive spam (like "never come here again")... at least I have some level of defense against this insanity...
FalconFour is offline  
Old March 24th, 2011, 09:37 PM   #48 (permalink)
Senior Member
 
Join Date: Dec 2010
Posts: 588
 
Device(s): Evo 4g
Carrier: Not Provided

Thanks: 117
Thanked 76 Times in 64 Posts
Default

Quote:
Originally Posted by FalconFour View Post
Still doesn't address the issue of "not being able to read my mind"...
You don't understand suspended apps....




and re:linking your name in google.. Wow, you copied hiren, congrats. Guess what we use at work? Hirens, not falconfour.. lol
Tempusfugit is offline  
Old March 24th, 2011, 09:37 PM   #49 (permalink)
ROM Developer
 
j2cool2012's Avatar
 
Join Date: Nov 2010
Location: In the computer
Posts: 487
 
Device(s): LG Ally running StormDroid/Velocity, Samsung Fascinate running ICS "CM9"
Carrier: Not Provided

Thanks: 173
Thanked 213 Times in 123 Posts
j2cool2012@gmail.com
Default

Congratulations, you spent an entire day arguing on the internet. Don't you feel accomplished?
j2cool2012 is offline  
Old March 24th, 2011, 09:38 PM   #50 (permalink)
Junior Member
 
Join Date: Jan 2011
Location: U.S.A
Posts: 38
 
Device(s): LG Ally
Carrier: Not Provided

Thanks: 17
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by savoxis View Post
Dont use improperly coded applications, your right they are out there, but that isnt androids fault, they have throughly documented how to write applications that conform to the lifecyle.

As for applications like Twitter and Facebook, well first let me just say, if you run a task killer and see apps "running" that doesnt mean they are in the Foreground or Service lifecyle. Applications that are suspended will also show in this list, that DOESNT mean they are eating up resources. Anyway, applications like twitter and facebook are written correctly so they are suspended when not in use, they will come alive to sync if they are in the background, but you can easily turn this off.

And I answered you dalvik concerns a few times.


As much as I would like to continue this class, I am done feeding this fire and have much more productive things to be doing. Im sorry you are confused and dont understand how things work. I tried to help you but you obviously have formed your own concepts and ideas of how these things work.
Quote:
Originally Posted by FalconFour View Post
Still doesn't address the issue of "not being able to read my mind"... actually it doesn't address anything I even mentioned. I'm not forming my own concepts and ideas here either... it's pretty easy to "ls -l" the data/dalvik-cache folder and see what's left behind in there.

Maybe I'm just writing too many words, people are just skimming?

Either way, I'm starting to "report" posts that are just abusive spam (like "never come here again")... at least I have some level of defense against this insanity...
Okay, I would just like to ask you, one more time, please state what you would like us to address.
inception is offline  
Closed Thread
Tags
bug, cache, dalvik, dalvik-cache, flaw, storage


Go Back   Android Forums > Android Phones > LG Ally > Ally - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:17 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.