PDA

View Full Version : Memory usage app inaccurate?


cagilaba
07-20-2006, 06:28 AM
Hi everyone.

I'm using OS 2006 and the built-in Memory app gives me weird data for device memory usage. It seems kind of inaccurate. It claims:

13% used
Storage memory in use: 7.85 MB
Storage memory available: 50.2 MB

First of all, that's more like 15.6 percent, but whatever.

The problem is that it goes on to provide a categorized list of what's using the memory up, including:

Installed applications: 14.9 MB
Video clips: 2.59 MB
Audio clips: 4.77 MB
etc.

Wait a minute... that adds up to more than 7.85 MB!! :confused: What gives? Anyone else have this annoying problem? Is there any way to get more accurate info?

I did a df -h but unfortunately had trouble interpreting the results. I assume the /dev/mtdblock4 mounted at / (123.5M, 52.6M free) corresponds to the internal flash memory.

fanoush
07-20-2006, 07:51 AM
I did a df -h but unfortunately had trouble interpreting the results. I assume the /dev/mtdblock4 mounted at / (123.5M, 52.6M free) corresponds to the internal flash memory.
Yes. And it is also good to know that the jffs2 filesystem has inbuild compression. This means that when enumerating files and adding its size you may get even twice the size of space really used (and reported by df).

gnuite
07-20-2006, 06:17 PM
13% used
Storage memory in use: 7.85 MB
Storage memory available: 50.2 MB
"Available" in this case means "free", the opposite of "in use", so memory "in use" should not be included as part of memory "available". The total amount of memory available to be used is (50.2 + 7.85), or about 58 MB.

So, don't divide 7.85 by 50.2 to get 15.6%; you should be dividing 7.85 by 58 to get 13.5% (which rounds down to the 13% that they give).