In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to check the amount of memory in linux". In daily operation, I believe many people have doubts about how to check the size of memory in linux. The editor consulted all kinds of data and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the question of "how to check how much memory in linux"! Next, please follow the editor to study!
Linux to see how much memory: 1, the implementation of the "free-m" command, the output list of the "total" item value is the total memory of the query; 2, the implementation of the "cat / proc/meminfo" command, you can display the detailed information of memory, the output list of the "MemTotal" item value is the total memory size of the query.
The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
Linux's method of checking how much memory is
1. Execute free-m
Free-m shows memory usage in MB.
The free command is used to display the memory status of the system, including system physical memory, virtual memory (swap swap partition), shared memory, and system cache usage, and its output is very similar to the memory portion of the top command.
In the output list of the free-m command, the first row shows the column header information for each column, with the following meanings:
Total is the total memory
Used is the amount of memory already used
Free is the number of free memory
Shared is the total memory shared by multiple processes
Buffers is the number of buffered memory
Cached is the number of cache memory.
The Mem line refers to memory usage;-/ the amount of memory in buffers/cache, which is equivalent to the used-buffers-cached in the first line. The amount of memory in + / buffers/cache, which is equivalent to the free+buffers+cached;Swap line in the first line, refers to the usage of the swap partition.
As you can see, the system has 7741 MB of physical memory, 5623 MB has been used, and 1560 MB has been idle. The total size of the swap partition is 7935 MB, and 528 MB is currently used.
2. Execute cat / proc/meminfo
Cat / proc/meminfo view the details of the memory size of the linux system, you can view the total memory, remaining memory, available memory and other information.
At this point, the study on "how to check the amount of memory in linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.