Want to better understand /data & /datadata - Captivate Q&A, Help & Troubleshooting

Hey everyone,
I've been surfing the forum and found some great information about what I'm experiencing (low disk space when mtdblock6 [/datadata] is @ or >90%).
I've moved my 'high data' apps to the SDCard but I saw no change in mtdblock6... In addition, from all the data listed (used 1-tap cleaner) it does not add up to as much as listed in mtdblock6.
I'm not looking for a solution at this point, but I want to understand what is going on inside the software. What exactly gets stored in /datadata vs. /data? To me it seems like the app code is stored in /data and app data in /datadata, but it doesn't seem 100%... especially if moving apps to the SD card changes nothing.
Can anyone help me understand better? Thanks so much for any help you can give. I'm not a coder, but I'm very technically capable.
PS If I could figure out exactly what app has what data stored where, that would be AWESOME! - thx

I can't help you understand it, I'm interested, too - but this doesn't belong in Development, so I moved it into Q&A. Now we'll both learn something

reinbeau said:
I can't help you understand it, I'm interested, too - but this doesn't belong in Development, so I moved it into Q&A. Now we'll both learn something
Click to expand...
Click to collapse
Add me in this learners queue
But still waiting for answer

Apps are in /data while their save data is in /datadata. The /datadata partition was removed in CM10 because the system needed more room. So if you have a slow nand/early build phone, CM10 will be a little or a lot laggy for you. When you move apps to sd card, you are doing what it says, apps to sd card only... Hope i helped, did i explain everything?
Sent from my GT-I9300 using xda premium

b-eock said:
Apps are in /data while their save data is in /datadata. The /datadata partition was removed in CM10 because the system needed more room. So if you have a slow nand/early build phone, CM10 will be a little or a lot laggy for you. When you move apps to sd card, you are doing what it says, apps to sd card only... Hope i helped, did i explain everything?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Thank you! Got it but I want to know how much more room needed by datadata? is 2GB internal storage not enough for all?

Games will quickly fill that up...
Sent from my GT-I9300 using xda premium

Well /data gets the 1 GB and /datadata only gets ~172 MB, so it fills up a lot faster.
While we're having this discussion, can somebody explain to me how one partition can be faster than another if they are on the same physical medium, and why /datadata's space is so limited? I've been curious for a while.

Its a faster physical chip i think!
Sent from my GT-I9300 using xda premium

I don't know the specific reason the CM team went to a specific /datadata size like that, but I've read in a few place that they took that decision very seriously and opted for the 172 to give the phone the fasted speed possible.
And, under normal circumstances, it does take a lot to fill the 172 MB. However, I've run into a full /datadata partition a few times. The chief cause was because of 'system data' in the /datadata folder taking up WAY too much space. I found this through the Disk Usage app. No amount of formatting was able to get rid of the 'system data' until I flashed back to stock GB (I use the KH3 version with CWM injected).

Glad I read this before flashing helly bean on my cappy. I have 5gb free on internal card. Is there no possible way to increase the partition from 172mb?
Sent from my SGH-I897 using xda app-developers app

There is a fix (not sure of the link) that cuts the link between /data/data and /datadata which - if i understand it right - basically allows more data from the apps to be stored. The downside is that it could result in a slower phone.
I'm not sure what you mean by the 5 GB internal... you won't lose any of that by upgrading. The smaller partition is only for the data for your apps, not the app itself. The app itself is stored in the /data directory.
And since you mentioned moving to JB, I believe one of the earlier posts mentioned that JB won't be using this system (early ports still may, though). And the /datadata partition has been the same with CM ROMs since at least GB ROMs.
I always had upwards of 100 apps on my phone and never ran into /datadata issues from app data.

Related

[Q] Should I be running my apps from my SDCard?

Hi all,
Wondering if my Dream does perform better if I move my applications over to the SDCard (Through the Applications Manager)?
Will it affect the performance of an open application itself? (Slow it down considerably)
What else can I do with the SDCard so it can help the performance of the device?
I just purchased a 16gig Class 10 Patriot SDCard and put it in and moved my pics and music over to it.
Using CyanogenMod 6.1.0-DS, The phone was rooted/unlocked before I put this new card in. It had a 2gigClass2 card in it during the root/unlock.
Thanks
Heeter
Anyone?
Thanks
Heeter
Moving your apps to sdcard frees up internal memory. Read up on swap. Should be good with that card. Again firerat's AIO patch has swap in it as well. Sounds like u need that to start running options to get u all fixed up
Sent from my HTC Magic using XDA App
Awesome,
Thanks for you answer, johnson8cyl
Will get that application.
Heeter
johnson8cyl tip should help!
Hey thanks, johnson8cyl
My Live wallpaper is working now, and I added my swappiness=100
Where can I tell how much swap do I have?
Thanks a million,
Heeter
Firstly swap is not advisable on a froyo rom if that is what you are running (this has been proven time and again) and setting the swappiness to 100% WILL kill your sdcard at a rather accelerated rate.
Firstly learn about CompCache and swap and the advantages of both (Personally never ever touch swap as CC is alot more controllable and easier to clean when the dreaded swap lag hits home).
Also to see what swap/cc you are running open terminal emulator and type -
free (hit enter)
I'd also look into the options of apps2ext and moving dalvik cache to sd-ext (Firerats All In One Patch - Beta 3) data should not be moved again Froyo does not play well if it is.
shadowch31 said:
Firstly swap is not advisable on a froyo rom if that is what you are running (this has been proven time and again) and setting the swappiness to 100% WILL kill your sdcard at a rather accelerated rate.
Firstly learn about CompCache and swap and the advantages of both (Personally never ever touch swap as CC is alot more controllable and easier to clean when the dreaded swap lag hits home).
Also to see what swap/cc you are running open terminal emulator and type -
free (hit enter)
I'd also look into the options of apps2ext and moving dalvik cache to sd-ext (Firerats All In One Patch - Beta 3) data should not be moved again Froyo does not play well if it is.
Click to expand...
Click to collapse
Awesome, Thank You, Shadowch31.
I have 0 for swap right now & my swappiness is set at 60.
What do you mean "data should not be moved again Froyo does not play well if it is." which data are you mentioning?
Thanks again,
Heeter
Heeter said:
Awesome, Thank You, Shadowch31.
I have 0 for swap right now & my swappiness is set at 60.
What do you mean "data should not be moved again Froyo does not play well if it is." which data are you mentioning?
Thanks again,
Heeter
Click to expand...
Click to collapse
If you go down the root of moving apps2ext (advisable on a G1) using FR's AIO then you will be presented with an option to move data to sd-ext, just say NO!
Thanks a million, shadowch31!
This is so cool, learning a lot with my G1.
Is there a good place to read and learn about compcache?
Thanks again.
Heeter
Hey shadow. I have run swap on my mt3g every time. My phone doesn't seem to like compcache. You maybe have a reason why or ideas? I can't ever seem to get it to play nice. Always have swap file at 32 swappiness at 30. Don't have many apps. Always been ok for me
$free
total used free shared buffers
Mem: 112700 106136 6564 0 404
Swap: 31428 15464 15964
Total: 144128 121600 22528
$
Sent from my HTC Magic using XDA App
Heeter said:
Thanks a million, shadowch31!
This is so cool, learning a lot with my G1.
Is there a good place to read and learn about compcache?
Thanks again.
Heeter
Click to expand...
Click to collapse
http://wiki.cyanogenmod.com/index.php?title=Swap_and_Compcache
Another link with brief easy explanation.
http://forum.xda-developers.com/showthread.php?t=558637
Sent from my HTC Magic using XDA App
johnson8cyl said:
Hey shadow. I have run swap on my mt3g every time. My phone doesn't seem to like compcache. You maybe have a reason why or ideas? I can't ever seem to get it to play nice. Always have swap file at 32 swappiness at 30. Don't have many apps. Always been ok for me
$free
total used free shared buffers
Mem: 112700 106136 6564 0 404
Swap: 31428 15464 15964
Total: 144128 121600 22528
$
Sent from my HTC Magic using XDA App
Click to expand...
Click to collapse
Well if it works for you fella then cool, don't forgot that all opinions and views here are from a personal stand point, and for me Swap and me just don't get along so CC it is and as I have written a script that can stop, clean, resize (if needed) and restart CC cutting out the annoying lag problems ALL swap enabled phones run into, and thats fact not opinion meant for me CC was the best option.
What had you set the CC to? What is your sdcard as in class? Anything below a class 6 and I could see why it would cause problems and why swap would run better. As I have never touched or even seen an MT3G in real life I have no idea about the phone or its performance when matched against the G1. I know it holds more internal memory and am pretty sure thats where the difference ends.
Come chat in my irc channel, link in sig if you want to try a few things to see if we can't get it working properly for you if you wish to experiment but the old saying does go 'If it aint broke, don't try to fix it'
johnson8cyl said:
Another link with brief easy explanation.
http://forum.xda-developers.com/showthread.php?t=558637
Sent from my HTC Magic using XDA App
Click to expand...
Click to collapse
Just to add on to that see this post from the link provided by Johnson.
The greatest laymans explanation of CC
http://forum.xda-developers.com/showpost.php?p=4933785&postcount=9
shadowch31 said:
Just to add on to that see this post from the link provided by Johnson.
The greatest laymans explanation of CC
http://forum.xda-developers.com/showpost.php?p=4933785&postcount=9
Click to expand...
Click to collapse
Haha, LOLOL
Heeter
Well ill have to catch u when I'm home to chat sometime. Maybe this weekend. I'm always interested in learning from others more educated than myself. Just tried turning off swap and using CC on laszlo 5.1 and couldn't even get it to boot back up. Still have stock sdcard from T-Mobile if you'll believe that. Lol. Gotta order a class 6 probably transcend SD.
Sent from my HTC Magic using XDA App

