Changeset 708 for DCWoRMS/trunk/src/test/article/recs/plugins/scheduling/RecsExclusivenessEnOptSP.java
- Timestamp:
- 12/20/12 17:23:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/test/article/recs/plugins/scheduling/RecsExclusivenessEnOptSP.java
r680 r708 22 22 import schedframe.resources.computing.Core; 23 23 import schedframe.resources.computing.Processor; 24 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; 24 25 import schedframe.resources.units.ProcessingElements; 25 26 import schedframe.resources.units.ResourceUnit; … … 84 85 List<ComputingNode> nodes = resourceManager.getComputingNodes(); 85 86 Collections.sort(nodes, new EnergyComparator(task)); 87 //System.out.println("*****"); 86 88 for (ComputingNode node : nodes) { 89 //System.out.println(node.getCategory()); 87 90 int cpuRequest; 88 91 try { … … 111 114 if(freeCores != cores.size()) 112 115 continue; 116 117 try { 118 if(!getExecutiveness(createExecutivenessQuery(task, node))) 119 continue; 120 } catch (FileNotFoundException e) { 121 continue; 122 } catch (IOException e) { 123 continue; 124 } catch (MissingResourceException e){ 125 continue; 126 } 127 113 128 List<ComputingResource> choosenResources = new ArrayList<ComputingResource>(); 114 129 for (int i = 0; i < cores.size() && cpuRequest > 0; i++) { … … 201 216 double node2EU = Double.MAX_VALUE; 202 217 try { 203 node1EU = getMeasuredTime(createQuery(task, node1)) * getMeasuredPower(createQuery(task, node1)); 204 node2EU = getMeasuredTime(createQuery(task, node2)) * getMeasuredPower(createQuery(task, node2)); 205 } catch (FileNotFoundException e) { 218 node1EU = getMeasuredTime(createQuery(task, node1)) * (getMeasuredPower(createQuery(task, node1)) - node1.getPowerInterface().getPowerConsumption(StandardPowerStateName.ON)); 219 //System.out.println(node1.getCategory() + ": " + node1EU + "; "+ getMeasuredTime(createQuery(task, node1)) +";" + node1.getPowerInterface().getPowerConsumption(StandardPowerStateName.ON) + ":" + getMeasuredPower(createQuery(task, node1))); 220 node2EU = getMeasuredTime(createQuery(task, node2)) * (getMeasuredPower(createQuery(task, node2)) - node2.getPowerInterface().getPowerConsumption(StandardPowerStateName.ON)); 221 //System.out.println(node2.getCategory() + ": " + node2EU + "; "+ getMeasuredTime(createQuery(task, node2)) +";" + node2.getPowerInterface().getPowerConsumption(StandardPowerStateName.ON) + ":" + getMeasuredPower(createQuery(task, node2))); 222 } catch (FileNotFoundException e) { 206 223 207 224 } catch (IOException e) { … … 209 226 } catch (MissingResourceException e){ 210 227 228 } catch (NoSuchFieldException e) { 229 211 230 } 212 231 if(node1EU > node2EU)
Note: See TracChangeset
for help on using the changeset viewer.