Zabbix Documentation 3.4

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:appendix:items:proc_mem_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:appendix:items:proc_mem_notes [2014/11/14 09:53]
andris [Linux] column "Source from /proc/<pid>/status file" added
manual:appendix:items:proc_mem_notes [2016/09/28 07:26] (current)
Line 1: Line 1:
 ==== 8 Notes on memtype parameter in proc.mem items ==== ==== 8 Notes on memtype parameter in proc.mem items ====
  
-The ''​memtype'' ​parameter is supported on //AIX////FreeBSD////​Linux// ​and //Solaris// platforms. +=== Overview === 
-On all these platforms 3 common values of ''​memtype'' are supported: ''​pmem'',​ ''​rss''​''​vsize''​. + 
-On some of the platforms also platform-specific ​''​memtype'' values are supported.+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 ''​vsize''​. ​Additionally, ​platform-specific '​memtype'​ values are supported ​on some platforms.
  
 === AIX === === AIX ===
  
-^''​memtype'​' ​value ^ Is default ​^ Description ^ Tries to be compatible with ^ +See values supported for '​memtype' ​parameter on AIX in the table. 
-|vsize |  ​* ​ | virtual ​memory size | | + 
-|pmem | |percentage ​of real memory |ps -o pmem | +^ Supported ​value ^ Description ​^ Source in procentry64 structure ​^ Tries to be compatible with ^ 
-|rss | |resident ​set size |ps -o rssize | +|vsize ​(( - default value)) ​|Virtual ​memory size |pi_size ​| | 
-|size | |size of process (code + data) |"ps gvw" SIZE column | +|pmem |Percentage ​of real memory ​|pi_prm ​|ps -o pmem | 
-|dsize | |data size | | +|rss |Resident ​set size |pi_trss + pi_drss ​|ps -o rssize | 
-|tsize | |text (code) size |"ps gvw" TSIZ column| +|size |Size of process (code + data) |pi_dvm ​|"ps gvw" SIZE column | 
-|sdsize | |data size from shared library ​ | | +|dsize |Data size |pi_dsize ​| | 
-|drss | |data resident set size  | | +|tsize |Text (code) size |pi_tsize ​|"ps gvw" TSIZ column| 
-|trss | |text resident set size | | +|sdsize |Data size from shared library ​|pi_sdsize ​| | 
-|dvm | |data virtual memory size |shows the same value as '​size'​|+|drss |Data resident set size |pi_drss ​| | 
 +|trss |Text resident set size |pi_trss ​| |
  
 === FreeBSD === === FreeBSD ===
  
-^''​memtype'​' ​value ^ Is default ​Description ​^ Tries to be compatible with ^ +See values supported for '​memtype' ​parameter on FreeBSD in the table. 
-|vsize | |virtual ​size |ps -o vsz | + 
-|pmem | |percentage ​of real memory |ps -o pmem | +^ Supported ​value ^ Description ​Source in kinfo_proc structure ​^ Tries to be compatible with ^ 
-|rss | |resident ​set size |ps -o rss | +|vsize |Virtual memory size |kp_eproc.e_vm.vm_map.size or ki_size ​|ps -o vsz | 
-|size |  ​* ​ |size of process (code + data + stack) | | +|pmem |Percentage ​of real memory ​|calculated from rss |ps -o pmem | 
-|tsize | |text (code) size |ps -o tsiz | +|rss |Resident ​set size |kp_eproc.e_vm.vm_rssize or ki_rssize ​|ps -o rss | 
-|dsize | |data size |ps -o dsiz | +|size (( - default value)) ​|Size of process (code + data + stack) ​|tsize + dsize + ssize | | 
-|ssize | |stack ​size |ps -o ssiz |+|tsize |Text (code) size |kp_eproc.e_vm.vm_tsize or ki_tsize ​|ps -o tsiz | 
 +|dsize |Data size |kp_eproc.e_vm.vm_dsize or ki_dsize ​|ps -o dsiz | 
 +|ssize |Stack size |kp_eproc.e_vm.vm_ssize or ki_ssize ​|ps -o ssiz |
  
 === Linux === === Linux ===
  
