LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-04-2004, 08:39 PM   #1
rootking
Member
 
Registered: Sep 2002
Distribution: FreeBSD
Posts: 70

Rep: Reputation: 15
Linux takes RAM and doesn't give it back!


does anyone know why linux will keeping taking physical RAM and never give any of it back until you've rebooted? shouldn't it be giving it back as programs are shutdown? I have an ftp server running on Debian 3.0 w/2.6.5krnl with over 700 MB of RAM and after around a week the ram will be down to around 30 MB. How do you explain this?

thanks
rootking
 
Old 06-04-2004, 08:55 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
it won't 'free' memory until another process need some. it's normal
 
Old 06-05-2004, 12:08 AM   #3
lighty14
LQ Newbie
 
Registered: Jan 2004
Distribution: Gentoo (stage 1)
Posts: 4

Rep: Reputation: 0
Yes, Linux uses up ram that programs aren't using and uses it for disk cache -- Linux stores recently accessed file data in your ram, which allows for programs that access the same files a lot a little faster, as the data is in the ram as opposed to on the harddrive. In reality, Linux uses very little ram, in fact, most Linux desktops would be more than fine with 256mb of ram, as opposed to the now almost standard 512mb.
 
Old 06-05-2004, 09:13 AM   #4
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Use the "free" command and you'll see what rshaw and lighty14 mean. Much of your RAM is just sitting as cache and buffers, waiting for real use.
 
Old 06-19-2004, 09:12 PM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
I found one of the very best explanations for what you want to know right here. This post seems to be one of the best descriptors of Linux memory management out there. You'll know what's really going on after you read this clear explanation. Cheers.



edited, as usual, because I am too proud to use the spellcheck...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE takes you back to the stone age. Rutnut SUSE / openSUSE 23 05-03-2005 11:49 PM
It's my time to give back! ipn1nj4 LinuxQuestions.org Member Intro 1 06-11-2004 03:08 PM
Switching virtual consoles from X then back takes me out of X sharpie Slackware 3 02-13-2004 07:10 AM
Linux (with KDE+GNOME) takes a lot of RAM! ajagodnik Linux - General 12 12-28-2003 09:57 AM
How do you give back? 46and2 Linux - General 14 10-11-2002 05:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration