An example of high release of Linux memory Cached

Source: Internet
Author: User

Today in doing Zabbix hardware monitoring, always appear the error of the hint, carefully check to see if the original is not my memory is not enough:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/92/wKioL1Ud85-Rm7FyAADMXbK2S60458.jpg "title=" Free.png "alt=" Wkiol1ud85-rm7fyaadmxbk2s60458.jpg "/>

Parameter description:

Total: Overall size of physical memory

Used: Content already in use

GKFX: Shared Memory size

Buffers: Buffer Memory: (disk block read and write frequently, Linux memory mechanism to do buffer pool)

Cached: Also buffer memory (mainly cache files when files are read and written frequently)

Generally we mainly look at free, and the last line Buffers/cache:


Specific parameters can be referenced, Linux memory mechanism. My machine is doing nagios monitoring, and picture backup, every night 12 o'clock will have rsync task execution, sync pictures to this machine. This should be the problem, frequently read and write files, and then triggered the Linxu memory mechanism, system tasks frequently read and write files, when the program stopped. System memory is not released, but as the form of the cache, to facilitate the next tune-up. This performance should be enhanced, but as I don't need it today, I can only release him:


To perform the operation:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5C/93/wKioL1Ud-EbCZFD8AAEFDJ8eOFA529.jpg "title=" Free2.png "alt=" Wkiol1ud-ebczfd8aaefdj8eofa529.jpg "/>

After the execution of the command we can change the echo 0 back.

You can see that a lot of memory has been freed up.


Summary: We often encounter this problem, especially MySQL server, often buffers, often occupy a lot of memory, because the MySQL write operation is very frequent, this time we do not have to manually free memory, allow the memory of Linux to manage, It is conceivable that when we have memory in the buffer, the next reading and writing is not very fast. Today really take up too much, and rsync is also the evening, only to start, close without wasting so many resources


This article is from the "Little Luo" blog, please be sure to keep this source http://xiaoluoge.blog.51cto.com/9141967/1627913

An example of high release of Linux memory Cached

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.