博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux top %VSZ含义
阅读量:4104 次
发布时间:2019-05-25

本文共 485 字,大约阅读时间需要 1 分钟。

今天看进程内存,如下图所示:

其中一个进程的%VSZ为125.7,甚为疑惑,查了下其算法

From BusyBox

top.c-  /*top.c:   * %VSZ = s->vsz/MemTotaltop.c-   */

vzs is the size of the virtual memory used by the process (from /proc/<pid>/stat). This can include uninitialized memory and memory shared with other processes, and is therefore largely useless to determine how much memory a process actually needs.

MemTotal is found in /proc/meminfo, and is basically how much RAM you have.

该进程的VSZ为311m,设备的内存大小为
,相除之后,果然与125.7吻合,是为记录,备忘。

转载地址:http://fufsi.baihongyu.com/

你可能感兴趣的文章
查找最大值最小值
查看>>
杨辉三角
查看>>
冒泡排序法
查看>>
C#中ColorDialog需点两次确定才会退出的问题
查看>>
16、Memento 备忘录模式
查看>>
Java基础篇(一)
查看>>
数据库
查看>>
mysql update与group by
查看>>
nginx反代 499 502 bad gateway 和timeout
查看>>
linux虚拟机安装tar.gz版jdk步骤详解
查看>>
python猜拳游戏
查看>>
python实现100以内自然数之和,偶数之和
查看>>
python数字逆序输出及多个print输出在同一行
查看>>
python九九乘法表(详解)
查看>>
ESP8266 WIFI数传 Pixhaw折腾笔记
查看>>
苏宁产品经理面经
查看>>
百度产品经理群面
查看>>
去哪儿一面+平安科技二面+hr面+贝贝一面+二面产品面经
查看>>
element ui 弹窗在IE11中关闭时闪现问题修复
查看>>
vue 遍历对象并动态绑定在下拉列表中
查看>>