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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-30-2004, 03:17 AM
|
#1
|
|
Senior Member
Registered: Nov 2003
Location: West Sussex, England
Distribution: Gentoo
Posts: 1,457
Rep:
|
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.
|
|
|
|
06-30-2004, 05:07 AM
|
#2
|
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
Try this thread from the Gentoo forums for a not-too-technical discussion.
Håkan
|
|
|
|
06-30-2004, 05:38 AM
|
#3
|
|
Senior Member
Registered: Nov 2003
Location: West Sussex, England
Distribution: Gentoo
Posts: 1,457
Original Poster
Rep:
|
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?
|
|
|
|
06-30-2004, 05:55 AM
|
#4
|
|
Member
Registered: Oct 2003
Location: Switzerland (Europe)
Distribution: OpenSuSE, RedHat, Knoppix, IRIX + MacOSX
Posts: 198
Rep:
|
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 ?
|
|
|
|
06-30-2004, 07:26 AM
|
#5
|
|
Senior Member
Registered: Nov 2003
Location: West Sussex, England
Distribution: Gentoo
Posts: 1,457
Original Poster
Rep:
|
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?
|
|
|
|
06-30-2004, 08:14 AM
|
#6
|
|
Member
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: FreeBSD, Suse
Posts: 103
Rep:
|
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/
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:05 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|