[APP] Disk Usage (Rooted Devices Only) - Milestone 2 Themes and Apps

hey all, i just stumbled upon this application which uses graphical representation to indicate memory hogs on the storage card, and decided to share it with you chaps
http://forum.xda-developers.com/showthread.php?t=1028393
works as described on my device. do give it a try

I use Memory Usage from the Market myself and find it satisfactory.

Related

Low Memory Warnings

Just attempted to install the Adobe Air APK and I've received a warning that the phone doesn't have enough storage available.
I wouldn't say I have a load of apps installed, the "available storage" was showing at ~ 12mb free - it's now up to ~49mb after un-installing some apps and moving others to the SD card.
Question is though - how much application storage memory does the N1 actually have? I thought with froyo we gained a little more memory (can't quite remember whether that affected the application memory as well)
Checking over the installed apps list there's noting that stands out as huge - Flash 10 is the largest at 12mb.

Swap partition for SGS ?

Hi again guys...
In Linux we have a SWAP partition for some time if RAM (Random Access Memory) will full OR for speed up applications by buffering in swap partition.
(Recommend Linux SWAP partition size: half of RAM)
so Android is Linux based and have kernel like Linux. Is it work to make a SWAP partition for SGS with swap file system?
You don't want that...
Android doesn't wipe RAM immediately anyway, so apps which are open and shutdown can be restarted again quickly (unless the RAM has been reused).
Also, apps on Android are designed to be shut down whenever free RAM runs out (its in the development guidelines that all applications should expect to be shut down at any time). Since most Android phones use high-speed NAND memory, when properly configured, apps load quicker too
The problem with swap is that it can lead to thrashing and loss of battery life. It's good for computers (because generally, you would rather lose performance and ensure you don't lose work), but on Android, applications should be killable at any time, and should have mechanisms to protect their work anyway.
It's probably possible to create a swap partition/file if you wish (try to swapon), but I foresee some potential side-effects, especially if you don't want to spend a lot of time managing memory manually.
i didn't think about battery life.
Thank you so muchhhhhhhhhh
I was actually exploring this option last night and stumbled that the kernel does allows swapon commands. I remembered trying it earlier on a stock rom but it was not available then.
Why I need the swap was because of the frequent shutdown of my launcher pro due to apps contenting for memory. The live wallpaper and heavy Widgets like pure messenger pro aren't helping much either, after much usage the device just slows down, lags and silently kills the background apps. The "minfree" settings were also tweaked but with much less desirable results was seen...
So I downloaded an app called "swapper2" from market and tested via 2 methods; Swap file and swap partition.
The performance of a swap file that sits in the NAND is not really that great. In fact it kinda lags me when memory is being swapped in and out of it. I think its the same problem with the i/o lag problems with any other rom
Then I tried a swap partition on my class 6 SD card. Although the lifespan of the card would be shortened and the battery life would be impacted, the performance is better compared to the earlier method.
In either method, the amont of apps that can be left opened at the foreground and background had increased and doesn't lag as more apps is being launched. Not bad for me but well, I guess it's all up to the user of the device at the end. Just my 2 cents...
I'll try the swap file method again over at the ext2 partition created by the lagfix and see how it goes next. Not sure if anyone interested though...
Sent from my GT-I9000 using XDA App
It seems that using the swap partition doesn't have the lag compared to using the swap file method.
It may be due to the I/O of multiple storage (parallelism ?) is better than a single storage or writing into the raw partition is better in terms of performance than a swap file.
I'm done with my findings, the device still have 60mb free and never lags, I'm sold.
Sent from my GT-I9000 using XDA App

[Q] CM6.1, Chevy1 Kernel, Swap, and Memory Management

Sort of technical question, as this goes into CM6.1 and mem management.
I have the original Droid, Verizon. I had it rooted for a while and recently finally installed CM6.1 (stable release).
Issue 1: Free memory
I am having background services constantly killed by the system whenever ANY app is loaded, with exception of map and music. I thought CM6.1 would solve it but it did for only 2 days. Both DiskUsage and Settings / SD card and storage shows like 130 out of 262 available. Yet my services are STILL getting whacked left and right.
I opened terminal emulator and typed FREE... That says I have 5-10 MB available.
Now the overall situation... I am getting tired of the system killing my services, and I really don't have that many loaded. I got Titanium Backup, Clock Widget, Juice Defender, SeePU, Screebl pro, SetCPU widget, Vlingo (then there's TTS, Bluetooth, Google, and SwiftKey, but those are required).
Just checked again: say 130MB available out 262 (well, 256). however, FREE at terminal emulator right now is 4812.
Q1: Why would the free command show a completely different result from the system?
I can guess it was more of a "snapshot", but that's a pretty HUGE discrepancy.
So where is all that free memory going?
Issue 2: CompCache and Swap
I found references to CompCache and swap file. I know they are not helpful to later phones with 512MB, but it's probably helpful somewhat on my Droid with just 256MB of RAM.
I looked up CompCache and I know it's specific to kernel implementations. The Chevy kernel (1.1 GHz ULEV) I had loaded doesn't support CompCache. Or else Cyanogen would have displayed it.
So I downloaded Swapper (the one with the green icon). Created a 128MB swap file. Then I rebooted, and tried "free" at terminal... SWAP shows ZERO.
I thought it was a problem with the program, so I downloaded the OTHER Swapper program, Swapper 2. Tried that. Got "failed to create swap file -- swapon not implemented. "
Yet every reference I see for SWAP does not mention kernel at all. All the references I see just say run the app or type in these commands at busybox/terminal and voila, SWAP!
Q2: As CompCache is kernel dependent, is swap also kernel dependent?
Is there a chart where it shows which kernel is compatible with what?
Oops, answer my own questions...
A1: Yes, P3Droid kernel DOES support SWAP. Just put it in, and SWAPPER is working now. Dumb me.
A2: With SWAP enabled (swapper 2 defaults to 32MB), available memory still shows 130MB in (SD card and Storage) and "free" now shows 32-40MB free (main memory shows 5MB free).
(and yes, P3Droid kernel supports compcache too)
Sorry, answered my own questions. I'll probably do a few tests and which is more beneficial: compcache, swap, both, or neither.
First test... 32 MB swap not enough
The "memory available" isn't working or is reporting weird figures.
DiskUsage comfirms 130 MB available out of 256, but my services are still closing left and right.
Tried 32MB swap, delayed problems, but it still happened. I've bumped it up to 128MB swap... Sometimes the phone's slow as heck.
I think I'll have to try CompCache with no swap, and other tests.
Can someone recommend some test apps that will eat up a big chunk of memory?
Slight update
My apologies if this is an FAQ.
The "memory available" shown in ATK seem to be more accurately reflecting the numbers I get from the "free" command.
The "internal storage available" in "SD card and storage" under settings and "diskusage" aren't showing ANYTHING useful. it seem to be showing basically what's left after all the Move2SD was done.
Strangely, this only happened AFTER my CM6.1 update. Under the stock ROM, DiskUsage actually shows "System" taking up like 30+ MB in internal storage. Under CM6.1 there was no "system" taking up anything.
Is CM6.1 managing memory differently or interacting with DiskUsage differently?
DiskUsage measures the usage of storage on your phone/SD. This is akin to a hard drive on a PC.
"free" and "memory available" measures the available memory on your phone. This is the phone's RAM, which is a separate thing from storage.
The reason that your apps/services are being killed is because you do not have enough available memory (RAM) and has nothing to do with storage.
Got that, thanks. I guess I am just confused on the following:
1) DiskUsage and "settings / SDcard and Storage / Internal storage available" shows what's "left" in internal memory 'storage-wise', but not the "OS free mem". Right?
2) Then what is the "memory available" shown in ATK Froyo? (or SeePU?) Usually shows 30MB, up to 60MB if I kill a few things in ATK.
3) So far the most accurate mem count is the one provided by 'free' in Terminal. That number is consistently TINY (a few MB)
4) And what are the numbers shown at the bottom of the "Manage Services" screen? I know the numbers on the right (in the "green") are all the services added together. I am going to guess that the numbers on the LEFT (red) would be the system process (phone, and system?)
5) And how does this match up with the OOM/Lifecycle?
I was looking at the output from WatchDog Lite / Auto Memory Manager (under running processes) but the "memory used" in those readings seem to be way larger than it should be. Every app seem to be taking 12-20MB, and there shouldn't be memory available to load them all.
I guess I'm just trying to figure out where did all my memory went, since none of the numbers seem to add up to me.
(The overall problem is I'm trying to figure out why my background services keep getting killed by the system from, as you said, lack of memory. I already got rid of just about everything, even Flash, from my Droid)

Ram management

hi,
i have notice that the ram usage is quite high on g note easily reach to 90% usage and will become slow. is there any way to use swapmemory on any kernel i have try few method but unable to create a swap file.
thanks.
Android manages free memory filling almost all the available ram with background applications choosen & launched by android
system itself. When the foreground app requests more memory the background apps are killed by the system freeing the requested memory.
This behavior can be changed tweaking some android system parameters/properties.
EG: In the ICS control panel, under 'developer' tab and then under 'applications' section, you find an option to limit the background
processes spawned by android system. You can set it at zero and notice that the reported freee memory should improve.
I can't tell to you if this can give more speed to your system
------
Installing a swap partition is not so easy, and swapping is slow as the mmc is (respect to the main ram)
Look at this post that explains how to enable swap partition on S III
http://www.xda-developers.com/android/swap-partition-on-the-galaxy-s-iii-for-virtual-ram/
Remember : is for S III so the method should not work with Note but is a good starting point to enabling the swap space on note.

[Q] External memory (memory card) usage

I've got a question regarding the RAZR i (and no doubt other Motorola models), regarding the use of the external memory (card slot) to store app data.
I've bought a 64GB memory card (at £35 including postage it was silly not to!) and it's great that I can fill it with video, music and save camera photos to it (the one app that gives me the option).
However, I've installed a shed load of apps - including things like CoPilot Live, which has very large maps. These all go on the internal 'SD Card' and, obviously, means I'm now being told that I'm running low on space - despite having almost 35GB free on the memory card.
Is there any way to move stuff to the physical memory card (mnt/external1) without rooting?
jonmorris said:
I've got a question regarding the RAZR i (and no doubt other Motorola models), regarding the use of the external memory (card slot) to store app data.
I've bought a 64GB memory card (at £35 including postage it was silly not to!) and it's great that I can fill it with video, music and save camera photos to it (the one app that gives me the option).
However, I've installed a shed load of apps - including things like CoPilot Live, which has very large maps. These all go on the internal 'SD Card' and, obviously, means I'm now being told that I'm running low on space - despite having almost 35GB free on the memory card.
Is there any way to move stuff to the physical memory card (mnt/external1) without rooting?
Click to expand...
Click to collapse
Everyone on Atrix HD wants to do this to, but they can't because they cannot root. Apps like Apps2SD require root to function.
Unlike Atrix HD, you are offered a way to root while they can never do it.

Categories

Resources