LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-11-2004, 07:03 PM   #1
Boomba
Member
 
Registered: Jan 2004
Distribution: Fedora Core 4
Posts: 57

Rep: Reputation: 15
Linux Memory usage


hi

I havea quick general and curiouse question about the memory usage statistics shown in the system monitor.

I'm using red hat 9 and I noticed that when I add the system monitor applet to my panel right after I first log in it says that 70 megs of memory is being used and 86% is free (when I mouse over th applet)..well thats great that means that it uses less memory thenmy windows xp

but when I open the sytem monitor from the panel start menus..the statistics are way different it says 130 megs are being used...so theres a huge difference..why is that? which one is more accurate?

thanx in advance,
Boomba
 
Old 03-11-2004, 07:14 PM   #2
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
i have defintely noticed the same when it comes to the gui system monitors versus other outside programs

both the kde and gnome system info tools tell me that i have enormous amounts of memory used, while gkrellm tells me that only a small amount is used...

i don't know why this is happening; perhaps it reads two different files and has 2 different meanings?
 
Old 03-11-2004, 07:29 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well, I guess it depends on your angle (as a
programmer) ... Linux will basically grab ALL
available memory (in terms of the kernels usage
I only have 5096Bytes free on a 512MB machine
with hardly anything running). You could, of course,
look at the sum of RAM that Applications chomp up
and consider THAT the memory usage. Or you could
look at buffers & caching as well ... the best thing
is probably to use free on the command line as well
as top and make sure you understand what both do :)


Cheers,
Tink
 
Old 03-11-2004, 09:37 PM   #4
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Gkrellm doesn't count buffers and cache, but there's an option to display dividers (krells) for them... same mem info you get from vmstat. GNOME sys mon counts them together like free does.
 
Old 03-12-2004, 09:58 AM   #5
Pro)ZeuS
LQ Newbie
 
Registered: Mar 2004
Location: Iowa
Posts: 3

Rep: Reputation: 0
I just installed Fedora(red-hat) on my system, and when I look at mem. usage under system monitor it shows that Im useing 978MB ( holly shit) out of a possible 1024MB now I know that it really cant be useing that much but it seems weird that It would show up like that any suggestions.
 
Old 03-12-2004, 10:05 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by Pro)ZeuS
I just installed Fedora(red-hat) on my system, and when I look at mem. usage under system monitor it shows that Im useing 978MB ( holly shit) out of a possible 1024MB now I know that it really cant be useing that much but it seems weird that It would show up like that any suggestions.
Apparently you didn't read the above posts did you? They explain that this is normal.
 
Old 03-25-2004, 01:56 PM   #7
Boomba
Member
 
Registered: Jan 2004
Distribution: Fedora Core 4
Posts: 57

Original Poster
Rep: Reputation: 15
thanx for your replies guys..I understand the memory usage moe now.....I have one more question..I find that as I use programs and close them the same amount of memory used to run them is not "freed" after I close them....there for the more programs I open and close the higher my ram usage goes when nothing is being run at all...is this a bad thing?..is this a memory leak?..and if this is normal, is there anything I can do to free that wasted ram?

thanx in advance,

Boomba,
 
Old 03-25-2004, 04:09 PM   #8
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Someone please correct me if I'm wrong....I've had this belief in my head for some time, but never found out whether or not it's fact....

It's not a memory leak, or wasted. This memory is free to use...it's simply not "freed" until it is needed.
An example of where this is useful: Assume you open a huge file, and then close it. Then you suddenly realize you forgot to edit a portion of the file, so you reopen it. This file (as far as I know) is already stored in RAM, provided you have enough available ram in which to store it, so it takes less time to load it.
If you don't reopen it, but instead begin a different task, that RAM will be freed, if needed for your new process.
 
Old 03-25-2004, 04:16 PM   #9
Boomba
Member
 
Registered: Jan 2004
Distribution: Fedora Core 4
Posts: 57

Original Poster
Rep: Reputation: 15
that makes sense..thank you for your explanation
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Usage on Linux lchand_p Linux - Software 2 06-19-2006 06:17 AM
Linux kernel memory usage.. drminix Linux - Software 1 08-14-2005 05:47 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Linux and Memory usage ganninu Linux - General 8 12-15-2003 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:05 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