android 内存uss rss,内存VSS/RSS/PSS/USS名词解释
VSS(virtual set size)虚拟耗用内存(包含共享库占用的内存)
RSS(Resident set size)实际使用物理内存(包含共享库占用的内存)
RSS是进程实际驻存在物理内存的部分的大小。因为一个进程执行不需要把整个进程都全部驻存到物理内存。RSS是最常用的内存指标,表示进程占用的物理内存大小。但是,将各进程的RSS值相加,通常会超出整个系统的内存消耗,这是因为RSS中每个进程都包含了各进程间共享的内存,因此存在重叠部分。
VSS是一个进程的总的大小。只有当进程执行且整个进程都驻存到物理内存时才RSS=VSS。
PSS(Proportional set size)实际使用的物理内存(比例分配共享库占用的内存)
USS(Unique set size )进程独自占用的物理内存(不包含共享库占用的内存)
与RSS相比,PSS会更准确一些,它将共享内存的大小进行平均后,再分摊到各进程上去。
USS则是PSS中自己的部分,它只计算了进程独自占用的内存大小,不包含任何共享的部分。
一般来说内存占用大小有如下规律:VSS >= RSS >= PSS >= USS
Overview
The aim of this post is to provide information that will assist in interpreting memory reports from various tools so the true memory usage for Linux processes and the system can be determined.
Android has a tool called procrank (/system/xbin/procrank), which lists out the memory usage of Linux processes in order from highest to lowest usage. The sizes reported per process are VSS, RSS, PSS, and USS.
For the sake of simplicity in this description, memory will be expressed in terms of pages, rather than bytes. Linux systems like ours manage memory in 4096 byte pages at the lowest level.
VSS (reported as VSZ from ps) is the total accessible address space of a process. This size also includes memory that may not be resident in RAM like mallocs that have been allocated but not written to. VSS is of very little use for determing real memory usage of a process.
RSS is the total memory actually held in RAM for a process. RSS can be misleading, because it reports the total all of the shared libraries that the process uses, even though a shared library is only loaded into memory once regardless of how many processes use it. RSS is not an accurate representation of the memory usage for a single process.
PSS differs from RSS in that it reports the proportional size of its shared libraries, i.e. if three processes all use a shared library that has 30 pages, that library will only contribute 10 pages to the PSS that is reported for each of the three processes. PSS is a very useful number because when the PSS for all processes in the system are summed together, that is a good representation for the total memory usage in the system. When a process is killed, the shared libraries that contributed to its PSS will be proportionally distributed to the PSS totals for the remaining processes still using that library. In this way PSS can be slightly misleading, because when a process is killed, PSS does not accurately represent the memory returned to the overall system.
USS is the total private memory for a process, i.e. that memory that is completely unique to that process. USS is an extremely useful number because it indicates the true incremental cost of running a particular process. When a process is killed, the USS is the total memory that is actually returned to the system. USS is the best number to watch when initially suspicious of memory leaks in a process.
android 内存uss rss,内存VSS/RSS/PSS/USS名词解释相关推荐
- linux 进程的vss rss uss,内核/内存管理中的VSS/RSS/PSS/USS
转自:http://www.douban.com/note/161471809/ RSS is the total memory actually held in RAM for a process. ...
- rss C语言,Android内存:VSS/RSS/PSS/USS介绍
一般来说内存占用大小有如下规律:VSS>=RSS>=PSS>=USS 1.VSS - Virtual Set Size(用处不大) 虚拟耗用内存(包含共享库占用的全部内存,以及分配但 ...
- 【转】内存耗用:VSS/RSS/PSS/USS
[转]内存耗用:VSS/RSS/PSS/USS Terms VSS- Virtual Set Size 虚拟耗用内存(包含共享库占用的内存) RSS- Resident Set Size 实际使用物理 ...
- 内存耗用:VSS/RSS/PSS/USS
http://hi.baidu.com/donghaozheng/blog/item/235da701ab70f60a1c95832e.html Terms VSS- Virtual Set Size ...
- 内存耗用:VSS/RSS/PSS/USS 介绍
参考:内存耗用:VSS/RSS/PSS/USS 的介绍 - 简书 内存耗用:VSS/RSS/PSS/USS_adaptiver的博客-CSDN博客_rss uss VSS- Virtual Set S ...
- linux 进程的vss rss uss,内存VSS,RSS,PSS,USS解读
在Linux里面,一个进程占用的内存有不同种说法,有四种形式: VSS(Virtual) RSS(Resident) PSS(Proportional) USS(Unique) VSS是单个进程全部可 ...
- 内存:VSS/RSS/PSS/USS区别和监控
软件开发的最后阶段就是测试,了解软件整体的cpu和mem使用情况,之前一直用ps来确定cpu使用率和rss内存,最近监控python多进程软件时,累积rss竟然超过了节点物理内存126G,原因在此处梳 ...
- linux 进程pss,Linux 进程内存使用统计VSS RSS PSS USSS
有的时候我们需要统计不同的进程实际物理内存的消耗,常见的几个参数如下: VSS (reported as VSZ from ps) is the total accessible address sp ...
- linux vss rss区别,关于VSS / RSS / PSS / USS的解释是否准确?
我阅读了有关VSS / RSS / PSS / USS的说明: 这篇文章的目的是提供信息,以帮助解释来自各种工具的内存报告,以便可以确定Linux进程和系统的实际内存使用情况. Android有一个称 ...
最新文章
- CentOS启动不显示图形界面直接进入命令行模式
- SAP FICO期初开账存货导入尾差
- DELPHI加密字串(异或运算加密)
- Swift之点击UITableView单元格动态改变cell高度
- linux touch更新文件时间,Linux文件时间的查看和修改touch
- 下班理财超过上班赚钱
- python图形化进度条代码_Python实现进度条和时间预估的示例代码
- pthread条件变量函数的使用
- JSP提交中文乱码的解决
- 物联网概念炒作可能只是开始
- 新stem编程scratch3水果钢琴创意键盘兼容MakeyMakey开源国产盒装使用教程
- c语言求圆柱的底面积和体积,计算圆柱的底面积和体积
- 通信原理、模电——部分英文术语对照表
- Android 基础知识系列之 Intent 常用方法
- 愤怒的老王,每天都想暗杀一个同事...
- [企业微信通知系列]Jenkins发布后自动通知
- 【FXCG】通胀差异性仍将导致各国货币政策分化
- Netty的UDP广播发送与接收
- LeetCode:1184. 公交站间的距离————简单
- PDF怎么转WPS?这么操作非常简单