CPU utilization queries

CPU utilization queries return information about available CG board CPU resources. MSP_QRY_CPU_USAGE queries return the following structure:

typedef struct {
   DWORD       numCPUs;
   CPU_UTIL    cpu[MAX_CG_CPU];
} msp_CPU_UTIL;

 

This structure indicates the number of CPUs resident on the board (in the numCPUs field), and provides the following substructure for each active board CPU:

typedef struct {
   DWORD       currentUtil;
   DWORD       averageUtil;
} CPU_UTIL;

 

Each CPU_UTIL substructure provides the following information:

Field

Description

currentUtil

Current CG board CPU utilization (sampled approximately once per second) expressed as percentage of the maximum possible utilization.

averageUtil

Average utilization over the last 16 seconds.