概述

‘memtype’ 参数的三个常用值 , rssvsize在所有系统中都适用。另外, 在一些系统中只支持该系统下的 ‘memtype’ 值。

AIX

请参见表中AIX上的“memtype”参数所支持的值.

FreeBSD

请参见表中FreeBSD上的“memtype”参数支持的值。

Supported valueDescriptionSource in kinfo_proc structureTries to be compatible with
vsize虚拟内存大小kp_eproc.e_vm.vm_map.size or ki_sizeps -o vsz
pmem实际内存的百分比calculated from rssps -o pmem
rss驻留集大小kp_eproc.e_vm.vm_rssize or ki_rssizeps -o rss
size 2)进程(代码+数据+堆栈)大小tsize + dsize + ssize
tsize文本(代码)的大小kp_eproc.e_vm.vm_tsize or ki_tsizeps -o tsiz
dsize数据大小kp_eproc.e_vm.vm_dsize or ki_dsizeps -o dsiz
ssize堆栈大小kp_eproc.e_vm.vm_ssize or ki_ssizeps -o ssiz

Linux

请参见表中Linux上的“memtype”参数支持的值。

Linux上注意事项:

  1. 我们发现 Zabbix agent 主动检查进程参数proc.mem[…,…,…,…,data] 显示的值比agent 的 /proc//status 文件中 VmData行的值大大 4 kB。在agent自我监控管理时,agent的数据碎片增长率4 kB ,然后又返回到先前的值。

Solaris

请参见表中的Solaris上的“memtype”参数所支持的值。

支持的参数值描述Source in psinfo structure兼容
vsize Size of process imagepr_sizeps -o vsz
pmem实际内存的百分比pr_pctmemps -o pmem
rss驻留集大小
可能会被低估 - 参看 “man ps”中rss描述.
pr_rssizeps -o rss

8 Notes on memtype parameter in proc.mem items

Overview

The memtype parameter is supported on Linux, AIX, FreeBSD, and Solaris platforms.

Three common values of ‘memtype’ are supported on all of these platforms: pmem, rss and . Additionally, platform-specific ‘memtype’ values are supported on some platforms.

AIX

See values supported for ‘memtype’ parameter on AIX in the table.

FreeBSD

Supported valueDescriptionSource in kinfo_proc structureTries to be compatible with
vsizeVirtual memory sizekp_eproc.e_vm.vm_map.size or ki_sizeps -o vsz
pmemPercentage of real memorycalculated from rssps -o pmem
rssResident set sizekp_eproc.e_vm.vm_rssize or ki_rssizeps -o rss
size 6)Size of process (code + data + stack)tsize + dsize + ssize
tsizeText (code) sizekp_eproc.e_vm.vm_tsize or ki_tsizeps -o tsiz
dsizeData sizekp_eproc.e_vm.vm_dsize or ki_dsizeps -o dsiz
ssizeStack sizekp_eproc.e_vm.vm_ssize or ki_ssizeps -o ssiz

Linux

See values supported for ‘memtype’ parameter on Linux in the table.

Notes for Linux:

  1. Not all ‘memtype’ values are supported by older Linux kernels. For example, Linux 2.4 kernels do not support hwm, pin, peak, pte and swap values.

Solaris

See values supported for ‘memtype’ parameter on Solaris in the table.

Supported valueDescriptionSource in psinfo structureTries to be compatible with
vsize Size of process imagepr_sizeps -o vsz
pmemPercentage of real memorypr_pctmemps -o pmem
rssResident set size
It may be underestimated - see rss description in “man ps”.
pr_rssizeps -o rss

- default value