Resource Tuner
|
#include <TargetRegistry.h>
Public Member Functions | |
int32_t | getPhysicalCoreId (int32_t logicalClusterId, int32_t logicalCoreId) |
Called by the Verifier to get the physical core ID corresponding to the Logical Core ID value. | |
int32_t | getPhysicalClusterId (int32_t logicalClusterId) |
Called by the Verifier to get the physical Cluster ID corresponding to the Logical Cluster ID value. | |
void | readTargetInfo () |
Called during Server Init, to read and Parse the Logical To Physical Core / Cluster Mappings. | |
Stores all the target related info, fetched dynamically or provided statically via Target and Init Config files.
Definition at line 80 of file TargetRegistry.h.
int32_t TargetRegistry::getPhysicalClusterId | ( | int32_t | logicalClusterId | ) |
Called by the Verifier to get the physical Cluster ID corresponding to the Logical Cluster ID value.
This routine performs Logical to Physical Cluster Translation.
logicalClusterId | The Logical Cluster ID, passed via the mResInfo field (part of the Resource struct) when issuing a tuneResources API call. |
int32_t TargetRegistry::getPhysicalCoreId | ( | int32_t | logicalClusterId, |
int32_t | logicalCoreId | ||
) |
Called by the Verifier to get the physical core ID corresponding to the Logical Core ID value.
This routine performs Logical to Physical Core Translation.
logicalClusterId | The Logical Cluster ID, passed via the mResInfo field (part of the Resource struct) when issuing a tuneResources API call. |
logicalCoreId | The Logical Core ID, passed via the mResInfo field (part of the Resource struct) when issuing a tuneResources API call. |
void TargetRegistry::readTargetInfo | ( | ) |
Called during Server Init, to read and Parse the Logical To Physical Core / Cluster Mappings.
This routine will extract the physical Core IDs and the list of CPU cores part of each Physical Cluster This data will be used to perform Logical to Physical Translation for each incoming tuneResources Request later on, if it contains any Resource which has ApplyType set to Core.
Note: This function tries to use different strategies to get the Core / Cluster Enumeration and Mapping data: