LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Linux memory management: Real memory or Cached buffers? (http://www.linuxquestions.org/questions/linux-server-73/linux-memory-management-real-memory-or-cached-buffers-785942/)

gubbu 01-31-2010 01:51 AM

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?

neonsignal 01-31-2010 02:38 AM

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.

raghureddii 10-01-2010 01:58 AM

Virtual File System
 
Quote:

Originally Posted by neonsignal (Post 3846893)
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??


All times are GMT -5. The time now is 03:46 AM.