What is the use of the free command of linux
This article introduces the relevant knowledge of "what is the use of the free command of linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Free command:
Concept: displays the current system memory and swap space usage.
Parameters:
Free is displayed in kb, which is equivalent to free-k
Free-m is displayed in m units
Free-g is displayed in g
Results:
Mem: information about physical memory.
Total total memory
Memory used by used
Free free memory
Shared currently discarded memory, always 0
Memory used by buffers Buffer Cache
Memory used by cached Page Cache
-/ + buffers/cache: information about the memory of the user's process.
The memory used by the used user process is equal to the value of used-buffers-cached in Mem.
The memory that free can provide to the user process is equal to the value of free + buffers + cached in Mem.
Swap: usage of swap space.
Caching mechanism under linux:
In order to shorten the time of calling I Cache O, the Linux operating system uses two types of TCP:
Read-write buffer for Buffer Cache blocks, which is used to optimize the disk's I _ Unio
The read-write buffer of Page Cache inode, which is used to optimize the file system's IBG O
Note: the memory occupied by these two caches can be released at any time in order to free up more physical memory for use by user processes in time.
This is the end of the content of "what is the use of the free command of linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!