Information such as Android memory

Source: Internet
Author: User

1. in linux proc directory file detailed http://wenku.baidu.com/view/2ce89f00a6c30c2259019ef1.html

2. The Android system/proc directory detailed

3. android proc Process information parsing Http://wenku.baidu.com/view/6530ad58312b3169a451a4eb.html?re=view

4. How to get memory usage at run time in C + +?

5. Use the Getrusage get process to use System resource information http://www.cfanz.cn/index.php?c=article&a=read&id=69687

6. Get CPU usage information (GO)

7. Android Memory Vss/rss/pss/uss http://blog.csdn.net/hunanwy/article/details/8645335

Vss:virtual Set Size, virtual memory consumption. It is the size of all memory space addresses that a process can access. This size contains the
Some memory that does not reside in RAM, just as Mallocs has been allocated, but has not yet been written. VSS is seldom used to measure the actual application of the
With memory.

Rss:resident Set Size, which actually uses physical memory. RSS is the amount of memory that a process actually holds in RAM. RSS may be
Misleading because it contains all the memory occupied by the shared library used by the process, and a shared library that is loaded into memory may have a
Multi-process will use it. RSS is not an accurate representation of the amount of memory that a single process uses.

Pss:proportional Set Size, the physical memory that is actually used, differs from RSS in that it allocates the memory occupied by the shared library proportionally.
For example, if there are three processes sharing a shared library of 30 pages of memory control, each process will only calculate 10 pages when it calculates PSS.
PSS is a very useful value if all of the processes in the system are added together by PSS, and that is the sum of the memory that is consumed by the system. When a
When the process is killed, the shared library memory it occupies will be divided by other processes that still use the shared library. In this way, PSS
can also be misleading, because when a process is killed, PSS does not represent the amount of memory the system recycles.

Uss:unique Set Size, the physical memory that the process occupies alone. This part of the memory is completely exclusive to the process. USS is a very useful
Because it indicates the true memory cost required to run a particular process. When a process is killed, the USS is all system back
Memory to be collected. USS is the best option to check for memory leaks in the process.

> CAT/PROC/SELF/STATM
105 105 93 4 12 89 12
..............................................................................
Data Item Contents
Size program Sizes
Resident resident Memory space size
Shared Memory Pages
TRS code snippet takes up memory pages
DRS data/stack segments occupy memory pages
LRS Reference Library occupies memory pages
DT Number of dirty pages

Information such as Android memory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.