Changeset 1331 for DCWoRMS


Ignore:
Timestamp:
03/31/14 17:14:04 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/simulator/stats/CoolEmAllMetricsCalculator.java

    r1299 r1331  
    182182                        double usefulWork = 0; 
    183183                        for(String key: metricsData.keySet()){ 
    184                                 if(key.contains("/")){ 
     184                                if(key.contains("UW_")){ 
    185185                                        for(GSSAccumulator acc: metricsData.get(key)){ 
    186186                                                usefulWork= usefulWork + acc.getSum(); 
     
    319319        } 
    320320         
     321        private MetricsStats calculateDataCenterFansEnergyConsumptionOld(){ 
     322                 
     323                MetricsStats metric; 
     324                try{ 
     325 
     326                        double flowPump = 0; 
     327                        for(String key: metricsData.keySet()){ 
     328                                if(key.contains("FlowPump")){ 
     329                                        for(GSSAccumulator acc: metricsData.get(key)){ 
     330                                                flowPump = flowPump + acc.getSum(); 
     331                                        } 
     332                                } 
     333                        } 
     334 
     335                        metric = new MetricsStats("CoolEmAllTestbed", "Total_data_center_fans_energy_consumption", (flowPump), timestamp, "Wh"); 
     336                } catch (Exception e){ 
     337                        metric = new MetricsStats("CoolEmAllTestbed", "Total_data_center_fans_energy_consumption", -1, timestamp, "Wh"); 
     338                } 
     339                return metric; 
     340        } 
     341         
     342         
    321343        private MetricsStats calculateOtherDevicesEnergyConsumption(){ 
    322344                 
     
    404426                try{ 
    405427                        double itComputingEnergy = 0; 
    406                         double otherItComputingEnergy = 0; 
     428                         
    407429                        for(GSSAccumulator acc: metricsData.get("Processor_CALC")){ 
    408430                                itComputingEnergy = itComputingEnergy + acc.getSum(); 
    409431                        } 
    410                         for(GSSAccumulator acc: metricsData.get("Rack_CALC")){ 
    411                                 otherItComputingEnergy = otherItComputingEnergy + acc.getSum(); 
    412                         } 
    413                         itComputingEnergy = itComputingEnergy ;//+ otherItComputingEnergy;// + CoolEmAllTestbedMeasurements.OTHER_DEVICES_POWER_CONSUMPTION * (this.endTime - this.startTime)/(SEC_IN_HOUR * MILLI_SEC); 
    414  
     432                         
    415433                        double itEnergy = calculateITEnergyConsumption().getValue(); 
    416                         double processorsEnergy = calculateITComputingEnergyConsumption().getValue(); 
    417434 
    418435                        metric = new MetricsStats("CoolEmAllTestbed", "Energy_waste_rate", (1 - itComputingEnergy/itEnergy) * 100, timestamp, "%"); 
Note: See TracChangeset for help on using the changeset viewer.