Active Topics

 


Reply
Thread Tools
zeleftikam's Avatar
Posts: 66 | Thanked: 7 times | Joined on Jan 2008 @ Madison, WI
#1
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?
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#2
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.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following User Says Thank You to fanoush For This Useful Post:
ericdkirk's Avatar
Posts: 232 | Thanked: 45 times | Joined on Jul 2007 @ Tennessee, US
#3
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
 
Posts: 55 | Thanked: 6 times | Joined on Feb 2008
#4
@ericdkirk,

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

My N800: OS2008, Fanoush's initfs, SanDisk 4Gig x 2 SDHC, BoxWave FlexSkin and Sync Charger, Homebrew External Power Pack (4xAA NiMH Rechargeable 2400 mA)

Greetings from Sunny San Diego, California!
 
terrencegf's Avatar
Posts: 221 | Thanked: 182 times | Joined on Jul 2007 @ Central Illinois
#5
Originally Posted by jamesc760 View Post
How did you create a 256MB swap on your 770?
Probably used these instructions for creating a bigger swap file from the command line.
 

The Following User Says Thank You to terrencegf For This Useful Post:
ericdkirk's Avatar
Posts: 232 | Thanked: 45 times | Joined on Jul 2007 @ Tennessee, US
#6
^
Exactly those instructions
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:12.