PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Samsung Intercept (http://forum.ppcgeeks.com/forumdisplay.php?f=236)
-   -   Move Dalvik Cache (http://forum.ppcgeeks.com/showthread.php?t=138279)

mavblues 12-12-2010 12:57 PM

Move Dalvik Cache
 
1 Attachment(s)
I take no credit for this. Found this on SDX (posted by Chibucks). Originally done for the Moment - works great on the Intercept.

When you do this, you'll have no need for Apps2SD. Frees up a bunch of memory on the phone! Put this on both of my kids' phones - one has 83MB free and the other has 94MB free. That's an increase of roughly 50MB from what the figures were pre-install!

Zip file attached so you don't have to adb (apply it through recovery). However, adb instructions are below for those that prefer doing it that way.
-----------------------------------------------------------------------

are you running out of room on /data? want more room?

one solution is to move your dalvik-cache from /data/dalvik-cache to the /cache folder...

what is the /cache folder?
the /cache folder from what i've read, is used for OTA updates from your provider... they vary in size. the moment's /cache folder is a whopping 116MB - mostly unused... take a look yourself, open up connectbot and type in 'df' and you can see the size of your partitions and what's used. other phones have much smaller /cache (i think the spica has 76MB, dream has like 20MB), while others have larger (epic and evo both have larger).

how do you do this?
boot your phone up in recovery and connect to your computer and "adb shell"... if your phone isn't recognized or what not, read the super-guide. http://forum.sdx-developers.com/Smil...ult/smiley.gif

now in shell, type:
Code: [Select]
mv /data/dalvik-cache /cache/dc
this moves your current /data/dalvik-cache to the /cache partition under the 'dc' directory (you can rename it whatever you want)

then type in:
Code: [Select]
ln -s /cache/dc /data/dalvik-cache
this creates a symlink (path link) from /data/dalvik-cache to /cache (sort of like a forwarding address)

reboot, and voila, you'll save yourself around 60MB of space in /data (results may vary), which means more apps like ninja fruit or tom the cat. http://forum.sdx-developers.com/Smil...ult/smiley.gif i went from 60MB free to 120MB.

it should hold on reboot... lemme know if it doesn't, there are other methods. http://forum.sdx-developers.com/Smil...ult/smiley.gif

how do you go back? (in case sprint fixes our data lockup and has a big update)

remove the symlink -
Code: [Select]
rm /data/dalvik-cache
move davlik-cache back -
Code: [Select]
mv /cache/dc /data/dalvik-cache
and then remove the /cache file
Code: [Select]
rm -R /cache/dc
you can skip the second step if you want your phone to rebuild it's on davlik-cache... since the phone can rebuild davlik-cache, the risk isn't that large. http://forum.sdx-developers.com/Smil...ult/smiley.gif

how does this affect performance?
so far, nothing noticeable on my part - my linpacks were similar before and after...

can you do this on ext2 / ext3 systems?
i wouldn't see why not, but you'll probably have to ask someone more in the know... i believe both the /data and /cache folders are mounted ext2 / ext3 in the init.rc, but don't quote me on that...

i take no credit for this - xda / samdroid / cyanogen all have done this previously... and once again, use at your own risk.
link references:
XDA: http://ip208-100-42-21.static.xda-developers.com/showthread.php?t=748053
Samdroid: http://forum.samdroid.net/f9/relocate-dalvik-cache-free-up-space-1117/

also note: it seems if you run out of room in /cache, the phone supposedly acts a little flaky, but as long as you have over 15MB, you should fine... but that's based on the samdroid comments. http://forum.sdx-developers.com/Smil...ult/smiley.gif

edit to add: for those who prefer applying an update.zip through recovery... attached. i tested it out, and it worked for me. hopefully it'll work for whoever else is interested. http://forum.sdx-developers.com/Smil...ult/tongue.gif

mavblues 12-12-2010 12:59 PM

Re: Move Dalvik Cache
 
1 Attachment(s)
Zip file to undo changes and revert back (apply through recovery).

Again, all credit to original poster.

one80oneday 12-13-2010 03:29 PM

Re: Move Dalvik Cache
 
Loving the extra space

captkkk 02-09-2011 11:56 PM

Re: Move Dalvik Cache
 
This method will cause device like Dell Venue (running on 2.2) died on start up with lots of exception errors, basically all startup apps failed and the Dell Stage UI died as well, but luckily, the adb shell still works, so I can reverse everything.
What a pity, the data folder once showed an increase on size and the symlink did work, but the Dell Stage somehow doesn't like the symlink and hence all widgets and startup died miserably.


All times are GMT -4. The time now is 09:58 AM.

Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0