LinuxQuestions.org
Help answer threads with 0 replies.
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 03-31-2008, 02:09 PM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
free memory confusion problem


Hi,
i have rented a virtual server from a web services company. I am trying to create a java virtual machine and teh responce is that there is no memory. So i do a "free -m" and i get the following:
Code:
xxx:~# free -m
             total       used       free     shared    buffers     cached
Mem:          3790       3763         27          0         14        821
-/+ buffers/cache:       2926        863
Swap:         8001        336       7664
(1) I would just like to confirm that:
-the total memory is ~3.7GB
-for some reason -i am not executing anything- my guest seems to be using almost all of it
before contacting the customer support.

The contract guarantess 384 with a maximum of 1024MBs...
 
Old 03-31-2008, 02:18 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
The line to look at is the -/+ buffers/cache. You have 863MB available for applications.
 
Old 03-31-2008, 03:02 PM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
Could you please explain the difference or better post a link in order to get an explanation of this? "man free" is not comprehensive at all.
Thnx
 
Old 03-31-2008, 04:18 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Basically, linux caches information in unused RAM so that it can be accessed quicker. That's basically the first line that says 3763MB is "used" and only 27MB is "free". But the line below it that I mentioned above is what is available to run applications. So if you open, for example, Firefox, linux will free up the cached RAM and allow it to be used for applications to run. So that line with "-/+ buffers/cache" shows that 2926MB is used by applications, and therefore unavailable to other applications to use. It also shows that you have 863MB "free" for applications to use.

Here's a link explaining it a bit better than me.
 
Old 03-31-2008, 04:30 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
If only I had $1 for every time this question is asked, maybe I'll put it in my sig so I can refer to it easier.
 
Old 03-31-2008, 04:59 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Yes you have a bit under 4 Gig.
Something is eating it up - including swap. Shouldn't happen on a quiet system IMHO - have a look in "top" and sort by RES or %MEM to see who the offenders are.
 
  


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
Confusion installing DDR2 memory on motherboard. Fluffer Linux - Hardware 2 09-19-2007 09:11 AM
Does free( ) immediatly free the memory? Rayven Programming 24 11-06-2006 03:24 AM
POSIX shared memory confusion MeMooMeM Programming 0 05-25-2005 05:32 PM
How much memory is really 'free'? robbiemorgan Linux - Newbie 4 09-19-2004 08:05 PM
Memory free problem edreddy Programming 1 11-09-2002 11:59 PM


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