Page 1 of 1

minimize RAM usage ?

Posted: Tue Jun 12, 2012 10:34 am
by Hoax
Hi there!

I've running the pi with 192MB Ram and wanted to know how it's possible to minimize the RAM usage? Actually there's a CS Server (OSCAM) running with IPC on Apache + Owncloud. But Owncloud doesn't seem to use that much mem. It's IPC which uses the most RAM.

Is it possible to decrease the memory usage by uninstalling any components which was shipped by debian 19-04-12 image or which got installed as a dependency etc.? There are around 15MB of free RAM now. I could change to 224 MB of course, but I don't want to loose the ability to run LXDE or VNC to control the desktop if neccessary.

Not sure what I want to try next, but 15MB of free RAM don't seem to be much to test anything...

Am I able to see which program uses the most memory and how much? Is there a way to auto-clean the ram, for unused things?

Sorry, I am really new to this, so please be patient with me ;)

Regards from germany
Florian

Re: minimize RAM usage ?

Posted: Tue Jun 12, 2012 11:07 am
by RaTTuS
your RAM will be used as disk cache
stuff that is on the distribution will not use up running RAM - just SD card RAM

Re: minimize RAM usage ?

Posted: Tue Jun 12, 2012 11:18 am
by dom
Hoax wrote:I could change to 224 MB of course, but I don't want to loose the ability to run LXDE or VNC to control the desktop if neccessary.
You wouldn't. 224 MB stops 3D and video. It doesn't affect LXDE.

Re: minimize RAM usage ?

Posted: Wed Jun 13, 2012 3:20 pm
by Hoax
Am I able to change from 192 to 224 easily by replacing the files, or is there anything I need to think before? I already updated the firmware with hexxeh's autp-updater for 192 settings..

Re: minimize RAM usage ?

Posted: Wed Jun 13, 2012 3:27 pm
by jecxjo
Hoax wrote:Am I able to chance from 192 to 224 easily by replacing the files, or is there anything I need to think before? I already updated the firmware with hexxeh's autp-updater for 192 settings..
If you use hexxeh's rpi-update then you can run

Code: Select all

rpi-update 224
then reboot.

Re: minimize RAM usage ?

Posted: Thu Sep 13, 2012 1:59 am
by headhoncho
some more info on how to reduce RAM usage

http://extremeshok.com/blog/debian/rasp ... ory-usage/

Re: minimize RAM usage ?

Posted: Thu Sep 13, 2012 8:43 pm
by pluggy
You don't need rpi-update with raspbian, apt-get upgrade will get you the latest stable updates. You can go beyond 224 MB to 240 MB obviously at the cost of only having 16 MB video memory. In the /boot folder you just copy arm240_start.elf to start.elf/

Code: Select all

sudo cp /boot/arm240_start.elf /boot/start.elf
and then reboot.

Re: minimize RAM usage ?

Posted: Wed Sep 19, 2012 10:58 am
by ech0
You can check your active processes with the command

Code: Select all

ps aux | less
See what kind of processes eats most of the memory and kill/uninstall the ones which is unnecessary for you.