Changes between Version 14 and Version 15 of ClientSim


Ignore:
Timestamp:
Sep 27, 2010, 12:26:25 PM (14 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ClientSim

    v14 v15  
    129129otherwise it is always available.
    130130
    131 The algorithm for simulating a scheduler RPC is:
     131The algorithm for simulating a scheduler RPC to project P is:
    132132
    133133{{{
    134134while need more work
    135         X = list of apps with versions for requested resources
    136         choose an app A from X, randomly based on weights
    137         V = version that uses requested resources
    138                 and has highest FLOPS
    139         J = generate job
    140         if J is feasible
    141                 update request
    142         else
    143                 infeasible_count++
    144                 if infeasible_count == 10
    145                         break
    146        
     135   X = list of P's apps with versions for requested resources
     136   if X is empty
     137      break
     138   choose an app A from X, randomly based on weights
     139      V = version that uses requested resources and has highest FLOPS
     140      J = generate job
     141      if J is feasible
     142         update request
     143      else
     144         infeasible_count++
     145         if infeasible_count == 10
     146            break
    147147}}}
    148148