memory usuage

Posted on 2013-09-07
Medium Priority
Last Modified: 2013-12-10
[root@new-host 2 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:           997        255        742          0          1         17
-/+ buffers/cache:        235        761
Swap:         2015        132       1883

1) Can some one explains whats is the difference between buffer/cache in 1st and 2nd line.

2) also i noticed swap is used 132 M when we have 742 MB free MB available. Please advise.
Question by:ittechlab
LVL 30

Expert Comment

ID: 39472949

Accepted Solution

Rajesh Nandanwar earned 1005 total points
ID: 39477460
Used memory in the first line includes that devoted to the buffers and cache. In second line, the System shows, how much Memory surely is free - free in the first line is only unused memory. In first line, it shows used buffered and cached memory. In second line, it shows mem-usage without buffered and cached memory, because buffers and caches are not fix.

Here's some more information: http://www.perlmonks.org/?node_id=712434

Also, you have a small amount of physical RAM in your box. Linux will try and keep a percentage of ram free so it has swapped out some stuff to allow the system to have memory when it is needed.

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Fine Tune your automatic Updates for Ubuntu / Debian
This installment of Make It Better gives Media Temple customers the latest news, plugins, and tutorials to make their Grid shared hosting experience that much smoother.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question