maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   How to check memory (RAM) usage? (https://talk.maemo.org/showthread.php?t=18007)

zeleftikam 2008-03-17 11:29

How to check memory (RAM) usage?
 
How can I check the amount of free RAM (not STORAGE memory) on my N800? The "free memory" statistic at the top of "top" doesn't ever seem to change. Any ideas?

fanoush 2008-03-17 12:13

Re: How to check memory (RAM) usage?
 
You can install htop from maemo repository http://maemo.org/development/tools/
htop is slightly better but still the fundamental problem here is that you really don't want to monitor "free memory" in linux. Free memory is wasted memory, the best for the system is to keep free memory at zero. For finding who eats the memory watch "RES" (resident set) column in htop and substract "SHR" (shared set).

You can also run something like this (maemo-developers, Subject: Re: C - Hildon - Memory usage Date: Tue, 12 Feb 2008 16:50:40 +0200 From: Eero Tamminen )
Code:

awk '/Private_Dirty/{sum+=$2}END{print sum "kB"}' /proc/$(pidof myprogram)/smaps
to see private memory taken by specific program.

ericdkirk 2008-03-17 13:51

Re: How to check memory (RAM) usage?
 
If you just want an overview you can run 'free' in the terminal it will look like this



Code:

-:~# free
              total        used        free      shared      buffers
  Mem:        62176        60328        1848            0            8
 Swap:      255992          20      255972
Total:      318168        60348      257820


jamesc760 2008-03-18 15:46

Re: How to check memory (RAM) usage?
 
@ericdkirk,

How did you create a 256MB swap on your 770? I assume 770 since you only seem to have 64 Meg builtin RAM.

terrencegf 2008-03-18 16:23

Re: How to check memory (RAM) usage?
 
Quote:

Originally Posted by jamesc760 (Post 156859)
How did you create a 256MB swap on your 770?

Probably used these instructions for creating a bigger swap file from the command line.

ericdkirk 2008-03-18 16:56

Re: How to check memory (RAM) usage?
 
^
Exactly those instructions


All times are GMT. The time now is 22:00.

vBulletin® Version 3.8.8