Ignore:
Timestamp:
02/04/16 14:19:12 (9 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/experiments/simpat2014/models/article/NodeEnergyEstimationPluginPowerCapping.java

    r1500 r1583  
    4242        private double next_timer = -1; 
    4343 
    44         private static double Pidle = 15; 
    45         private static double Pfull = 76; 
     44        private static double Pidle = 6; 
     45        private static double Pfull = 20; 
    4646 
    4747 
     
    5555                double powerConsumption = 0; 
    5656 
    57                 /*double Pcpu = 0;       
     57                double Pcpu = 0;         
    5858                for(Processor cpu: node.getProcessors()){ 
    5959                        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; 
    6463                 
    6564                /*if(powerCapLevel!= -1 && powerConsumption > powerCapLevel){ 
     
    114113                for(Device device: node.getParent().getResourceCharacteristic().getDevices()){ 
    115114                        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){ 
    117116                                        Fan fan = (Fan) device; 
    118117                                        V = fan.getAirflowInterface().getRecentAirflow().getValue(); 
Note: See TracChangeset for help on using the changeset viewer.