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 exact meaning of the Linux system top command VIRT,RES,SHR,DATA

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Linux system top command VIRT,RES,SHR,DATA specific meaning, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

I believe many friends have seen VIRT,RES,SHR,DATA under top. What do they mean?

The specific meaning of the Linux system top command VIRT,RES,SHR,DATA:

VIRT:virtual memory usage virtual memory 1, the amount of virtual memory that the process "needs", including libraries, code, data, etc. 2. If the process requests 100m of memory but only uses 10m, it will grow by 100m instead of the actual usage

RES:resident memory usage resident memory 1, the amount of memory currently used by the process, but does not include swap out2, including the sharing of other processes 3, if you apply for 100m of memory, the actual use of 10m, it only increases by 10m, contrary to VIRT 4, with regard to the memory occupied by the library, it only counts the memory occupied by the loaded library files.

SHR:shared memory shared memory 1, in addition to the shared memory of its own processes, including the shared memory of other processes 2. Although the process only uses a few shared library functions, it contains the size of the entire shared library. 3. Calculate the physical memory size of a process: RES-SHR4, swap out, it will fall

DATA1, memory occupied by data. If top is not displayed, press the f key to display it.

2. The real data space required by the program is really to be used in operation.

After reading the above, have you mastered the specific meaning of the Linux system top command VIRT,RES,SHR,DATA? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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

Development

Wechat

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

12
Report