What is Dalvik Cache? - G1 General

What is it? Thanks

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

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?

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.

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.

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.

legaleye2005 said:
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.
Click to expand...
Click to collapse
To save memory, of course. And you probably haven't moved your dalvik cache to your SD Card yet.

Ironic
alapapa said:
http://lmgtfy.com/?q=dalvik+cache
Click to expand...
Click to collapse
This post is the #2 link in that search... Just found that kind of ironic.

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

If you want to know about the guts of whats going on with the "dalvik cache", try here:
http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/dexopt.html;hb=HEAD

As for this thread it will be moved to GENERAL, since this has no bearing on developement of the G1

legaleye2005 said:
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?
Click to expand...
Click to collapse
A2sd "tricks" your phone into thinking that the partition on your sdcard is part of the phones internal memory. Some time report the internal memory correctly others do not its a bug of sorts. Don't worry you did nothing wrong

ubernicholi said:
A2sd "tricks" your phone into thinking that the partition on your sdcard is part of the phones internal memory. Some time report the internal memory correctly others do not its a bug of sorts. Don't worry you did nothing wrong
Click to expand...
Click to collapse
I believe that is my issue with the new 8GB class 6 card and how my G1 is now slower than the Tandy 1000 I had, long ago. Performance at max CPU speed is now 60-75% SLOWER than when I had all apps on "internal storage" with 7MB free. My ext2 partition on the 8G card is around 830M. I purchased the "appstosd2" from the market, but I'm guessing the s-l-o-w performance is because I have NOT (yet) put the Dalvik-cache on the card's ext2 partition. After reading: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/dexopt.html;hb=HEAD
...it seems that's most likely the "slowness issue". Like launching an app where parts of it have to come from a different hard drive.
I'll try moving the Dalvik-cache to the sd with the apps, but since I only made an 830M ext2 partition, I'd like to view the SD card within Linux Live CD. Perhaps there I could "resize" it to 1200-1400M. Then again, I'd like to keep the apps that came with the device "Market, Browser, Maps etc" within the device's internal memory, while installing pHaT apps to the ext2 partition, such as iMAP weather, aFile, pacman (with flickering screen on 1.5 builds ö) and really large apps that many ppl UN-install and report "I need more space on my phone".
I'm not too new of a noob, however I am a "super noob" when it comes to Linux. I setup my laptop to dual boot Win XP or SUSE 10, yet I'm lost on the 2nd choice.
Long Live the "Code Warriors" !!

l_____l said:
I believe that is my issue with the new 8GB class 6 card and how my G1 is now slower than the Tandy 1000 I had, long ago. Performance at max CPU speed is now 60-75% SLOWER than when I had all apps on "internal storage" with 7MB free. My ext2 partition on the 8G card is around 830M. I purchased the "appstosd2" from the market, but I'm guessing the s-l-o-w performance is because I have NOT (yet) put the Dalvik-cache on the card's ext2 partition. After reading: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/dexopt.html;hb=HEAD
...it seems that's most likely the "slowness issue". Like launching an app where parts of it have to come from a different hard drive.
I'll try moving the Dalvik-cache to the sd with the apps, but since I only made an 830M ext2 partition, I'd like to view the SD card within Linux Live CD. Perhaps there I could "resize" it to 1200-1400M. Then again, I'd like to keep the apps that came with the device "Market, Browser, Maps etc" within the device's internal memory, while installing pHaT apps to the ext2 partition, such as iMAP weather, aFile, pacman (with flickering screen on 1.5 builds ö) and really large apps that many ppl UN-install and report "I need more space on my phone".
I'm not too new of a noob, however I am a "super noob" when it comes to Linux. I setup my laptop to dual boot Win XP or SUSE 10, yet I'm lost on the 2nd choice.
Long Live the "Code Warriors" !!
Click to expand...
Click to collapse
I've read that having too big Of an ext2 partition can actually have a negative impact. You really don't need more than 500mb unless you are running debian or ubuntu. Moving the cache would be a good idea, and may help the speed issue. B

ubernicholi said:
I've read that having too big Of an ext2 partition can actually have a negative impact. You really don't need more than 500mb unless you are running debian or ubuntu. Moving the cache would be a good idea, and may help the speed issue. B
Click to expand...
Click to collapse
Indeed, that's why I wanted to make the ext2 no more than a factor of 3. (256x3). The SanDisk "Ultra" product seems not to be true "class 6", but rather 4. That's why I went with Transcend. They also make a 16G class 6, but $90 instead of $20 for the 8G.
I did the Dalvik to SD, and the device seems a tad faster, but, I have an app that puts the cache to SD in the FAT32 partition (for users with root access) and that is probably an issue. I will UN-install that app, but it's tough to understand as the coder is French, and the GUI is kind of, well, "did it do what I thought in English?" The name of the app on the Market is: Move Cache for Root by Costa Mlkhael. Does seem to work, but with appstosd2, it is not needed and probably hampers the system as it tries to access cache. I sure uninstalling it will allow cache to the ext2, but I will be left with loads of folders on the FAT side with what was left over. (a nightmare to delete)....yes, phone is a lot faster now with dalvik on the sd's ext2 partition.

