The Memory (RAM) shown for the HPUX host in Foglight does not match the swapinfo command when run for the same time (Foglight shows much higher) using either the OS 5.5.4 or the IC 5.6.2 agents.
The values are determined as follows:
- OS 5.5.4 cartridge:
+ Total Memory: value obtained from pstat(2) using the pst_static.physical_memory
+ Consumed memory: Total memory - free memory as determined by a pstat(2) query for pst_dynamic.psd_free
- IC 5.6.2 Cartridge - Command Line:
+ Total Memory: The value of the AVAIL column from swapinfo. This does not include memory reserved by the kernel.
+ Consumed memory: The value of the USED column from swapinfo. This does not include memory reserved by the kernel.
- IC 5.6.2 Cartridge - Native collector turned to True:
+ Total Memory: The value obtained from pstat(2) using the pst_static.physical_memory element. This may differ significantly from the output of top/swapinfo.
Use "grep Physical /var/adm/syslog/syslog.log" to double check this.
+ Consumed memory: Memory.capacity minus the number of free memory pages as determined by a pstat(2) query for pst_dynamic.psd_free
==> The reason for the differences is that swapinfo does not include memory reserved for the kernel and the native collectors for OS (5.5.4) and IC (5.62) do consider reserved kernel memory to be "consumed"