Hoax
Posts: 10
Joined: Sat Jun 02, 2012 9:30 am
Location: Germany

minimize RAM usage ?

Tue Jun 12, 2012 10:34 am

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

User avatar
RaTTuS
Posts: 10703
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: minimize RAM usage ?

Tue Jun 12, 2012 11:07 am

your RAM will be used as disk cache
stuff that is on the distribution will not use up running RAM - just SD card RAM
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5709
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: minimize RAM usage ?

Tue Jun 12, 2012 11:18 am

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.

Hoax
Posts: 10
Joined: Sat Jun 02, 2012 9:30 am
Location: Germany

Re: minimize RAM usage ?

Wed Jun 13, 2012 3:20 pm

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..
Last edited by Hoax on Wed Jun 13, 2012 3:35 pm, edited 1 time in total.

User avatar
jecxjo
Posts: 158
Joined: Sat May 19, 2012 5:22 pm
Location: Minneapolis, MN (USA)

Re: minimize RAM usage ?

Wed Jun 13, 2012 3:27 pm

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.
xmpp: jecxjo@dukgo.com
Blog: http://jecxjo.motd.org/code

headhoncho
Posts: 7
Joined: Tue Sep 11, 2012 3:13 am
Location: New York

Re: minimize RAM usage ?

Thu Sep 13, 2012 1:59 am

some more info on how to reduce RAM usage

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

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: minimize RAM usage ?

Thu Sep 13, 2012 8:43 pm

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.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

ech0
Posts: 27
Joined: Tue Apr 03, 2012 11:24 am

Re: minimize RAM usage ?

Wed Sep 19, 2012 10:58 am

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.

Return to “Beginners”