alapapa said:
http://lmgtfy.com/?q=dalvik+cache
Click to expand...
Click to collapse
...lol this is an infinitely recursive URL

alapapa said:
http://lmgtfy.com/?q=dalvik+cache
Click to expand...
Click to collapse
haha the first link takes me to this thread!

alapapa said:
http://lmgtfy.com/?q=dalvik+cache
Click to expand...
Click to collapse
This is now a cyclic link as google brings us back to here how funny is that!!!
ROTFLMAO!!!
damn someone already found that.
oh well, whatever, nevermind

metasage said:
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.
Click to expand...
Click to collapse
ohhh myyyy goshhhh LOL

alapapa said:
http://lmgtfy.com/?q=dalvik+cache
Click to expand...
Click to collapse
the awesome thing is that the first link on google is this thread!
damn i should have read the whole thread first. i thought i would be the special unique snowflake that would discover this first.

Related

All Cache to SD

i was wondering is there a way to put all the apps cache in the sd because for my search it seems like you can only do it for some. Im also running the Cyanogen rom 3.6
I know there is an app in the market named ClearMe (or there was) that will allow this if you are looking for a less manual method
Edit: you said all apps. I'm not sure of a method.... yet..
not just cache to sd, storage to sd
ruffrider5956 said:
i was wondering is there a way to put all the apps cache in the sd because for my search it seems like you can only do it for some. Im also running the Cyanogen rom 3.6
Click to expand...
Click to collapse
I have been wondering about a couple of things since I flashed Cyanogen's ROM. 1) Calendar storage is on internal storage. I have 5MB there so that sucks. Is there any way to change that? 2) Various programs, while the app itself is installed on SD, some data, but not all, goes to the phone's internal storage. This seems random. Is there any way to move ALL storage and ALL cache to the SD? When I was on JF v1.51, all data and cache was on SD. I have 63mb free internal but on JF I had 73mb free at all times. Now I fluctuate. Any thoughts?
aaronratner said:
I have been wondering about a few things since I flashed cyanogen's rom. 1) calendar storage is on internal. I have 5mb there so that sucks. Any way to change that? 2) various programs, while the app itself is installed on as, some data, but not all, goes to the phone. This seems random. Anyway to move ALL storage and ALL cache to the as? When I was on JF v1.51, all data and cache were on sd. I have 63mb free internal but on JF I had 73mb free at all times. Now I fluctuate. Any thoughts?
Click to expand...
Click to collapse
Why do you need 73mb free? Is 63mb not enough? I'm not trying to be a jerk, I just think you might be worrying about something that is not an issue. The phone works ok with 20+ MB free and works great with 30+ MB. If you have too much free memory, it is just sitting there doing nothing. You want to use the phone's resources the best way you can, not just have them sit there being unused.
I really don't see the point in moving ALL cache to SD. I've found that the phone boots up much faster if your Dalvik-Cache is using internal memory. It is about 30MB on my phone. I did move my app, app-private, media, and data to my SD card. I've heard arguments that it is not a good idea to move the data over but I have over 100 apps and my data folder is about 6 MB. So a Class 6 card could move that entire folder in about 1 second.
Nice first post, but...
Just for reference, I don't really care if I have 10MB free. My phone is running very smoothly. Most of the questions that I ask are purely for educational purposes. I was wondering what the difference was between the apps to sd I did on JF1.51 (I did it manually and I'll show it at the end of this post for reference) and the built in method in cyanogen's ROM. I was curious about why the free memory fluctuated on cyanogen's and not JF's.
I think that some apps are using the phone's internal memory and some are using the ext2 partition. One example: I use NewsRob (an RSS reader). It asks me where I want to store the downloaded RSS feeds and I said my SD card. It created a folder and stored the file on my SD card (not the ext2 partition but the fat32). However, the internal memory was also affected even though the app itself is on SD (on ext2). Another example is my calendar app. The storage, of which I have 5MB, is stored on internal memory. On JF's it was not. Why? What is done differently?
If I enter the following commands in terminal emulator...
Code:
su
df system/sd
...I get 553920K total, 106180K used, 447740K available (block size 4096).
However, when I go to Settings > SD card & phone storage I get 540MB under total space and 409MB available.
That doesn't seem to jive or am I missing something? Hey, everything seems to be working well so I don't really care on that end. However I do care that I don't understand why this is the way it is.
Reference: My apps to sd method on JF.
In terminal emulator
Code:
busybox cp -a /data/app /system/sd/
busybox cp -a /data/dalvik-cache /system/sd/
busybox cp -a /data/data /system/sd/
Then in Recovery Terminal (Alt+X on JF menu in Recovery Mode)
Code:
mount data
rm -rf /data/app
ln -s /system/sd/app /data/app
rm -rf /data/data (optional)
ln -s /system/sd/data /data/data
rm -rf /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
reboot
I'm using "move cache for root users" - first result after searching for "cache."
It moves Browser, Market, GMaps, Street View, Gmail, and Steel caches to SD.
If you have apps2sd I would assume all caches would be on the SD card, not positive tho.
juphro said:
I'm using "move cache for root users" - first result after searching for "cache."
It moves Browser, Market, GMaps, Street View, Gmail, and Steel caches to SD.
If you have apps2sd I would assume all caches would be on the SD card, not positive tho.
Click to expand...
Click to collapse
using that program as well and yes it does put all the cache on your sd card.
imbonez9 said:
using that program as well and yes it does put all the cache on your sd card.
Click to expand...
Click to collapse
I too use that program. It's called TA Utility. It works well but I'd like more than that. For example, as stated in my original description of the "problem" is that there are other apps that don't get included in this. For one thing, calendar. That's 5MB right there. There are also various program that use some internal storage even if they cache the bulk of the files on the SD (fat32 partition). I don't actually think that this is a problem. I am just very interested in understanding the inner workings of the a2sd that I had done on JF and the a2sd that is done automatically on Cyanogen's ROM.
Another program that is a "problem" is the Work Email that was ported over by Cyanogen from myTouch. Even if you don't use it, opening it once adds more than a MB of data to the internal storage. While I removed the storage, if I wanted to use the Work Email app for some reason it would "cost" me a meg. Again, this is not a real issue as I have nearly 200 apps installed and still have 64MB of internal storage left. I just want the "why" behind all this.
My question, then, is why do certain apps "cost" me internal storage while others do not? It cannot be random. There needs to be a reason and there also needs to be a way to change that. I just don't know why and how.
aaronratner said:
I too use that program. It's called TA Utility. It works well but I'd like more than that. For example, as stated in my original description of the "problem" is that there are other apps that don't get included in this. For one thing, calendar. That's 5MB right there. There are also various program that use some internal storage even if they cache the bulk of the files on the SD (fat32 partition). I don't actually think that this is a problem. I am just very interested in understanding the inner workings of the a2sd that I had done on JF and the a2sd that is done automatically on Cyanogen's ROM.
Another program that is a "problem" is the Work Email that was ported over by Cyanogen from myTouch. Even if you don't use it, opening it once adds more than a MB of data to the internal storage. While I removed the storage, if I wanted to use the Work Email app for some reason it would "cost" me a meg. Again, this is not a real issue as I have nearly 200 apps installed and still have 64MB of internal storage left. I just want the "why" behind all this.
My question, then, is why do certain apps "cost" me internal storage while others do not? It cannot be random. There needs to be a reason and there also needs to be a way to change that. I just don't know why and how.
Click to expand...
Click to collapse
I''m not sure its the app that is taking up the room but the space it needs to park it on the phone. Like i installed docs2go. It adds to my internal but not as much as the whole program is.
[SOLVED] - Solution
I have figured out the answer to my original question for all those who are interested. I wanted to know the difference between the A2SD that I used on JF (I did it myself) and the auto-A2SD in Cyanogen's ROM. It's very simple. The /data/data/ folder on Cyanogen is not moved to SD whereas I has it sysmlinked on JF.
If you are running Cyanogen, run the following in TE...
Code:
su
du -h /data/data/
to see what you have stored. I am going to spend some time on the forum looking to see what, if anything, can be safely moved (in a stable way) to /system/sd/ on Cyanogen. I will either report back here or start a new thread if I think my findings are worth sharing (meaning, if I come up with anything more than what everyone else but me already knows, LOL). I suspect it might be a bit of an issue since Cyanogen warns against using any other A2SD methods while using his ROM. Time will tell.
I believe that the reason /data/data is not moved to sd anymore is because it proved to be unstable for most (not all) people here. Also, if you manualy move /data/data to sd at some point on Cyan's rom it will be moved back to internal memory automaticaly next time you reboot. This is just the way Cyan has it set up due to the problems people had when the whole data folder was moved.
Agreed
borodin1 said:
I believe that the reason /data/data is not moved to sd anymore is because it proved to be unstable for most (not all) people here. Also, if you manualy move /data/data to sd at some point on Cyan's rom it will be moved back to internal memory automaticaly next time you reboot. This is just the way Cyan has it set up due to the problems people had when the whole data folder was moved.
Click to expand...
Click to collapse
I fully agree with that. /data/data on SD was NEVER stable for me. I don't think my phone lasted more than three days after moving it. My main reason for posting was to understand what was different between what I did on JF and what Cyanogen did by default. I now fully understand the difference and, most importantly, the reasons behind it. I just have to keep and eye on which programs write data and how much data they write and what, if any, should/could be deleted. The calendar storage, for example, cannot be deleted or calendar entries disappear. For me, it's 5.5MB.
Perhaps, if I am really bored, I (or someone else) will write and app or script that can remove data/cache for ANY app added to a list. For now, I have the obvious caches moved over and a cache cleaning app for those caches moved to SD. A more efficient and more customizable method for this process is definitely needed but I have learned that these "problems" seemed to get "solved" as Android grows up. For now, manual methods will have to do.

