Buffer and Cache in Linux

Source: Internet
Author: User

A buffer is something that have yet to being "written" to disk.
A cache is something that have been "read" from the disk and stored for later use.

Caching (cache) is to save the read data, re-read if hit (find the required data) do not read the hard disk, if not hit the hard drive. The data will be organized according to the frequency of reading, the most frequently read content in the most easily found in the location, the content is no longer read to the back row, until removed from it.
Buffering (buffer) is based on the read and write design of the disk, the decentralized write operations centralized, reduce disk fragmentation and the hard disk repeatedly seek, thereby improving system performance.

  

Cache is designed to increase the speed of data exchange between memory and hard disk (or other i/0 devices).

Buffering (buffer) is designed to increase the speed of data exchange between the CPU and memory, which is the usual first-level cache, level two cache, and level three cache.

The meaning of-/+ Buffers/cache in free-m:
-buffers/cache:used-buffers-cached
+buffers/cache:free + buffers + Cached

-buffers/cache reflects the memory that the program is actually occupying, while +buffers/cache reflects the total amount of memory that can be used.

  

Buffer and Cache in Linux

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.