hdeeprm.resource module¶
Core class and functionality for defining the Resource Hierarchy in the Decision System.
-
class
hdeeprm.resource.Core(processor: dict, bs_id: int)[source]¶ Bases:
objectCore representing a compute resource in the Platform.
Cores process Jobs inside the Platform. They are uniquely identifiable in Batsim and provide a computing capability for a given power consumption.
-
processor¶ Parent Processor data structure. Fields:
node (dict) - Parent Node data structure. Fields:cluster (dict) - Parent Cluster data structure. Fields:platform (dict) - Root Platform data structure. Fields:total_nodes (int) - Total Nodes in the Platform.total_processors (int) - Total Processors in the Platform.total_cores (int) - Total Cores in the Platform.job_limits (dict) - Resource request limits for any Job. Fields:local_nodes (list(dict)) - Reference to local Nodes to the Cluster.max_mem_bw (float) - Maximum memory BW capacity of the Processor in GB/s.current_mem_bw (float) - Current memory BW capacity of the Processor in GB/s.gflops_per_core (float) - Maximum GFLOPs per Core in the Processor.power_per_core (float) - Maximum Watts per Core in the Processor.local_cores (list(Core)) - Reference to local Cores to the Processor.Type: dict
-
state¶ Defines the current state of the Core. Data fields:
pstate (int) - P-state for the Core.current_gflops (float) - Current computing capability in GFLOPs.current_power (float) - Current power consumption in Watts.served_job (batim.batsim.Job) - Job being served by the Core.Type: dict
-
get_remaining_per() → float[source]¶ Provides the remaining percentage of the Job being served.
Calculated by dividing the remaining operations by the total requested on arrival.
-