jarrodr
Posts: 19
Joined: Tue Jun 19, 2012 4:55 pm
Location: South Africa

How to free up memory on 256mb model?

Sun May 19, 2013 7:56 am

Hi guys,

Need some help, I seem to be having a memory problem. How do I identify and free up memory up? - Any tips and tricks.

I have TightVNC, SABnzbd, Sickbeard, Deluged and Samba installed. I have a 4gig SD card.

All help is much appreciated.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: How to free up memory on 256mb model?

Sun May 19, 2013 2:07 pm

Memory ? Or Disk Space ?
If you mean Disk Space, then run this as root from /

Code: Select all

du -hx --max-depth=1
If you mean memory, check top and see what process is using up most of your memory
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

jarrodr
Posts: 19
Joined: Tue Jun 19, 2012 4:55 pm
Location: South Africa

Re: How to free up memory on 256mb model?

Sun May 19, 2013 4:47 pm

SirLagz wrote:Memory ? Or Disk Space ?
If you mean Disk Space, then run this as root from /

Code: Select all

du -hx --max-depth=1
If you mean memory, check top and see what process is using up most of your memory
Memory as in RAM. Sorry SirLagz, I'm a noob to Linux.
How do I check the what processes are running?

ghans
Posts: 7863
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: How to free up memory on 256mb model?

Sun May 19, 2013 5:53 pm

Code: Select all

top
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

jarrodr
Posts: 19
Joined: Tue Jun 19, 2012 4:55 pm
Location: South Africa

Re: How to free up memory on 256mb model?

Sat Nov 09, 2013 8:38 am

"top" shows me current memory usage. How do I free memory? eg. Killing processes.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22747
Joined: Sat Jul 30, 2011 7:41 pm

Re: How to free up memory on 256mb model?

Sat Nov 09, 2013 9:00 am

In general, its very dangerous to kill processes in Linux - there may be unintended consequences.

Although, if a process is just sitting there, it wont be using much RAM - it will all be swapped out - if you have a swap disk enabled.

Look up swap disks, and the 'kill' command
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
duberry
Posts: 379
Joined: Mon Jan 28, 2013 10:44 pm
Location: standing on a planet that's evolving. And revolving at nine hundred miles an hour

Re: How to free up memory on 256mb model?

Sat Nov 09, 2013 9:09 am

ghans wrote:

Code: Select all

top
im not at my raspberry atm
but i think you can aslo chk on memory with

Code: Select all

free
or

Code: Select all

free -m
to show in MB
lend me your arms, fast as thunderbolts, for a pillow on my journey.
If the environment was a bank, would it be too big to fail
so long; and thanks for all the pi

Return to “Debian”