Buffers/cache in linux free command output

Source: Internet
Author: User

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4D/7E/wKioL1RSCMbyYfpkAABWlcXhCJg646.jpg "title=" Memory.png "alt=" Wkiol1rscmbyyfpkaabwlcxhcjg646.jpg "/>

In the first line, we don't introduce the red font portion (the row containing total) is more important.

The second and third lines a lot of people are not too understanding. In detail here. I'm sure you'll know a little bit about it.

First, explain the next buffers and the cache.

buffers: It's easy to see their English explanations.

A buffer is something that have yet to being "written" to disk. That means the cache of data that will be written to the hard disk

cache:

A Cache is something that have been "read" from the disk and stored for later use.

It means that we are reading the computer from the hard disk or the storage device and slowing down the data in memory.


When there is not enough memory in our system, the memory occupied by Buffers/cache is quickly released by the system and then used by other applications. This is important.

Well, after reading Buffers/cache well understand. We're going down.


Second line:mem This line is the system station in its own angle of the statistics of the memory situation . That is to say, stand on the system angle to count. In memory, which is already used, is the memory that contains the Buffers/cache in the second row.


The third line:+/-buffers/cache This line, is to stand in the application angle to statistics memory usage . The application perspective statistic is of course not including the size of the Buffers/cache cache in the second row, which only counts the size the application occupies. So you'll find an equation

Second line: used-buffers-cache= The used size in the third row.

The second line: Free + buffers + cache= The free size in the third row


May be more around, slowly understand the next.

So when we look at memory usage, we look at the free size in this line of +/-buffers/cache.

I believe you will have a new understanding of free after you read it.

This article is from "Linux rookie" blog, please be sure to keep this source http://ludihua.blog.51cto.com/4601284/1569816

Buffers/cache in linux free command output

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.