`
netcome
  • 浏览: 466331 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

smem memory reporting tool

阅读更多

smem is a tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system.

Because large portions of physical memory are typically shared among multiple applications, the standard measure of memory usage known as resident set size (RSS) will significantly overestimate memory usage. PSS instead measures each application's "fair share" of each shared area to give a realistic measure.

 

smem has many features:

 

  • system overview listing
  • listings by process, mapping, user
  • filtering by process, mapping, or user
  • configurable columns from multiple data sources
  • configurable output units and percentages
  • configurable headers and totals
  • reading live data from /proc
  • reading data snapshots from directory mirrors or compressed tarballs
  • lightweight capture tool for embedded systems
  • built-in chart generation

smem has a few requirements:

 

  • a reasonably modern kernel (> 2.6.27 or so)
  • a reasonably recent version of Python (2.4 or so)
  • the matplotlib library for chart generation (optional, auto-detected)

Sample output

Here are some smem graphs showing how RSS exaggerates memory usage. Note how apps that share libraries are over-reported on the RSS side and nearly vanish on the PSS side. The X server is also shares memory heavily, it's real memory usage is about 5 times smaller.

 

Using smem

Show basic process information smem
Show library-oriented view smem -m
Show user-oriented view smem -u
Show system view smem -R 4G -K /path/to/vmlinux -w
Show totals and percentages smem -t -p
Show different columns smem -c "name user pss"
Sort by reverse RSS smem -s rss -r
Show processes filtered by mapping smem -M libxml
Show mappings filtered by process smem -m -P [e]volution
Read data from capture tarball smem --source capture.tar.gz
Show a bar chart labeled by pid smem --bar pid -c "pss uss"
Show a pie chart of RSS labeled by name smem --pie name -s rss

Getting smem

To get the latest release version, click here.

The latest source code can be grabbed from smem's Mercurial repository here with the command:

hg clone http://selenic.com/repo/smem

Feedback

Write to the smem list at smem@selenic.com.

http://www.selenic.com/smem/

分享到:
评论

相关推荐

    smem-1.5.zip

    smem是一款命令行下的内存使用情况报告工具,他能够给用户提供Linux系统下的内存使用的多种报告,seme与现有工具不同的是,可以报告PSS情况(实际使用的物理内存(PSS),从而可以衡量虚拟内存系统库和应用程序所占用的内存...

    smem在Android中的使用

    NULL 博文链接:https://lhq1013.iteye.com/blog/978303

    smem-map - The Static Memory Mapper-开源

    smem-map是一种用于对进程的虚拟内存进行概要分析的工具,以标识其内容保持静态的地址范围。

    SMEM_Fully_Pipelined_Design:SMEM ++,用于基因组测序的全流水线和时间多路复用SMEM播种加速器

    SMEM_Fully_Pipelined_Design SMEM ++,用于基因组测序的全流水线和时间多路复用SMEM播种加速器 此发布的代码是SMEM FPGA内核代码,其详细信息在我们的论文中进行了描述。 最初的实现是在harp2上的,并且存在版权...

    smem-1.4.tar.gz_physical_uss

    reports physical memory usage, taking shared memory pages into account. Unshared memory is reported as the USS (Unique Set Size). Shared memory is divided evenly among the processes sharing that ...

    arch_arm_mach-msm_smem_log_qualcommmsm7200_exploredr1_linuxkerne

    linux driver qualcomm msm plataform SMEM LOG

    arm linux smemcap tool

    smemcap 是arm v7 嵌入式环境用来cap smaps ,capture的资料在pc 端用smem 分析

    rgb转lab代码matlab-SMEM:快照多光谱内窥镜检查

    快照多光谱内窥镜检查(SMEM) 该存储库包含穆乔,马佳伟,于振明,徐坤等人撰写的论文《快照多光谱内窥镜检查(光学信函,2020年)》的代码。 、、、 概述者 此源代码提供了端到端DNN,用于重建快照压缩成像器捕获...

    last_radio_log.rar_The Crash

    Extract the log from a modem crash though SMEM

    7.CUDA C编程权威指南 (3)1

    声明为与每个线程块具有相同的维度。每个线程块都用它的全局输入数据块来初始化smem数组:然后,原地归约是使用共享内存(smem)被执行的,而不是全局内存(ida

    论文研究-一种红外图像条件下的驾驶人眼睛定位算法.pdf

    本着由粗到精的学习原则,设计了选择性多本征空间的多级人脸识别方法(SMEM)。首先对人脸划分为整体、上半部、鼻、眼四个本征区域;然后对各本征建立特征空间并构造BP神经网络人脸识别器;最后,以后验概率为依据,...

    Linux杀死僵尸进程.zip

    Linux杀死僵尸进程.zip 需要掌握的运维命令有ls、ps、free、top、uptime、ifconfig、susudo、dmesg、iostat、vmstat、sar、htop、iotop、smem等

    libsh

    SH_Multicast 多播类 SH_Broadcast 广播类 SH_RawSocket 原始套接字类 SH_Pipe 管道类 SH_Mailslot 邮槽类 SH_SMem 共享内存类 SH_Log 日志类 SH_File 文件类 SH_FileVer 文件版本...

    javasmack源码-ops_skill_summary:您必须熟练掌握的devops工具或脚本

    java smack源码 ops_skill_summary Bootstrapping kickstart cobbler rpmbuild/xen kvm lxc openstack cloudstack ...smem 简介: 高级内存报表工具 性能分析 简介: TCP优化监控工具 简介: 响应时间统计工具

    CenSQL:Centiq的SAP HANA客户

    最后,CenSQL在CLI界面内支持条形图和折线图,以显示实例状态和历史记录的“一览无余”视图,例如\cpu可以显示实例的每个主机的CPU使用率和\smem用于显示当前共享内存。 安装 注意:CenSQL已在Ubuntu,Debian,SLES...

Global site tag (gtag.js) - Google Analytics