[Q]What is /datadata and what are the pros/cons?

I feel like the title is pretty self explanatory and would appreciate any input on this. A quick google of it didn't yield anything really relevant to my question.
I believe it just the way they mount your sd card
Sent from my SGH-I897 using xda app-developers app
Snow_fox said:
I feel like the title is pretty self explanatory and would appreciate any input on this. A quick google of it didn't yield anything really relevant to my question.
Click to expand...
Click to collapse
Read:
http://forum.xda-developers.com/showthread.php?t=1541942
/datadata is a custom partition in CM7/9 and Roms based on that for the Galaxy S class phones. It's faster than the 2 GB /data storage for apps and that's why it's used for app storage on CM7 and CM9.
The fix in this thread works quite well as it leaves the commonly used libraries in /datadata but puts the rest of the app in /data.
Thanks,

[Q] How to use SDcard as internal storage

Hello everyone,
Before i ask my question i would like to say hello to everyone at xda. Im new to the forum, and as you can see i actually did watch the noob video . Because i am a newbie i didnt really knew where to post this, and since it was an question about the GT-N7000 i thought this would be the most appropriate place to post.
I know that this question has been asked and answered numerous times. However, i didnt find a way to use my SDcard alongside my USB storage. So that they can both be used as internal storage at the same time. Im using an 16 gb sdcard (if that matters) and would like to "add' that to my internal storage.
I browsed numerous threads, both from xda and other forums, but no one seems to have an solution for my problem ( using them the same time as USB storage ).
Any help is much appreciated
And why you want it? The actual use for using them both at same as interal storage? What stuff you want to store on it? If you want to save game's huge data then you can use app from play store https://play.google.com/store/apps/details?id=com.slf.ListglApp
Sent from my GT-N7000 using Tapatalk 2
abhinav quietly brilliant said:
And why you want it? The actual use for using them both at same as interal storage? What stuff you want to store on it? If you want to save game's huge data then you can use app from play store
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
I want to store music, all of my pictures and some downloads and alot of games. I didnt get what you were traying to say by that, but if you didnt understand it : I want to add my sdcard to my internal storage. So that the internal storage is being used at the same time as my sdcard, when both being detected as internal storage.

RAM managment

