Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-28-2003, 11:06 PM   #16
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60

ok first off, i will explain something to you guys...cause i see a couple of you don't know how the memory managment works...
your machine is not sucking up and using all your memory...
run this command in the terminal (and i will show the output of mine for example purposes):
free -m
             total       used       free     shared    buffers     cached
Mem:           628        431        197          0        132        151
-/+ buffers/cache:        146        481
Swap:         1278          0       1278
now as you see i have a total of 628 megs of ram...and it says there is 471 used and 197 i think this is where you guys are getting messed machine is not actually using all that memory for apps and services or whatever it may be...
but if you look to the second line, you will see that most of my memory is cached, and that i am actually only using up 146 megs of my memory, and that there is 481 out of my 628 free...
so to give you a technical explanation of all this read on ....
Both disk buffers and page cache resources will grow until there is very little free memory left. This allows Linux to dynamically create VERY large amounts of these two resources.
When you run a program in Linux, it will check to see if there is free memory available that can be used to store the program. If so, it will allocate that free memory and load the program. If there is not enough free memory, it will examine the disk buffer and page cache resources and shrink them in order to
make free memory that can be used to store your program in memory and run it.
i hope you guys understand the point i am trying to get across...

Last edited by DrOzz; 08-28-2003 at 11:07 PM.
Old 08-29-2003, 12:01 AM   #17
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Yes I understand, DrOzz. But, when your trying to run a program and your cpu is crunching, your RAM is topping out, your HD light is on, that means you need more system resources. You can either add more hardware or lower your usage by turning off services and using lower memory programs such as the window manager.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
any k3b gurus?? wrat Linux - Newbie 3 06-18-2005 04:14 PM
Any Gtk+ 2.0 Gurus? aggiefl Programming 0 03-25-2004 12:06 PM
Ok gurus, newbie needs mad prevention and detection system patientzero Linux - Security 5 09-03-2003 05:30 AM
Calling all gurus (and those who think they can help) bmike1 Linux - General 4 08-10-2003 03:10 AM
Need gurus' help... fxlee Linux - Networking 1 01-28-2002 09:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 AM.

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