LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-30-2004, 04:17 AM   #1
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
Good memory guide


Can anyone recommend any good articles on explaining how Linux memory works?

Specifically: The amount of memory reported to be in use keeps growing. I know that Linux keeps stuff in the memory (buffers & cache) but as I currently understand it, the -/+ buffers/cache: line in the output of free should account for that and the reported usage in this line should remain constant. Instead, it keeps going up - It starts as low as ~20MB, but leave it overnight and come back, and it's up to ~180, even though I'm not running anything different.

So I don't know what it's doing, and it's getting on my nerves. Apart from anything else, it makes it impossible to work out how much memory is really in use.
 
Old 06-30-2004, 06:07 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Try this thread from the Gentoo forums for a not-too-technical discussion.


Håkan
 
Old 06-30-2004, 06:38 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Original Poster
Rep: Reputation: 46
It's an interesting thread... but it only explains memory usage being increased by the caching and buffering. It's the increasing memory usage AFTER caching and buffering is accounted for that I don't understand.

Or am I missing something?
 
Old 06-30-2004, 06:55 AM   #4
fluppi
Member
 
Registered: Oct 2003
Location: Switzerland (Europe)
Distribution: OpenSuSE, RedHat, Knoppix, IRIX + MacOSX
Posts: 198

Rep: Reputation: 30
It been keept in the RAM till another Program need RAM and it's no more left. It's been kept for the case of a prgramm will run again.

Let's do an experiment: On a rebootet Linux PC with free RAM, start OpenOffice and get the time. Then close it and start it again. Will it be faster ?
 
Old 06-30-2004, 08:26 AM   #5
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Original Poster
Rep: Reputation: 46
I already know the answer to that one - Yes, it will.

BUT

I was under the impression that things that were being kept in the memory like that were covered by the caching & buffering figures. And therefore shouldn't affect the memory reading in the -/+ buffers/cache: line in free's output?
 
Old 06-30-2004, 09:14 AM   #6
kinasz
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: FreeBSD, Suse
Posts: 103

Rep: Reputation: 15
sign up for a safari books 14 day trial and check out "the linux kernel" by oreilly, 80% of the book is devoted to MM, everything you ever wanted to or could know about it!

safari.oreilly.com/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Good HTML Guide worldgnat Programming 1 06-20-2005 11:19 AM
where's a good networking guide? calebsg Linux - Networking 3 06-17-2005 04:32 PM
memory/performance tuning guide? wijnands Linux - Newbie 2 05-07-2004 04:14 PM
A good postfix guide? herc Linux - Software 8 09-13-2003 01:43 PM
please guide me to good tutorials bearjumperz Programming 1 01-26-2002 06:03 PM


All times are GMT -5. The time now is 08:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration