Metadata

group DCGMAPI_METADATA

This chapter describes the methods that query for DCGM metadata.

Functions

dcgmReturn_t dcgmIntrospectGetHostengineMemoryUsage(dcgmHandle_t pDcgmHandle, dcgmIntrospectMemory_t *memoryInfo, int waitIfNoData)

Retrieve the total amount of memory that the hostengine process is currently using.

This measurement represents both the resident set size (what is currently in RAM) and the swapped memory that belongs to the process.

Parameters:
  • pDcgmHandle – IN: DCGM Handle

  • memoryInfo – IN/OUT: see dcgmIntrospectMemory_t. memoryInfo->version must be set to dcgmIntrospectMemory_version prior to this call.

  • waitIfNoData – IN: if no metadata is gathered wait till this occurs (!0) or return DCGM_ST_NO_DATA (0)

Returns:

dcgmReturn_t dcgmIntrospectGetHostengineCpuUtilization(dcgmHandle_t pDcgmHandle, dcgmIntrospectCpuUtil_t *cpuUtil, int waitIfNoData)

Retrieve the CPU utilization of the DCGM hostengine process.

Parameters:
  • pDcgmHandle – IN: DCGM Handle

  • cpuUtil – IN/OUT: see dcgmIntrospectCpuUtil_t. cpuUtil->version must be set to dcgmIntrospectCpuUtil_version prior to this call.

  • waitIfNoData – IN: if no metadata is gathered wait till this occurs (!0) or return DCGM_ST_NO_DATA (0)

Returns: