How does the CDM probe calculate the Physical Memory Utilization on Linux

book

Article ID: 109696

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

How is the Physical Memory utilization calculated by the cdm probe on a Linux platform?

Environment

Release:
Component: UIMCDM

Linux/UNIX

Resolution

Memory and swap usage is found by reading the file ”/proc/meminfo”

without mem_buffer_used(Default Behavior) or mem_buffer_used = no
Physical Total = MemTotal –( MemFree + Buffers + Cached)

Here is the calculation we use with mem_buffer_used = "yes" enabled:
Physical Total = MemTotal –( MemFree)

The amount of physical memory used is based on the formula:

MemTotal - MemFree - Buffers – Cached. This is due to the fact that buffers and cached data are instantly available to any process which requests more memory.

Example:

32847836  - 182920 - 0 - 982728 which equals-> 31,682,188.

31,682,188 divided by 32847836 is .9645137049515225‬ which is approx. 96% used.