Linux Manually Frees memory

Source: Internet
Author: User

Linux for a period of time, the memory is full, swap also began to use, because the Linux design read data will be cached in memory, so for frequent read applications can reduce IO consumption, but like me this is not SSD hard disk PC users, open the application feel a card, annoying all bored to death, Have to manually erase the data in memory (theoretically Linux will automatically free up memory).

In fact, a command is done:
Echo 3 >/proc/sys/vm/drop_caches

But before executing this command, please sync, write the cached data to the disk, or buffer to write the data, you have to cry ^ ^

3 is to release all memory, default is 0, cache any data

Linux Manually Frees memory

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.