guys i know you all heard for this app (Ram manager pro)
https://play.google.com/store/apps/details?id=com.smartprojects.RAMOptimization&hl=en
but, i bet lot of you didnt notice a biiiiiig update...now you can swap your RAM on your internal, the fastest partition in our device (not even close to sd card class100)
but, im not sure about it, and i ask for help from developers or android wizz that know this method...
i noticed that this thing works, but, after you swap, you dont have space left...so, iv got partitioned my sd card, only to 256mb, just to check...and it really works again!
Again, but, you need to create swap file right after flashing fresh rom, so it (swap file) occupy internal memory at once! Cause, if you instal some apps, it will use sd ext, and probably go to sd card, wich doesnt make any difference in performance...
Once again, im asking for opinion of expert, to confirm this...
Im using latest jb4.2.2, and best way to check this is to play some game and to listen a music at same time : DIDNT GET FC OR ANY LAG!
tnx in advance
NOTE: don't create swap bigger than 128mb, thats our max internal
Does it really works? Because i used to swap too but it didnt make any difference in performance. The only thing i notice is my phone got hotter alot.....
Sent from my GT-S5570
Nixoman said:
guys i know you all heard for this app (Ram manager pro)
https://play.google.com/store/apps/details?id=com.smartprojects.RAMOptimization&hl=en
but, i bet lot of you didnt notice a biiiiiig update...now you can swap your RAM on your internal, the fastest partition in our device (not even close to sd card class100)
but, im not sure about it, and i ask for help from developers or android wizz that know this method...
i noticed that this thing works, but, after you swap, you dont have space left...so, iv got partitioned my sd card, only to 256mb, just to check...and it really works again!
Again, but, you need to create swap file right after flashing fresh rom, so it (swap file) occupy internal memory at once! Cause, if you instal some apps, it will use sd ext, and probably go to sd card, wich doesnt make any difference in performance...
Once again, im asking for opinion of expert, to confirm this...
Im using latest jb4.2.2, and best way to check this is to play some game and to listen a music at same time : DIDNT GET FC OR ANY LAG!
tnx in advance
NOTE: don't create swap bigger than 128mb, thats our max internal
Click to expand...
Click to collapse
Tried this last year .....the script was made by custdroid.....
Unfortunately the constant read and write on ROM is not so good for the hardware.. ...so I deprecated the project for mini also with such low internal memory I could create only 32mb swap on internal and the phone soon started yo take its toll ...you may try this but I am sharing my experience cause it may feel smooth for sometime but it reduces the life of your mini considerably cause ROM is supposed to non-volatile unlike RAM which is volatile...
Sent from my GT-S5570 using Tapatalk 2
but isnt everytime you start app you writing and reading with data and cache? on internal?
Nixoman said:
but isnt everytime you start app you writing and reading with data and cache? on internal?
Click to expand...
Click to collapse
But is that really as frequent and as comprehensive as RAM?
Sent from my GT-S5570 using Tapatalk 2
hsay said:
But is that really as frequent and as comprehensive as RAM?
Sent from my GT-S5570 using Tapatalk 2
Click to expand...
Click to collapse
i don't know, only way is to test it by myself, ill report behavior of my mini in one week, iv got nothing to lose, already out of warranty, almost 3 years old, got new nokia n9, i gonna take the bullet for that
Nixoman said:
i don't know, only way is to test it by myself, ill report behavior of my mini in one week, iv got nothing to lose, already out of warranty, almost 3 years old, got new nokia n9, i gonna take the bullet for that
Click to expand...
Click to collapse
That was a rhetoric question ....sarcasm if you may ...anyway you may try it....
Sent from my GT-S5570 using Tapatalk 2
hsay said:
That was a rhetoric question ....sarcasm if you may ...anyway you may try it....
Sent from my GT-S5570 using Tapatalk 2
Click to expand...
Click to collapse
why to be rhetoric when can be (or not) usefull if no harm causing to device? :fingers-crossed:

3.6 GB Storage used up by others after 7.1.1(OOS 4.1.0) Update !!