-^''​memtype'​' ​value ^ Is default ​^ Description ^ Source ​from /​proc/<​pid>/​status file ^ +See values supported for '​memtype' ​parameter on Linux in the table. 
-|vsize |  ​* ​ |virtual ​memory size |VmSize | + 
-|pmem | |percentage ​of real memory |(VmRSS/​total_memory) * 100 | +^ Supported ​value ^ Description ^ Source ​in /​proc/<​pid>/​status file ^ 
-|rss | |resident ​set size |VmRSS | +|vsize ​(( - default value)) ​|Virtual ​memory size |VmSize | 
-|data | |size of data segment |VmData | +|pmem |Percentage ​of real memory |(VmRSS/​total_memory) * 100 | 
-|exe | |size of code segment |VmExe | +|rss |Resident ​set size |VmRSS | 
-|hwm | |peak resident set size |VmHWM | +|data |Size of data segment |VmData | 
-|lck | |size of locked memory |VmLck | +|exe |Size of code segment |VmExe | 
-|lib | |size of shared libraries |VmLib | +|hwm |Peak resident set size |VmHWM | 
-|peak | |peak virtual memory size |VmPeak | +|lck |Size of locked memory |VmLck | 
-|pin | |size of pinned pages |VmPin | +|lib |Size of shared libraries |VmLib | 
-|pte | |size of page table entries |VmPTE | +|peak |Peak virtual memory size |VmPeak | 
-|size | |size of process code + data + stack segments |VmExe + VmData + VmStk | +|pin |Size of pinned pages |VmPin | 
-|stk | |size of stack segment |VmStk | +|pte |Size of page table entries |VmPTE | 
-|swap | |size of swap space used |VmSwap |+|size |Size of process code + data + stack segments |VmExe + VmData + VmStk | 
 +|stk |Size of stack segment |VmStk | 
 +|swap |Size of swap space used |VmSwap | 
  
 Notes for Linux: Notes for Linux:
-  - 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. +  - 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. 
-  - We have noticed that self-monitoring of Zabbix agent active ​checks ​process with ''​proc.mem[...,​...,​...,​...,​data]''​ shows a value 4 kB larger than reported by ''​VmData''​ line in the agent'​s ​''​/​proc/<​pid>/​status'' ​file. At time of self-measurement the agent'​s data segment increases by 4 kB and then returns to the previous size.+  - We have noticed that self-monitoring of the Zabbix agent active ​check process with ''​proc.mem[...,​...,​...,​...,​data]''​ shows a value that is 4 kB larger than reported by ''​VmData''​ line in the agent'​s /​proc/<​pid>/​status file. At the time of self-measurement the agent'​s data segment increases by 4 kB and then returns to the previous size.
 === Solaris === === Solaris ===
  
-^''​memtype'​' ​value ^ Is default ​^ Description ^ Tries to be compatible with ^ +See values supported for '​memtype' ​parameter on Solaris in the table. 
-|vsize |  ​* ​ |size of process image |ps -o vsz | + 
-|pmem | |percentage ​of real memory |ps -o pmem | +^ Supported ​value ^ Description ​^ Source in psinfo structure ​^ Tries to be compatible with ^ 
-|rss | |resident ​set size \\ It may be underestimated - see rss description in "man ps"​.|ps -o rss |+|vsize ​(( - default value)) ​|Size of process image |pr_size ​| ps -o vsz | 
 +|pmem |Percentage ​of real memory ​|pr_pctmem ​|ps -o pmem | 
 +|rss |Resident ​set size \\ It may be underestimated - see rss description in "man ps".|pr_rssize ​|ps -o rss |