LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-31-2010, 01:51 AM   #1
gubbu
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Rep: Reputation: 0
Linux memory management: Real memory or Cached buffers?


I wanted to know more about how to look at a linux (Red Hat Enterrprise) in terms of memory ? Should you look at "real memory " free using top or free -m or should you pay attention to "CAched buffers"

For example lets take this output from "free -m"
utput:
bash-3.00$ free -m
total used free shared buffers cached
Mem: 15808 15130 677 0 113 6171
-/+ buffers/cache: 4845 10963
Swap: 2047 0 2047


So lets say when you do ps -ef you see ther are a few java process and combined memory usage is around 10Gigs. So question is

a) Where is the rest of the memory ? Was it used for cached buffers when copying over some big files?

b) Can I start say 2 more java process with 2Gig heap space and it will get memory from the "cached buffers"

Bottom line if you want a healthy system should you be worried if you dont have real memory but have a lot of cached buffers?
 
Old 01-31-2010, 02:38 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,363
Blog Entries: 52

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
The cached buffers do not matter, since these will occupy as much of the remaining memory as required.

The sign of having enough memory is that the swap space is seldom (if ever) used.

Last edited by neonsignal; 01-31-2010 at 02:41 AM.
 
Old 10-01-2010, 01:58 AM   #3
raghureddii
LQ Newbie
 
Registered: Aug 2010
Posts: 8

Rep: Reputation: 0
Virtual File System

Quote:
Originally Posted by neonsignal View Post
The cached buffers do not matter, since these will occupy as much of the remaining memory as required.

The sign of having enough memory is that the swap space is seldom (if ever) used.
what are the Virtual File System in linux which does not carry actual space? explain??
 
  


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
buffers and cached groing up to total!? tovis Programming 2 01-26-2007 06:24 AM
Memory staying in cached status kaplan71 Red Hat 1 10-25-2006 08:58 AM
Memory Dump for cached passwords SpinningCone Linux - Security 5 07-12-2006 09:27 AM
flushing memory buffers lucky6969b Programming 6 01-18-2006 09:42 PM
Increasing the amount of cached memory balteo Linux - General 1 09-16-2005 04:06 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration