How is "Memory Usage" Calculated by cdm on Solaris-Based Systems?

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

Introduction:

Describe how Memory usage is calculated on Solaris box

Question:

Question:

Customer wants to know how memory usage is calculate on Solaris environment.

 

Environment:
Environment:CDM 6.0 or higher; Solaris
Answer:

Answer:

-   Memory usage is found using the system call sysconf(_SC_AVPHYS_PAGES). The result is the number of free pages of physical memory which is multiplied by the page size and subtracted from the physical memory.

- Swap usage is found using the system call swapctl().

- Paging data is found by running either “/usr/bin/vmstat –s” or “/usr/5bin/vmstat –s” (depending on which is installed on the system) and parsing the data it provides. Since the data is cumulative the difference since the last data gathering is used as the basis for calculating paging in KB/s based on the formula paging_kbps = paging_delta * pagesize / interval.