Changeset 1583 for DCWoRMS/branches/coolemall/src/experiments/simpat2014/models/article/NodeEnergyEstimationPluginPowerCapping.java
- Timestamp:
- 02/04/16 14:19:12 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/experiments/simpat2014/models/article/NodeEnergyEstimationPluginPowerCapping.java
r1500 r1583 42 42 private double next_timer = -1; 43 43 44 private static double Pidle = 15;45 private static double Pfull = 76;44 private static double Pidle = 6; 45 private static double Pfull = 20; 46 46 47 47 … … 55 55 double powerConsumption = 0; 56 56 57 /*double Pcpu = 0;57 double Pcpu = 0; 58 58 for(Processor cpu: node.getProcessors()){ 59 59 Pcpu = Pcpu + cpu.getPowerInterface().getRecentPowerUsage().getValue(); 60 }*/ 61 62 //powerConsumption = Pidle + (Pfull- Pidle) * node.getLoadInterface().getRecentUtilization().getValue()/100; 63 powerConsumption = Pidle + node.getProcessors().get(0).getPowerInterface().getRecentPowerUsage().getValue(); 60 } 61 62 powerConsumption = Pcpu + Pidle + (Pfull- Pidle) * node.getLoadInterface().getRecentUtilization().getValue()/100; 64 63 65 64 /*if(powerCapLevel!= -1 && powerConsumption > powerCapLevel){ … … 114 113 for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 115 114 if(device.getType().equals(StandardResourceType.Fan)){ 116 if(Integer.valueOf(device.getName().split("_")[1]) == Integer.valueOf(node.getName().split("_")[1]) || Integer.valueOf(device.getName().split("_")[1]) == Integer.valueOf(cpu.getParent().getName().split("_")[1]) - EnvironmentConditions.NODES_IN_A_ROW){115 if(Integer.valueOf(device.getName().split("_")[1]).intValue() == Integer.valueOf(node.getName().split("_")[1]).intValue() || Integer.valueOf(device.getName().split("_")[1]).intValue() == Integer.valueOf(cpu.getParent().getName().split("_")[1]).intValue() - EnvironmentConditions.NODES_IN_A_ROW){ 117 116 Fan fan = (Fan) device; 118 117 V = fan.getAirflowInterface().getRecentAirflow().getValue();
Note: See TracChangeset
for help on using the changeset viewer.