maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Ram Usage (https://talk.maemo.org/showthread.php?t=38316)

backwoods 2009-12-24 16:10

Ram Usage
 
What would the normal be on the RAM usage while running idle? With 60% showing with corky running is this good? It seems a little high but didn't know.

fnordianslip 2009-12-24 16:24

Re: Ram Usage
 
Unused RAM is a waste of, er, well, RAM. Linux will allocate RAM for cache and buffers when it has more than it needs.

Conky actually has two variables called "memfree" and "memeasyfree". The latter includes memory that is easily freed up, from buffers, etc. Note that the default Conky config uses neither of these.

A quick experiment with both leads me to conclude that the RAM Usage shown in Conky is based on the memeasyfree context, i.e. it doesn't include RAM allocated to buffers, etc.

In general, there's not much to worry about with RAM usage. If your Swap usage is high, then the system is getting heavily loaded.

Hope this helps.

backwoods 2009-12-24 16:30

Re: Ram Usage
 
Thanks I am running about 2% swap which for this device overall is damn good I am thinking. RAM seems a little high would like to see it down to about 20% when idle but for as small of a device as this is it appears to be understandable

j.s 2009-12-24 16:57

Re: Ram Usage
 
Quote:

Originally Posted by backwoods (Post 440452)
Thanks I am running about 2% swap which for this device overall is damn good I am thinking. RAM seems a little high would like to see it down to about 20% when idle but for as small of a device as this is it appears to be understandable

You may not have quite got what fnordianslip wrote.

When linux reads some data from disk, it leaves it in RAM, just in case it needs the data again. When all the RAM has been used and more data is read, it replaces data that has not been reread very often or was read the longest time ago. If All the RAM is being used by running programs, then some data is moved from RAM to swap.

A lot of data is read by linux just booting, so very little RAM is ever completely free.

backwoods 2009-12-24 17:04

Re: Ram Usage
 
OIC Thanks, I sort of had a brief understand of the ram and always thought that the lower the amount the better when idle for speed when running mutiple programs at the same time. Swaping I am not to sure about but knew it had something to do with the ram, process and cpu speed. It seems to be doing pretty good at the moment I just thought it may have been a little high. Thanks

jaeezzy 2010-02-06 06:06

Re: Ram Usage
 
Hi I'm a little curious that Conky shows that my swap is used at around 4% just while opening browser(inbuilt and after a reboot) and as I write it went up to 7%. From my understanding, shouldn't it be used only when RAM is fully used coz my RAM usage is just 66%? and also that I understand swap is slower than RAM. Is it normal? Thanks.

shadowjk 2010-02-08 00:02

Re: Ram Usage
 
No, rarely used data often gets moved to swap and the ram freed used to cache often-used files instead.

jaeezzy 2010-02-08 01:36

Re: Ram Usage
 
Quote:

Originally Posted by shadowjk (Post 515134)
No, rarely used data often gets moved to swap and the ram freed used to cache often-used files instead.

Sorry but is the reply "No" an answer to my question "is it normal?"

CrashandDie 2010-02-08 04:07

Re: Ram Usage
 
Quote:

Originally Posted by jaeezzy (Post 515206)
Sorry but is the reply "No" an answer to my question "is it normal?"

Yes, it is.

Edit: 200th post, woohoo!

jaeezzy 2010-02-08 11:48

Re: Ram Usage
 
Quote:

Originally Posted by CrashandDie (Post 515353)
Yes, it is.

so what should be done??

zerojay 2010-02-08 11:51

Re: Ram Usage
 
Quote:

Originally Posted by jaeezzy (Post 516023)
so what should be done??

Nothing. That's perfectly normal.

zimmerit 2010-06-04 18:09

Re: Ram Usage
 
I lift this thread as I'm still confused what is a normal ram usage. Does this look normal?

http://img683.imageshack.us/img683/2641/ramuse.jpg

Only apps I've installed are 2g/3g selector, rootsh and OpenSSH client. Still ram usage jumps to that in a five minutes of reboot.

woody14619 2010-06-04 18:30

Re: Ram Usage
 
The memory manager for the device is pretty optimal at figuring out how to optimize things. If you feel the device is being slow, look at what you have running/loaded and see if you can spare it. (Widgets on your desktop, background programs, tool bar plugins, etc.)

Since there's no way to upgrade the amount of ram in the system, worrying about how it's being managed is kind of pointless. And if you haven't loaded it up with 50+ running apps or widgets or plugins, you're pretty much good. :)

zimmerit 2010-06-04 19:12

Re: Ram Usage
 
Actually I was looking for reasons for short standby battery life (~30 hours), never had any problems device being slow with any programs:)

But does ram usage affect on that, if cpu usage stays around 0-3 % all the time?

fnordianslip 2010-06-04 19:58

Re: Ram Usage
 
Quote:

Originally Posted by zimmerit (Post 699998)
Actually I was looking for reasons for short standby battery life (~30 hours), never had any problems device being slow with any programs:)

But does ram usage affect on that, if cpu usage stays around 0-3 % all the time?

Dynamic RAM (DRAM) like we have in these devices consumes power whether it is in use or not (for most definitions of 'in use'). So, the amount of RAM provided is subject to a tradeoff against battery life.

Linux prefers to use RAM for disk/file caching than to leave it unused, as unused RAM is a waste of space and power (and RAM). Swapping to/from the eMMC might consume more power though, not sure, but if you're idling at 3%, then you're probably not swapping.


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

vBulletin® Version 3.8.8