APPS2SD Confusion.

From the recovery image to get APPS2SD by simply running the format the SD using Ext2+Swap+fat32 right?
I have a class 6 card. How do I know if this actually works? I formatted and my internals space did not change?
Are there major benefits of doing APPS2SD?
Yes, first format the SD card.
To see if its working,
Check your Settings -> SD card & phone storage -> Internal phone storage. Make note of what it is at. Install some apps, maybe even try reinstalling some of the apps on your phone. Then, check the internal storage again and see if you have some more space.
As for the benefits, it just frees up your internal memory on your phone. I don't think it makes your phone faster or anything.
The question I have about APPS2SD is this. How come when I use it my internal memory drops after I install apps. I have not used it since I had to go back to the original Sprint ROM to do the update and installing the same apps I had before, my internal memory was about the same as it was when I used APPS2SD. I used the recovery screen to format to Fat32-Ext2-Swap and files were on the sd card when I checked, but my internal memory still drops everytime I install something. What is the real benifit of this if the internal memory drops anyway. I am real confused about this and have not decided if it is worth using since I have read it can damage your memory card. Can someone with knowledge of how this works please explain it.
Thx for all the great Info found here.
AppsToSD only puts the apps themselves on the SD. The internal memory is still used by the boot-cache, dalvik-cache, and actual app data like settings, saved games, cache, etc.
Must it be ext3?
What if i have ext2?
rvenes said:
Must it be ext3?
What if i have ext2?
Click to expand...
Click to collapse
If youre using one of the newer recovery images there should be an option to upgrade ext2 to ext3
as for the difference...im not to sure exactly
Tipharet said:
How do I know if this actually works? I formatted and my internals space did not change
Click to expand...
Click to collapse
Answer: . . . . .
nelson8403 said:
Just because the apps are installed to the SD card doesn't mean they don't store things on the phone.. cache is stored on the phones, theres a /data/data folder on the phone that the apps populate as well, it just doesn't take AS MUCH space on your phone as a non appstosd
also to make sure your apps are working go into your adb shell, type in
Code:
cd /data/app
pwd
cd /data/app-private
pwd
What this will do is go to your /data/app folder and because with appstosd that is a symbolic link to /system/sd/app the PWD (present working directory) will display /system/sd/app, if PWD shows /data/app you are not running appstosd
Click to expand...
Click to collapse
rvenes said:
Must it be ext3?
What if i have ext2?
Click to expand...
Click to collapse
As far as I know it works just fine on ext2.
As far as the difference, the nutshell version is that ext3 is pretty much just ext2 with journaling hacked in. If you don't know that that means, do a google search on "journaling file system".
There should be no downside whatsoever to switching to ext3. It can still be read from and written to by anything that can use ext2, and it adds more robust error recovery.
Caveats: I'm not sure how well, or if, that error recovery works on flash memory devices. My expertise is working with large servers that use hard disks. I also don't know if there are tools in our android builds that take advantage of the benefits that ext3 provides.
Having said that, I'm still confident that choosing to upgrade to ext3 offers NO downside, and while there might also be no upside, there is also the potential for a huge upside.
My advice: Do it.