After Updating to OOS 4.1.0, 3.6gb storage was used by others under storage in settings. Many users are reporting this in Oneplus forums and reddit. I can find nothing in the sdcard. I even factory reset my phone but no use !! When I switch to other roms, there is nothing under others. I switch back to OOS 4.1.0 then again the others is using 3.6gb !! Please help me , Is it for seamless updates or something ??
Whoa dude chill. Lol at least you have it...You have 64gb version?
Sent from my ONEPLUS A3000 using Tapatalk
nano303 said:
Whoa dude chill. Lol at least you have it...You have 64gb version?
Click to expand...
Click to collapse
What?
I have the same problem with lacking almost 4gb
terragady said:
What?
I have the same problem with lacking almost 4gb
Click to expand...
Click to collapse
At least you have the update . 4GB is not too much space does every have this??
Sent from my ONEPLUS A3000 using Tapatalk
I used VPN for Ota. Update is available for everyone.
I do not really understand what you are talking to me.
I'm in the same boat but it's even worse on my end.
Honestly. With so much available space. Does it really matter? This also feels like another storm in a teacup. Oneplus are screwing us once again etc.
white43 said:
Honestly. With so much available space. Does it really matter? This also feels like another storm in a teacup. Oneplus are screwing us once again etc.
Click to expand...
Click to collapse
Yes because we are paying for that memory and instead they load it with crap
Yea, but you're not paying much are you? And with the ease of unlocking the bootloader, rooting, putting on custom ROMs WITHOUT voiding the warranty...Pffff i don't really care.
Not much? It is more expensive now that any other top device from 2016, it is not good cheap OnePlus anymore. They do not change the price over year like the other companies do.
I am pretty annoyed when something is like it shouldn't be. I should have that memory free and it is a bug or something. There is sale for beer and you buy 1L and get only 0,7L, will you be happy? You still have more than 0.5L and you still have cold good beer which is probably enough but yet you paid for 1L and didnt get it
I updated mine over ota yesterday and lost 7% of my storage space. Tried to do a cache wipe from the factory reset screen but that didn't help. Any ideas? This doesn't seem right for an ~350mb update.
nerotic said:
I'm in the same boat but it's even worse on my end.
Click to expand...
Click to collapse
I had this storage bug on my oneplus 3t, but I was on OOS 4.1.0. "Other" was using upwards of 15 gb of data for no reason. I fixed it by downloading ES file explorer in the google play store and analysing the storage. This oddly fixed it for me. The image with ES is my storage after analyzing, and the screenshot with DiskUsage was "Other" usage before. Did you check your oem_log folder to see if that was sucking up your storage?
Ulti2x said:
I had this storage bug on my oneplus 3t, but I was on OOS 4.1.0. "Other" was using upwards of 15 gb of data for no reason. I fixed it by downloading ES file explorer in the google play store and analysing the storage. This oddly fixed it for me. The image with ES is my storage after analyzing, and the screenshot with DiskUsage was "Other" usage before. Did you check your oem_log folder to see if that was sucking up your storage?
Click to expand...
Click to collapse
I checked and this bug is just awful. I deleted 13gb of crap to go back down from 31gb of other to 17gb which I can't find anywhere.
I used the disk usage app to try to figure out what is eating my space and it looks like my system data occupies 26.6 GB. That doesn't seem right. Have only about 4 GB of apps on the phone.
Using the app drives i have only 2.4 GB of system data. Both apps give the same amount of app data.
https://forums.oneplus.net/threads/storage-shows-3-5gb-in-other-after-factory-reset.510890/
EVR_PR said:
https://forums.oneplus.net/threads/storage-shows-3-5gb-in-other-after-factory-reset.510890/
Click to expand...
Click to collapse
That thread isn't accurate by any stretch and there's plenty of evidence on the OP forum showing contrary information.
I decided to take a chance on a tip I saw on Reddit and wipe the userdata partition as well. Immediately after the initializing the OS again I had 14gb used in other (see attached)
However, my issue with the phone not booting because of an encryption problem was resolved. It's looking as though there might be a bug with how the userdata partition is handled.
This is probably a filesystem bug with Android. Far too hasty to blame OnePlus for this. On my S7, if you adopted an SDcard as internal storage, it took the size of the internal and double the size of the sdcard and showed that as availkable. So, in taht case it was 32GB + (64GB * 2) = 160GB, whhich obviously was wrong.
The "other" folder shows App data that isn't part of the APK itself. Any caches, game data, etc.
Mine right now has 10GB apps, 17GB other. I've used 31GB out of 113GB available.
nerotic said:
I checked and this bug is just awful. I deleted 13gb of crap to go back down from 31gb of other to 17gb which I can't find anywhere.
Click to expand...
Click to collapse
Another person said to restart your phone to fix the storage issue. Try that and report back.
Fair enough, a bit hasty in blaming OP I suppose, that's just been my frame of reference.
As for the restart, nothing doing there.

Categories

Resources