linux /proc/pid/smaps各字段含义
来源:互联网 发布:powerdesigner ubuntu 编辑:程序博客网 时间:2024/06/10 03:46
/proc/$PID/smaps
第一行:
08048000-080bc000 地址空间的开始地址 - 结束地址
r-xp 属性。前三个是rwx(读、写、可执行),如果不具有则为“-”。最后一个是p/s(私有/共享)
00000000 偏移量。如果这段内存是从文件里映射过来的,则偏移量为这段内容在文件中的偏移量。如果不是从文件里面映射过来的则为0.
03:02 If the region was mapped from a file, this is the major and minor device number (in hex) where the file lives.
13130 If the region was mapped from a file, this is the file number.
/bin/bash If the region was mapped from a file, this is the name of the file. This field is blank for anonymous mapped regions. There are also special regions with names like [heap], [stack], or [vdso]. [vdso] stands for virtual dynamic shared object. It’s used by system calls to switch to kernel mode.
Rss-Resident Set Size 实际使用物理内存(包含共享库占用的内存)
Rss=Shared_Clean+Shared_Dirty+Private_Clean+Private_Dirty
Pss 实际使用的物理内存(按比例包含共享库占用的内存)。比如四个进程共享同一个占内存1000MB的共享库,每个进程算进250MB在Pss。
Shared_Clean 、 Shared_Dirty 、 Private_Clean、 Private_Dirty
(shared/private)共享和私有
一个页的clean字段表示没有更改此页,当发生换页时不用写回。dirty表示更改了此页,当发生换页时要写回磁盘。此处这四个值是遍历页表中各个页后得到的。
“Referenced” indicates the amount of memory currently marked as referenced or accessed. “Anonymous” shows the amount of memory that does not belong to any file. Even a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE and a page is modified, the file page is replaced by a private anonymous copy. “Swap” shows how much would-be-anonymous memory is also used, but out on swap.
- linux /proc/pid/smaps各字段含义
- Linux /proc/$pid/smaps的含义
- 关于/proc/$pid/smaps文件
- 进程内存信息 /proc/[pid]/maps /proc/[pid]/smaps /proc/[pid]/status
- linux下/proc/stat字段含义
- /proc/pid/stat字段说明
- /proc/pid/stat字段说明
- [译]指定进程更新/proc/pid/smaps中PSS值得频率是多久?
- Linux /proc/pid目录下相应文件的信息说明和含义
- Linux /proc/pid目录下相应文件的信息说明和含义
- Linux-系统管理-/proc/pid/stat
- /proc/pid
- linux 、proc/pid/stat 文件分析
- linux /proc/pid进程信息说明
- Linux proc/pid记录了什么
- linux /proc/pid/maps 信息分析
- Linux proc/pid/stat文件详解 .
- 通过Linux内核观察/proc/pid/statm
- 什么是渲染目标(render target)&& 渲染到纹理(Render To Texture, RTT)详解
- Java并发编程-01-线程的创建和线程信息获取
- mysql 常用命令总结
- oracle record is locked by another user
- 15 6.10
- linux /proc/pid/smaps各字段含义
- awk字段和引用的分离
- HDU 1532Drainage Ditches(最大流模板题 ISAP)
- fstream无法创建文件
- 【Lucene】详解Lucene全文检索的信息写入与读取
- Go语言统计中文词语的个数,分词.
- Java特性-封装
- System权限下进程遇到的问题以及如何降权启动进程
- 一步一步学习 Linux 驱动之 platform 机制 (tiny210 LED 驱动)