Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

What is Dalvik Cache?

OP legaleye2005

27th May 2009, 04:19 PM   |  #1  
OP Senior Member
Thanks Meter: 0
 
160 posts
Join Date:Joined: Nov 2006
More
What is it? Thanks
27th May 2009, 04:30 PM   |  #2  
alapapa's Avatar
Senior Member
Thanks Meter: 8
 
453 posts
Join Date:Joined: Dec 2007
More
http://lmgtfy.com/?q=dalvik+cache
Last edited by neoobs; 27th May 2009 at 11:42 PM.
The Following 4 Users Say Thank You to alapapa For This Useful Post: [ View ]
27th May 2009, 04:42 PM   |  #3  
OP Senior Member
Thanks Meter: 0
 
160 posts
Join Date:Joined: Nov 2006
More
Ok, I searched and found it. But I'm running into a lil problem. I did the apps2sd thing on my 2gig sd card and now in settings, its showing 1gb for the sd card and 1gb total space for the internal storage(which isn't right because the phone doesn't come with that much storage, right?).

What am I doing wrong?
27th May 2009, 04:45 PM   |  #4  
metasage's Avatar
Senior Member
Flag South Florida
Thanks Meter: 3
 
122 posts
Join Date:Joined: Dec 2008
More
Even after searching on Google it seems that the purpose of Dalvik Cache is very convoluted. From what little I understand it's the location where application data stored by the OS... but I could be wrong.
27th May 2009, 04:51 PM   |  #5  
cyanogen's Avatar
Retired Recognized Developer
Flag Seattle
Thanks Meter: 5,715
 
2,485 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Simple explanation:

When Android starts up, the DalvikVM looks thru all of your applications (.apk files) and frameworks, and builds a tree of dependencies. It uses this dependency tree to optimize the bytecode for every application and stores it in the Dalvik cache. The applications are then run using the optimized bytecode. This is why when you install a new ROM, sometimes it takes a very long time to boot for the first time. Any time an application (or framework library) changes, it's reoptimized and the cache is updated.
The Following 40 Users Say Thank You to cyanogen For This Useful Post: [ View ]
27th May 2009, 04:53 PM   |  #6  
OP Senior Member
Thanks Meter: 0
 
160 posts
Join Date:Joined: Nov 2006
More
Cyanogen- Thanks! By the way, great job on the rom. I'm running it right now.

So can you tell me why people want to move it to their sd? (By doing the apps2sd, did I already do this?)

Thanks again.
27th May 2009, 05:10 PM   |  #7  
metasage's Avatar
Senior Member
Flag South Florida
Thanks Meter: 3
 
122 posts
Join Date:Joined: Dec 2008
More
Quote:
Originally Posted by legaleye2005

Cyanogen- Thanks! By the way, great job on the rom. I'm running it right now.

So can you tell me why people want to move it to their sd? (By doing the apps2sd, did I already do this?)

Thanks again.

To save memory, of course. And you probably haven't moved your dalvik cache to your SD Card yet.
27th May 2009, 05:37 PM   |  #8  
glock30's Avatar
Senior Member
Flag So Cal
Thanks Meter: 4
 
135 posts
Join Date:Joined: Feb 2009
More
Ironic
Quote:
Originally Posted by alapapa

http://lmgtfy.com/?q=dalvik+cache

This post is the #2 link in that search... Just found that kind of ironic.
Last edited by neoobs; 27th May 2009 at 11:43 PM.
The Following 4 Users Say Thank You to glock30 For This Useful Post: [ View ]
27th May 2009, 07:09 PM   |  #9  
alapapa's Avatar
Senior Member
Thanks Meter: 8
 
453 posts
Join Date:Joined: Dec 2007
More
I'm sorry I came off as snide and dismissive -- i guess i was...

I really should have just posted this:
http://en.wikipedia.org/wiki/Dalvik_virtual_machine
Last edited by neoobs; 27th May 2009 at 11:43 PM.
The Following 2 Users Say Thank You to alapapa For This Useful Post: [ View ]
27th May 2009, 07:20 PM   |  #10  
cyanogen's Avatar
Retired Recognized Developer
Flag Seattle
Thanks Meter: 5,715
 
2,485 posts
Join Date:Joined: Jan 2009
Donate to Me
More
If you want to know about the guts of whats going on with the "dalvik cache", try here:

http://android.git.kernel.org/?p=pla...t.html;hb=HEAD

The Following 4 Users Say Thank You to cyanogen For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes