Changeset 1331 for DCWoRMS/branches
- Timestamp:
- 03/31/14 17:14:04 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/simulator/stats/CoolEmAllMetricsCalculator.java
r1299 r1331 182 182 double usefulWork = 0; 183 183 for(String key: metricsData.keySet()){ 184 if(key.contains(" /")){184 if(key.contains("UW_")){ 185 185 for(GSSAccumulator acc: metricsData.get(key)){ 186 186 usefulWork= usefulWork + acc.getSum(); … … 319 319 } 320 320 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 321 343 private MetricsStats calculateOtherDevicesEnergyConsumption(){ 322 344 … … 404 426 try{ 405 427 double itComputingEnergy = 0; 406 double otherItComputingEnergy = 0;428 407 429 for(GSSAccumulator acc: metricsData.get("Processor_CALC")){ 408 430 itComputingEnergy = itComputingEnergy + acc.getSum(); 409 431 } 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 415 433 double itEnergy = calculateITEnergyConsumption().getValue(); 416 double processorsEnergy = calculateITComputingEnergyConsumption().getValue();417 434 418 435 metric = new MetricsStats("CoolEmAllTestbed", "Energy_waste_rate", (1 - itComputingEnergy/itEnergy) * 100, timestamp, "%");
Note: See TracChangeset
for help on using the changeset viewer.