LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-15-2009, 09:58 PM   #1
masenko703
Member
 
Registered: May 2003
Posts: 33

Rep: Reputation: 15
newbie free question


Hi guyz,
Can someone explain the free command to me and show me how to tell if the RAM is being used completely.

[12:10pm]# free -m
total used free shared buffers cached
Mem: 3010 2984 25 0 14 2317
-/+ buffers/cache: 652 2357
Swap: 1992 0 1992

Based on the above, show 2984 being used and 25 free but below that is -/+buffers/cache with 652 being used and 2357 being free? can anyone point me in the right direction as to what to look for? Thanks!!
 
Old 07-15-2009, 10:04 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Code:
man free
 
Old 07-15-2009, 10:19 PM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
Yea, rtfm like the guy above said. But also:

Code:
jameson@salmon:~$free -m
             total       used       free     shared    buffers     cached
Mem:          3886       1720       2166          0        146        759
-/+ buffers/cache:        814       3071
Swap:         7632          0       7632
Those are the ones that matter, really. -m puts the values in megabytes. Linux caches stuff with free memory space and if you run out of memory for important stuff the caches get flushed. The man page doesn't really explain that.

Last edited by jhwilliams; 07-15-2009 at 10:22 PM.
 
Old 07-15-2009, 11:35 PM   #4
masenko703
Member
 
Registered: May 2003
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks!!!
 
Old 07-16-2009, 02:44 AM   #5
hadrix
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 0
i didnt notice that. thanks for the info!
 
  


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
Question regarding this line "Free taken as in free speech, not free beer" SHENGTON Linux - Newbie 11 01-12-2009 08:40 AM
free bsd newbie irish rebel *BSD 2 01-15-2005 03:49 PM
dA FrEe BsD! nEwBiE! Vyeperman *BSD 14 09-02-2003 09:39 AM
Silly Newbie Question: which free server distro is best??? scottyman Linux - Distributions 7 02-03-2003 01:43 AM


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