When running on the server to free -h
check the memory usage today, I accidentally found such a line -/+ buffers/cache
, and I don’t know what it means for a while.
Later, after searching for information, I learned that:
-/+ buffers/cache indicates the memory space that the operating system can actually use now, which is equivalent to the first line Mem
( used - buffers - cached
ie 852M - 25M - 300M = 526M), which means Mem
that it is not actual Use the space, -/+ buffers/cache
yes. So why is this the case?
Because Mem
the buffers
sum in the middle is cached
actually the system cache, which is the data imported by the system to enhance the performance of the computer, which can be released at any time, and the -/+ buffers/cache
statistics are the remaining memory space after these caches are released, so it -/+ buffers/cache
is the real Free memory space.
Refer to the appendix
[root@C20220819227253 ~]# free -h
total used free shared buffers cached
Mem: 990M 859M 131M 38M 28M 303M
-/+ buffers/cache: 527M 463M
Swap: 0B 0B 0B