How Android can view the memory swap information/information of the system

Source: Internet
Author: User

Objective
Welcome everyone I share and recommend useful code Snippets ~ ~
Statement
Welcome reprint, but please keep the original source of the article:
CSDN:
http://www.csdn.net
rainy season o mo away:http://blog.csdn.net/luckkof

Body

[Description]
For the LCA version number, there are usually open swap config, how to view the memory swap information of the system?
[Keyword]
Memory Swap LCA
[Solution]
1. The memory swap information of the whole system can read/proc/meminfo information directly. There are two lines:
Swaptotal:xxxx KB
swapfree:yyyy KB  2. The memory swap information of a process can read/proc/{pid}/status information. Among them are:
vmpeak:480944 KB
vmsize:480936 KB
vmlck:0 KB
vmpin:0 KB
vmhwm:19180 KB
vmrss:19180 KB
vmdata:12352 KB
vmstk:136 KB
Vmexe:8 KB
vmlib:35656 KB
vmpte:96 KB
Vmswap:xxx KB
Vmswap that was the swap memory

How Android can view the memory swap information/information of the system

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.