Tuesday 21 June 2011

Explanation free Command in Linux

total Used free shared buffers cached
Mem: 49415736 49139132 276604 0 5656 47368280
-/+ buffers/cache: 1765196 7650540
Swap: 5237180 20 5237160

Mem total : Mem used + free
Mem used : 49GB (ps + buffers 5656 + cache 47GB)


- buffer/cache : Mem used - (buffers 5656 + cache 47GB)
+ buffer/cache : Mem free + (buffers 5656 + cache 47GB)

Swap (paging/Hard disk) used is 20KB only.



Buffers and cache are considered low priority, they r using large mem when none uses it. when apps using it, they will be decreased.

Buffers is for remembering the FS like dir structure (ls -R . will boost the buffr)
cache is storing the file content, so processes can access file in cache instead read it over and over from the disk.

No comments:

Post a Comment