Linux not running program memory cache used too large

Source: Internet
Author: User

Unlike Windows, Linux has cache memory, which is often called cache memories. There are times when you find that there are no programs running, but using the top or the free command to see the available memory is very small, when looking at the Linux system/proc/meminfo file, you will find a Cached memory:

# >> Cat/proc/meminfo


memtotal:16414004 KB


memfree:10278960 KB


buffers:65588 KB


cached:1273692 KB


swapcached:15552 KB


active:5349400 KB


inactive:597340 KB


hightotal:0 KB


highfree:0 KB


lowtotal:16414004 KB


lowfree:10278960 KB


swaptotal:33551744 KB


swapfree:33315872 KB


Dirty:64 KB


writeback:0 KB


mapped:4662772 KB


slab:134212 KB


commitlimit:41758744 KB


committed_as:5048776 KB


pagetables:14784 KB


vmalloctotal:536870911 KB


vmallocused:279436 KB


vmallocchunk:536590975 KB


hugepages_total:0


hugepages_free:0


hugepagesize:2048 KB


What is cache memory (cached RAM):


When you read and write files, the Linux kernel caches the files in memory for increased read and write efficiency and speed, which is the cache memory. The Cache memory will not be released automatically even after your program has finished running. This will cause you to read and write files frequently in your Linux system, and you will find that there is little physical memory available.


In fact, this cache memory is automatically released when you need to use memory, so you don't have to worry about not having memory available. If you want to release the cache memory manually, there is a way.


Release the cache memory (cached):


Use the following command to release the cache Memory:


Echo 3 >/proc/sys/vm/drop_caches



2010-05-06


This article from the "Five pieces of edges and corners" blog, reproduced please contact the author!

Linux not running program memory cache used too large

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.