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