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名词解释相关推荐

  1. 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. ...

  2. rss C语言,Android内存:VSS/RSS/PSS/USS介绍

    一般来说内存占用大小有如下规律:VSS>=RSS>=PSS>=USS 1.VSS - Virtual Set Size(用处不大) 虚拟耗用内存(包含共享库占用的全部内存,以及分配但 ...

  3. 【转】内存耗用:VSS/RSS/PSS/USS

    [转]内存耗用:VSS/RSS/PSS/USS Terms VSS- Virtual Set Size 虚拟耗用内存(包含共享库占用的内存) RSS- Resident Set Size 实际使用物理 ...

  4. 内存耗用:VSS/RSS/PSS/USS

    http://hi.baidu.com/donghaozheng/blog/item/235da701ab70f60a1c95832e.html Terms VSS- Virtual Set Size ...

  5. 内存耗用:VSS/RSS/PSS/USS 介绍

    参考:内存耗用:VSS/RSS/PSS/USS 的介绍 - 简书 内存耗用:VSS/RSS/PSS/USS_adaptiver的博客-CSDN博客_rss uss VSS- Virtual Set S ...

  6. linux 进程的vss rss uss,内存VSS,RSS,PSS,USS解读

    在Linux里面,一个进程占用的内存有不同种说法,有四种形式: VSS(Virtual) RSS(Resident) PSS(Proportional) USS(Unique) VSS是单个进程全部可 ...

  7. 内存:VSS/RSS/PSS/USS区别和监控

    软件开发的最后阶段就是测试,了解软件整体的cpu和mem使用情况,之前一直用ps来确定cpu使用率和rss内存,最近监控python多进程软件时,累积rss竟然超过了节点物理内存126G,原因在此处梳 ...

  8. linux 进程pss,Linux 进程内存使用统计VSS RSS PSS USSS

    有的时候我们需要统计不同的进程实际物理内存的消耗,常见的几个参数如下: VSS (reported as VSZ from ps) is the total accessible address sp ...

  9. linux vss rss区别,关于VSS / RSS / PSS / USS的解释是否准确?

    我阅读了有关VSS / RSS / PSS / USS的说明: 这篇文章的目的是提供信息,以帮助解释来自各种工具的内存报告,以便可以确定Linux进程和系统的实际内存使用情况. Android有一个称 ...

最新文章

  1. CentOS启动不显示图形界面直接进入命令行模式
  2. SAP FICO期初开账存货导入尾差
  3. DELPHI加密字串(异或运算加密)
  4. Swift之点击UITableView单元格动态改变cell高度
  5. linux touch更新文件时间,Linux文件时间的查看和修改touch
  6. 下班理财超过上班赚钱
  7. python图形化进度条代码_Python实现进度条和时间预估的示例代码
  8. pthread条件变量函数的使用
  9. JSP提交中文乱码的解决
  10. 物联网概念炒作可能只是开始
  11. 新stem编程scratch3水果钢琴创意键盘兼容MakeyMakey开源国产盒装使用教程
  12. c语言求圆柱的底面积和体积,计算圆柱的底面积和体积
  13. 通信原理、模电——部分英文术语对照表
  14. Android 基础知识系列之 Intent 常用方法
  15. 愤怒的老王,每天都想暗杀一个同事...
  16. [企业微信通知系列]Jenkins发布后自动通知
  17. 【FXCG】通胀差异性仍将导致各国货币政策分化
  18. Netty的UDP广播发送与接收
  19. LeetCode:1184. 公交站间的距离————简单
  20. PDF怎么转WPS?这么操作非常简单

热门文章

  1. 如何解决ping不通问题
  2. 如何开发微信第三方小程序组件
  3. 学与思的关系?(中国文化史)
  4. 小程序结合腾讯地图(QQMapWX)SDK做位置周边搜索展示
  5. 6.2 Characteristic Values
  6. 电子工程师除了挣工资,还可以这样增加收入!
  7. 手机无线如何共享给台式计算机,教你用手机做热点分享wifi给台式电脑用,不是用数据网络哦...
  8. K近邻算法python实现并显示决策边界
  9. appium 配置 打开应用闪退
  10. 群友(淡泊、明志)总结java面试题