S2E issues

I am trying to salvage my internal memory on my Aria with S2E. I am able to select the "Download cache" checkbox, but "Applications", "Private apps", and "Dalvik cache" are all greyed out (can't select them).
I am really only worried about moving Dalvik to my SD card, but have no idea why it is greyed out.
When I load S2E, I get the following message "S2E has been granted superuser permissions", so I think it isn't a permissions issue.
Any thoughts?
Do you gave the latest version of s2e? Because the latest update fixed that for me. Also make sure you have a big enough ext3 partion. I'm running a 200mb ext3 partion and have tons of space now. I even have dalvik on the partion to.
Sent from my Liberty using XDA Premium App
Ah...that must be it...I haven't set up my ext3 partition. I am going to do that via ROM manager now.
I don't think rom manger will do that correctly. I used gparted live CD. Google about it. It was pretty simple.
Sent from my Liberty using XDA Premium App
cranked said:
Ah...that must be it...I haven't set up my ext3 partition. I am going to do that via ROM manager now.
Click to expand...
Click to collapse
That is most likely the cause. This same thing happened to me when I attempted to use s2e with ext4 which isnt supported.
tommyguns818 said:
I don't think rom manger will do that correctly. I used gparted live CD. Google about it. It was pretty simple.
Sent from my Liberty using XDA Premium App
Click to expand...
Click to collapse
Rom Manager will definitely work. I originally used Rom Manager to partition my ext3 partition. But it has a size limitiation (512MB?). Anything bigger than that will require gparted (or another partition manager via ubuntu)
how long ago did you use ROM manager to make an ext3 partition? I was just partitioning my SD card a couple days ago for s2e and ROM manager didn't give any options for what ext type to make. just asked for partition size, swap size and automatically set up an ext2 partition.
stealthycow said:
how long ago did you use ROM manager to make an ext3 partition? I was just partitioning my SD card a couple days ago for s2e and ROM manager didn't give any options for what ext type to make. just asked for partition size, swap size and automatically set up an ext2 partition.
Click to expand...
Click to collapse
Im not sure how long ago I used it. The very first time I used Rom Manager to parition it gave me an ext2 parition. But the most recent time I used it, it just automatically set up a ext3 partition.
Thanks to the collective. I used Gparted, to make a 1024MB Ext3 partition, and S2E works like a charm now.
I tried to do an Ext4 partition first, but it was pointed out that isn't supported by S2E...that clue saved me a ton of time, as did the Gparted Live CD tip.
My phone is back to where it was, and I went from having 25MB free internally, to over 150MB...I have needed this for a LONG TIME!
Thanks!
For those of you using S2E, have you noticed whether moving apps and/or dalvik cache to the SD card slows the phone down at all? Just wondering.
My phone can reboot under 2 minutes being that I moved cache and dalvik to partition. Its a snappy little aria.
Sent from my Liberty using XDA Premium App
s2e
I use a kingston Class 6 8gig card with apps and dalvik on sd using s2e, ext 3 with 512Mb (Used Rom Manager). First time boot after flashing always take a little longer. other than that every other boot after that is just like normal, have not noticed any ill performance issues. Been using for more than a month now.
I see no differences in performance.
Sent from my HTC Aria
drumist said:
For those of you using S2E, have you noticed whether moving apps and/or dalvik cache to the SD card slows the phone down at all? Just wondering.
Click to expand...
Click to collapse
I have both apps and dalvik moved to SD with s2e and there is no noticeable difference in performance. Im running a cheap SanDisk 8gb class4 card.
drumist said:
For those of you using S2E, have you noticed whether moving apps and/or dalvik cache to the SD card slows the phone down at all? Just wondering.
Click to expand...
Click to collapse
Moving apps to the sd-card does slow the phone down if you use class 2 card which is generally bundled by the device manufacturer. For use with S2E a class 4 sd-card is required minimum. The ones who have higher class sd cards like 8 or 10, you should move apps. You should see a performance jump.
For normal sdcard users (2 or 4), I will not recommend moving applications and private apps, just move dalvik cache and download cache. should give you enough internal space without hampering on performance.
For partitioning the sd card use mini tool and partition it on the PC (see attached image). make sure you make a fat32 1st, 2nd ext2 & 3rd Linux swap. Thats the only way it works. Also dont forget to select 'Mount as Ext4' in S2E Settings. Best of luck.
Community: http://on.fb.me/Root4Andrd
Hi.
I used s2e script to free some space on my desire ( CM7 ) , but i'm having some problems. I'm using a new HP 16GB class 10 sd card (write speed 11.2 , reading speed 30.9). First I moved everything in my 2gb ext3 , but I was having force close issues for many apps and I was unable to move apps to the fat32 partition thrugh app2sd app (not enought space). So I moved /data back to /data and these 2 problems were resolved. But I'm facing a new problem now. When I'm having a call and I take the phone away from my ear, most of the times the screen doesnt turn on until the other person hangs up (even if i press the power button). How can I resolve this? Also can I move /data back to ext3 , without having the problems I mentioned before?
Thanx in advance
geomad said:
Hi.
I used s2e script to free some space on my desire ( CM7 ) , but i'm having some problems. I'm using a new HP 16GB class 10 sd card (write speed 11.2 , reading speed 30.9). First I moved everything in my 2gb ext3 , but I was having force close issues for many apps and I was unable to move apps to the fat32 partition thrugh app2sd app (not enought space). So I moved /data back to /data and these 2 problems were resolved. But I'm facing a new problem now. When I'm having a call and I take the phone away from my ear, most of the times the screen doesnt turn on until the other person hangs up (even if i press the power button). How can I resolve this? Also can I move /data back to ext3 , without having the problems I mentioned before?
Thanx in advance
Click to expand...
Click to collapse
Could be a lot of reasons. Highly possible that there are too many active apps leaving very little RAM. Have you checked how much RAM is being used?
I use a nifty widget called 'Go TaskManager Widget'. http://bit.ly/wRV7xI ... use it if you are using GO Launcher.
Community: http://on.fb.me/Root4Andrd
nth20 said:
Could be a lot of reasons. Highly possible that there are too many active apps leaving very little RAM. Have you checked how much RAM is being used?
Click to expand...
Click to collapse
Hello, Thanx for your quick reply!
i just downloaded an app and my free ram is like 31% , when the phone its idle. Is that not enough? What can I do to resolve this issue? Will creating a swap partition in my sd make any difference?
geomad said:
Hi.
I used s2e script to free some space on my desire ( CM7 ) , but i'm having some problems. I'm using a new HP 16GB class 10 sd card (write speed 11.2 , reading speed 30.9). First I moved everything in my 2gb ext3 , but I was having force close issues for many apps and I was unable to move apps to the fat32 partition thrugh app2sd app (not enought space). So I moved /data back to /data and these 2 problems were resolved. But I'm facing a new problem now. When I'm having a call and I take the phone away from my ear, most of the times the screen doesnt turn on until the other person hangs up (even if i press the power button). How can I resolve this? Also can I move /data back to ext3 , without having the problems I mentioned before?
Thanx in advance
Click to expand...
Click to collapse
Don't move your /data partition to sd-ext. Move Dalvik cache first, and if you need more space, then move your applications as well. If you still need more space, then you're doing something wrong.
drumist said:
Don't move your /data partition to sd-ext. Move Dalvik cache first, and if you need more space, then move your applications as well. If you still need more space, then you're doing something wrong.
Click to expand...
Click to collapse
so there is no way tomove /data with a hi speed sd card witout problems right? What about the second problem i'm facing now , with everything but /data moved to ext ?
tommyguns818 said:
I don't think rom manger will do that correctly. I used gparted live CD. Google about it. It was pretty simple.
Click to expand...
Click to collapse
CWM 5.0.2.3, as made available in these forums by attn1, also works for partitioning SD cards. I never got gparted to work right with my card, for some reason. But the "Partition SD Card" option in CWM did it right nice.
My Aria's not telling me that it's out of memory anymore. And that's good news.

what is A2S for and how to use it???

I've just installed the Paranoid-Jellybean 1.99
http://forum.xda-developers.com/showthread.php?t=1793180
on my EU HTC HD2
I can't anderstand what sd the idea behind program S2E, it seems its purpose is to move apps to SD but when used it this way then all newly installed Widgets disappeared What's more even without launching S2E in Settings thare are options to move individual apps to SD (not for all in fact)
it isn't talking about the normal fat partition on the sd card, you must have an EXT partition created before using the app.
What it does, is take the ext partition on the sd card and makes the system think that it is internal memory, thus giving you more 'internal' memory for apps and data and such like.
This isn't the same as choosing 'move to sd ' in the settings - apps options, as this moves the app to the FAT (windows) partition of the sd card. Some apps wont work when 'moved to sd', however they WILL work from the ext partition, because android thinks its internal.
So, if you haven't already got an ext partition, back up the contents of your current sd card (it will get wiped) then reboot into cwm, choose 'advanced - partition sd card' and choose a partition size. (512 or 1024 is usually plenty) then restart android and try the app again.
Any apps that you have already 'moved to sd', go move them back to internal, and the system should automatically move them from the FAT partition to the EXT partition.
Tahnk you for your explanation. Also I must apologize I confused the names of the programs - in fact its S2E rather than A2S (the previous post have written from memory). However probabely this s2e serves the same purpose, as it has such relevant commands:
Applications - Location: /data/app
Private apps - Location: /data/app-private
...
and so on, until:
Dalvik cache - Moving from /data to /sd-ext
So, I've chosen the first option and got displayed:
Application
Moving from /data to /sd-ext
Reboot is required!
and rebooted the phone, but the result was disappointing - several apps dissappeared including all Widgets!
Of course I've had ext3 partition previously set.
What was wrong?
Other question please: exactly WHAT is worth moving to SD Ext partition, Dalvik cache too?
yea they do the same/similar things - namely move parts of the system to the ext partition, and create symbolic links so that the system doesnt notice they've moved.
You seem to be moving your entire data folder to the ext, which i believe has an impact on boot performance, since the data partition wont be mounted straight away, and android needs it during boot.
I don't know a great deal about the various app2sd scripts, but the ones i've used normally only move the /data/app/ (your user installed apps folder) and the dalvik cache to the sd-ext partition.
samsamuel said:
yea they do the same/similar things - namely move parts of the system to the ext partition, and create symbolic links so that the system doesnt notice they've moved.
You seem to be moving your entire data folder to the ext, which i believe has an impact on boot performance, since the data partition wont be mounted straight away, and android needs it during boot.
I don't know a great deal about the various app2sd scripts, but the ones i've used normally only move the /data/app/ (your user installed apps folder) and the dalvik cache to the sd-ext partition.
Click to expand...
Click to collapse
So won't it exert excessive load on SD card which could lead to some sort of instability or other issues?
ioy said:
So won't it exert excessive load on SD card which could lead to some sort of instability or other issues?
Click to expand...
Click to collapse
better than exerting load on the nand and increasing the chances of bad blocks, right?
samsamuel said:
better than exerting load on the nand and increasing the chances of bad blocks, right?
Click to expand...
Click to collapse
theoretically YES but then does it also apply for the whole Android ROM itself (please compare the neighbouring discussion "is NAND Android better than SD and why?")
ioy said:
(please compare
Click to expand...
Click to collapse
no thanks, i have far more interesting things to do. i couldn't care less if there's excess load, though i'm pretty sure there isn't, since i've been running an ext partition for several months and no problems.
Have you understood me well? I've asked about the problem probably NAND ROMs themselves wear NAND memory too so would it be safer (for the device) to use SD ROMs (which write only on SD memory all the time)? How do you think, could it be the case?
i think if it were of any real benefit, people would be talking about it, but no one does. I guess its down to you, if YOU think it will help, then do it. If you don't, don't!
I guess battery drain would be teh real deal maker/breaker. I havent used sd android, but i believe it to be (in general terms) a little less stable, more prone to slowdowns, and harder on teh battery. But thats all anecdotal evidence, as i said, ive never booted sd android.
(edit - i must say, in humour, not meaning offence, that between this thread and your other thread, you sound like a guy who just bought a sports car and wants to cycle to work to save wear and tear on teh car )

[Q] Not enough internal storage

Like everyone here, I have the famous HTC Leo. A friend installed Android on NAND, the 2.3.4 with the mod-HyperDroid CM7-v2.1.0.
This is a great device, but the more I use it, the more I have less internal memory.
At first, I installed a lot of applications, I was full of things and I ended up filling the internal memory. I moved the more applications possible on the SD card, but the internal memory ended up being full. So I uninstalled applications not too useful, and applications more useful, clean caches, remove data, but it is still too small. My system tells me that I only have 217.3 Mb total internal memory and while I hardly more than application system installed, I only have 21.3 MB available. Now, I know that this model has double.
I do not understand: what is this devilry? Where is my memory? How can I resume normal operation until all the memory is gone and my phone becomes unusable?
I can't be the only one to whom it happens, right?
only the data partition counts as internal memory, the rest is taken by the system, boot and recovery partitions, so your200+ sounds about right.
read up on creating an ext partition on your sd card, and either flash a rom that supports it already, or add a script to your current rom, , then, instead of using the data partition on the nand the system will use the sd-ext partition as if it were nand. (This is NOT the same as choosing 'move to sd' in the apps config screens, that moves it to the fat partition, and some apps wont work from there, , , all apps will work from the ext partition, and faster than the fat partition.)
There are two sets of scripts, some move the whole data partition to ext, meaning of course you are not using the 200+ mb on the nand, so for me i prefer the scripts that move only the apps to the ext partition, and keeps your actual data (txts, contacts, stuff like that) on the regular nand data partition, thus spreading the useage.
look out for keywords like 'app2sd+' 'data2ext' 'dataonext', , stuff like that when you're searching.
samsamuel said:
only the data partition counts as internal memory, the rest is taken by the system, boot and recovery partitions, so your200+ sounds about right.
read up on creating an ext partition on your sd card, and either flash a rom that supports it already, or add a script to your current rom, , then, instead of using the data partition on the nand the system will use the sd-ext partition as if it were nand. (This is NOT the same as choosing 'move to sd' in the apps config screens, that moves it to the fat partition, and some apps wont work from there, , , all apps will work from the ext partition, and faster than the fat partition.)
There are two sets of scripts, some move the whole data partition to ext, meaning of course you are not using the 200+ mb on the nand, so for me i prefer the scripts that move only the apps to the ext partition, and keeps your actual data (txts, contacts, stuff like that) on the regular nand data partition, thus spreading the useage.
look out for keywords like 'app2sd+' 'data2ext' 'dataonext', , stuff like that when you're searching.
Click to expand...
Click to collapse
Excellent advice, but I think you forgot to mention this
Late I think me brain is playing tricks on me...:cyclops:
shanman-2 said:
Excellent advice, but I think you forgot to mention this
Click to expand...
Click to collapse
so, pretty much exactly what i described, then....
shanman-2 said:
Excellent advice, but I think you forgot to mention this
Late I think me brain is playing tricks on me...:cyclops:
Click to expand...
Click to collapse
So, I don't really need to use this. I just can install a new ROM on my NAND after making extending place on my SD for the 'dataonext', can't I?
I have to choose a dataonext ROM (with french version) and make new partition on my CD card. I'm saving all the SD card data's just now (with luckyBackup, because I'm on ubuntu PC).
My problem is find a good ROM for my needs. So, I have HSPL 2.0.8 and MAGLDR. How can I find the rom radio number? I need this information to choose the good ROM. Any advices about good ROM for my needs?
r no need to change the radio,,, if magldr works then the radio is fine.
samsamuel said:
r no need to change the radio,,, if magldr works then the radio is fine.
Click to expand...
Click to collapse
I bought a new 16 GB SD card to try the method of post 1843062. I am trying to format as it should, and tonight or tomorrow, I'm trying to see if I can install the script without too much risk, I am not a very experienced user of ROM for HD2 and, in addition, as I'm 100% Linux Ubuntu, I saw that many procedures are more complicated or impossible to run from a Linux desktop.
Thank you for all your help and I'll let you know.
I need to understand.
I have a EU HD2 with HyperDroid CM7 installed on it.
Like many people here, my memory became too small over time. So I look for a solution and I was guided to this thread. While speaking, I read everything I could understand (and frankly there really is too much to read and understand, here ) and I ended up deciding to adopt the solution Kokotas.
So I bought a new SD card (16GB class 10 Duracell - I know, Duracell is a brand of batteries ...) and I formatted properly Gparted as shown, with one primary partition of 12 GB fat32 I named /données (French for datas) and a second primary partition 4 GB Ext4 I named /data.
Then I primed to install the script Kokotas (but I have not yet done so, this is the trick!) And there: surprise!
I suddenly 4 times more free memory internally (from 20 MB to 80 MB), but it is still the same overall size!
I wonder how it is done, because it's been months that I want to release the NAND memory, I deleted almost all my applications downloaded without great effect and there, before installing the solution Kokotas, hop, I have the place!
I run Nautilus on my HD2 connected via USB and what do I see? in the partition /data in ext4, records were Cres /app /app-private and /dalvik-cache.
What does that mean? My ROM can do one DATAtoEXT 2011 alone, when she sees a partition SD / data?
Do I install the script Kokotas or it is not worth it?
Do I flash a new ROM (I thought MIUI-MIX_3.3.1, but I'm not sure it's a good idea) without risk, in short I need to understand what happens with my phone.
Thank you.
(Sorry for my english : this is the fault of Google translation )
You might also consider just running an SD build instead of NAND. You can get a 2GB "internal storage" system.img and you don't risk getting bad blocks on nand by constantly flashing things. In my use of both I didn't really see any great speed increase or advantage in using NAND other than boot-up time is a bit less, but does that really matter?
Just another thought on this.
orangekid said:
You might also consider just running an SD build instead of NAND. You can get a 2GB "internal storage" system.img and you don't risk getting bad blocks on nand by constantly flashing things. In my use of both I didn't really see any great speed increase or advantage in using NAND other than boot-up time is a bit less, but does that really matter?
Just another thought on this.
Click to expand...
Click to collapse
I thought NAND is better for battery's management...
Monolecte said:
I thought NAND is better for battery's management...
Click to expand...
Click to collapse
I didn't see any great battery improvement with NAND.
ROM flashing don't work
I tried to flash MIUI-MIX_3.3.1, but, it wasn't working. I think this is because Resurection needs this specific table of partition and I don't how can I modify this table of partition. CMW had a partition tool? How can I do?
Monolecte said:
I tried to flash MIUI-MIX_3.3.1, but, it wasn't working. I think this is because Resurection needs this specific table of partition and I don't how can I modify this table of partition. CMW had a partition tool? How can I do?
Click to expand...
Click to collapse
use the nand toolkit
samsamuel said:
use the nand toolkit
Click to expand...
Click to collapse
With an Ubuntu PC?
After miles of thread reading here, I won against the machine!
I have something like a new phone.
Thank you everybody.
If I can do it, anybody can do it!
ubuntu or windows will be fine.
The NAND Toolkit is a Windows software... so...

Categories

Resources