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

How to understand RSS and VSZ in Linux memory Management

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How to understand Linux memory management of RSS and VSZ, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

In Linux memory management, both the top command and the pmap command will have the terms RSS and VSZ. Here's an explanation:

RSS (Resident Set Size) resides in the memory collection size, indicating how much memory the corresponding process occupies in the RAM and does not include the virtual memory occupied in the SWAP. Even the amount of memory in memory that uses shared libraries is counted, including the full memory in stack and heap.

VSZ (Virtual Memory Size), which indicates the virtual memory size, indicates all the memory that the process can access, including swapped memory and shared library memory.

If the binary size of process An is 500KB and is linked to the shared library of 2500KB, there is the size of stack/heap of 200KB, where 100KB is in memory and 100KB is in SWAP space, and 1000KB's shared library and 400KB's own binaries are loaded. Then

RSS:

400K + 1000K + 100K = 1500K

VSZ

500K + 2500K + 200K = 3200K

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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

Servers

Wechat

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

12
Report