LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-29-2003, 12:06 AM   #16
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59

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
Code:
             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 free....now i think this is where you guys are getting messed up...my 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-29-2003 at 12:07 AM.
 
Old 08-29-2003, 01:01 AM   #17
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
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.
 
  


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



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


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration