maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Memory bloated? (https://talk.maemo.org/showthread.php?t=89270)

tortoisedoc 2013-02-23 21:00

Memory bloated?
 
It happened today that during my various tests,
I had to fire up good old top; and I noticed my 1GB RAM being fully used!
Now this is totally a newbie question and I apologize for that.
Is this normal on harmattan?

It seems all the device slowdowns occour exactly once the memory is full.
EDIT : which is compatible with swapping happening.

burwat292596 2013-02-24 05:30

Re: Memory bloated?
 
http://everythingn9.com/ has an article on swap etc in one of their most recent posts....

ladoga 2013-02-24 06:14

Re: Memory bloated?
 
Quote:

This 768MB can quickly be used up, and if you load quite a few apps open at the same time, you may notice the device starting to slow down,and even closing all of these apps sometimes is not enough.
This is ********. Quitting app will free the RAM.
Cache is essentially free memory.

tortoisedoc 2013-02-24 10:14

Re: Memory bloated?
 
Okay;
a bit of investigation turned up that everything is ok.
Maybe the fact that I did not reboot my phone in like two weeks contribuited to the bloating :P.
So, on boot up (at the first moment a SSH connection via SDK mode is available) the ammount of used RAM is about 720 Megs (according to top).

After boot is complete, applications are then pre-started as configured by each application (and as expected; so nothing strange here).
Opening many apps turned out to push the mem to 1 GB; but no problems (except the usual slow downs). So nothing weird here :).

Perhaps using inception it could be easy to force a non-prestarted mode for most of the apps, which would save ram, and maybe also power?

herpderp 2013-02-24 10:32

Re: Memory bloated?
 
Linux always uses up all available memory for buffers/cache, nothing strange there. Unused memory is wasted memory.

tortoisedoc 2013-02-24 12:22

Re: Memory bloated?
 
Quote:

Originally Posted by herpderp (Post 1324758)
Linux always uses up all available memory for buffers/cache, nothing strange there. Unused memory is wasted memory.

Sure that.
But also wasted battery.

herpderp 2013-02-24 14:50

Re: Memory bloated?
 
Quote:

Originally Posted by tortoisedoc (Post 1324772)
Sure that.
But also wasted battery.

Really? Care to explain how?

You think that unused memory will not use electricity?

tortoisedoc 2013-02-24 15:19

Re: Memory bloated?
 
Quote:

Originally Posted by herpderp (Post 1324797)
Really? Care to explain how?

You think that unused memory will not use electricity?

DRAM requires periodic refresh to retain values.
I would assume in low power envs unused DRAM would smartly be kept off (thus avoiding unnecessary currency drain).


But then again, I have no idea how DRAM in low power works so I am most likely wrong (even tho my thought sounds quite logical to me) :).

EDIT: no mentioning of dropping currency drain from unused ram it seems.

http://en.wikipedia.org/wiki/Mobile_DDR

herpderp 2013-02-24 15:46

Re: Memory bloated?
 
Quote:

Originally Posted by tortoisedoc (Post 1324804)
DRAM requires periodic refresh to retain values.
I would assume in low power envs unused DRAM would smartly be kept off (thus avoiding unnecessary currency drain).
But then again, I have no idea how DRAM in low power works so I am most likely wrong (even tho my thought sounds quite logical to me) :).

EDIT: no mentioning of dropping currency drain from unused ram it seems.

http://en.wikipedia.org/wiki/Mobile_DDR

Of course not - switching them on and off would drain more power, not to mention the lag caused of having to switch on banks of memory when you need them.

So, next time please inform yourself before spreading misinformation.

tortoisedoc 2013-02-24 15:59

Re: Memory bloated?
 
Quote:

Originally Posted by herpderp (Post 1324812)
Of course not - switching them on and off would drain more power

Meaning how?


All times are GMT. The time now is 08:28.

vBulletin® Version 3.8.8