LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2003, 08:34 PM   #1
mrnikeswsh
Member
 
Registered: Aug 2003
Distribution: MNF
Posts: 41

Rep: Reputation: 15
Memory Question


Ok... I have a AMD 1.33 chip and 256 megs of ddr.
And my mandrake 9.1 is running very..very good. (could be better...but i'm only 3 days into LINUX)

here is my QUESTION... using the command top my memory reports as
255612k total, 178920k used, 76692k free

but GKRELLM reports at 163M free?

I'm sure the command line is the correct one...but why the difference?

Brian
 
Old 09-11-2003, 09:35 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
this is because one is reporting the accurate actual memory free, and the other one is reporting the actual memory free minus the buffered/cached memory...
so gkrellm is the one telling you your actual amount of free memory....memory management works different in linux than os's like windows by using buffers and cache...
use the command free -m in the terminal and i'll use my output to show you what your looking for...
Code:
             total       used       free     shared    buffers     cached
Mem:           628        522        105          0        143        225
-/+ buffers/cache:        154        474
Swap:         1278          8       1269
as you can see i have 628 total, and it says that 522 is used and only 105 is free....but in actuality you can see that 143 is in buffers and 225 is in cache...now if you add my free + buffer + cache you will see that it adds up to 473, which is my actual amount of memory that is not being used by anything....
which brings me to the second row, which is the line you are interested in....
which shows that i really only have 154 megs of ram used with 474 megs free....

so realating to your figures the 76megs free is probably the actual amount free minus buffers/cache...
which if you add them numbers together you'll see 163 which is what gkrellm is reporting...
so run that command and check it out, and you should notice that the top command is reporting the number in the first row under the free column, and that gkrellm will report the amount in the second row under the free column...
 
Old 09-11-2003, 09:40 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,860

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"why the difference?"

Linux saves old programs and buffers for potential future use. So a piece of memory can be in one of three possible catagories:

1. currently in use

2. free memory

3. previously used and the data could be reused, or available as free memory.

Some memory usage programs report catagory 3 memory as free memory and some report it as in use.
 
Old 10-31-2003, 05:50 AM   #4
amalagaura
LQ Newbie
 
Registered: Sep 2003
Location: Mumbai, India
Distribution: Clarkconnect RedHat 9.0
Posts: 2

Rep: Reputation: 0
Thanks for clearing that up!
 
  


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
memory question buttnutt Linux - Hardware 4 03-16-2005 02:05 PM
question about memory ? maxboost Linux - General 3 02-25-2005 03:58 PM
memory question true_atlantis Linux - Newbie 2 10-30-2004 11:09 PM
Memory question mmars Linux - General 3 09-04-2003 10:27 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM


All times are GMT -5. The time now is 06:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration