Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of the free command of linux

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report