How to configure SystemEDGE to support variations of Free Memory on Linux

Document ID : KB000051916
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: 

How can I change SystemEDGE on LINUX Free Memory value to include buffers, cache, or all?

Environment:  

LINUX ANY, REDHAT, SUSE

Answer: 

edit the Host/Agents sysedge.cf file to include a line like

################################################################################
# This entry specifies the preferred calculation method (Linux only) for free memory.
#
# Syntax:
#    linux_freemem_include method [method]   (Linux only)
#
# Description:
#    <method> can be one or both of:
#    buffers = include system buffers in the free memory calculation
#    cached  = include disk cached memory in the free memory calculation
#
# Example:
#    linux_freemem_include buffers cached    (Linux only)
################################################################################
template linux_freemem_include <method-list>
linux_freemem_include buffers cached

After the update of the sysedge.cf with the linux_freemem_include buffers cached value, save the file, and restart the agent.

Linux free memory is calculated as total physical memory less memory in use. By default, memory in use includes system buffers and disk cache.

Cache and system buffers can be reclaimed by the operating system if memory is needed for processes. For this reason, some choose to view free memory as including memory which is used by the operating system for caching or system buffers. The linux_freemem_include directive includes these values in the Linux free memory calculation. The directive supports the following two options:
- buffers include system buffers in the free memory calculation.
- cached include cached memory in the free memory calculation.

At least one of the previous options must be specified. The options may be specified in any order and must be separated by one or more spaces.