48
Analysis of cooperation in multi- organization Scheduling Pierre-François Dutot (Grenoble University) Krzysztof Rzadca (Polish-Japanese school, Warsaw) Fanny Pascual (LIP6, Paris) Denis Trystram (Grenoble University and INRIA) NCST, CIRM, may 13, 2008

Analysis of cooperation in multi-organization Scheduling

  • Upload
    jersey

  • View
    28

  • Download
    2

Embed Size (px)

DESCRIPTION

Analysis of cooperation in multi-organization Scheduling. Pierre-François Dutot (Grenoble University) Krzysztof Rzadca (Polish-Japanese school, Warsaw) Fanny Pascual (LIP6, Paris) Denis Trystram (Grenoble University and INRIA) NCST, CIRM, may 13, 2008. Goal. - PowerPoint PPT Presentation

Citation preview

Page 1: Analysis of cooperation in multi-organization Scheduling

Analysis of cooperation in multi-

organization Scheduling

Pierre-François Dutot (Grenoble University)

Krzysztof Rzadca (Polish-Japanese school, Warsaw)

Fanny Pascual (LIP6, Paris)Denis Trystram (Grenoble University

and INRIA)

NCST, CIRM, may 13, 2008

Page 2: Analysis of cooperation in multi-organization Scheduling

Goal The evolution of high-performance execution platforms leads to distributed entities (organizations) which have their own « local » rules.

Our goal is to investigate the possibility of cooperation for a better use of a global computing system made from a collection of autonomous clusters.

Work partially supported by the Coregrid Network of Excellence of the EC.

Page 3: Analysis of cooperation in multi-organization Scheduling

Main result

We show in this work that it is always possible to produce an efficient collaborative solution (i.e. with a theoretical performance guarantee) that respects the organizations’ selfish objectives.

A new algorithm with theoretical worst case analysis plus experiments for a case study (each cluster has the same objective: makespan).

Page 4: Analysis of cooperation in multi-organization Scheduling

Target platforms

Our view of computational grids is a collection of independent clusters belonging to distinct organizations.

……

Page 5: Analysis of cooperation in multi-organization Scheduling

Computational model(one cluster)Independent applications are

submitted locally on a cluster. The are represented by a precedence task graph.

An application is a parallel rigid job.

Let us remind briefly the model (close to what presented Andrei Tchernykh this morning)… See Feitelson for more details and classification.

Page 6: Analysis of cooperation in multi-organization Scheduling

Cluster

J1J2J3… …

Local queue of submitted jobs

Page 7: Analysis of cooperation in multi-organization Scheduling

Job

Page 8: Analysis of cooperation in multi-organization Scheduling
Page 9: Analysis of cooperation in multi-organization Scheduling
Page 10: Analysis of cooperation in multi-organization Scheduling
Page 11: Analysis of cooperation in multi-organization Scheduling
Page 12: Analysis of cooperation in multi-organization Scheduling
Page 13: Analysis of cooperation in multi-organization Scheduling

overheadComputational area

Rigid jobs: the number of processors is fixed.

Page 14: Analysis of cooperation in multi-organization Scheduling

#of required processors qi

Runtime pi

Page 15: Analysis of cooperation in multi-organization Scheduling

#of required processors qi

Runtime pi

high jobs (those which require more than m/2 processors) and low jobs (the others).

Page 16: Analysis of cooperation in multi-organization Scheduling

Scheduling rigid jobs:Packing algorithms

Scheduling independent rigid jobs may be solved as a 2D packing Problem (strip packing). List algorithm (off-line).

m

Page 17: Analysis of cooperation in multi-organization Scheduling

Cluster

J1J2J3… …

…Organization k

n organizations.

m processors(identical for the sake of presentation)

k

Page 18: Analysis of cooperation in multi-organization Scheduling

……

Page 19: Analysis of cooperation in multi-organization Scheduling

……

Page 20: Analysis of cooperation in multi-organization Scheduling

n organizations (here, n=3, red 1, green 2 and blue 3)

Each organization k aims at minimizing « its » own makespan max(Ci,k)We want also that the global makespan is minimized

Cmax(Ok) organizationCmax(Mk) cluster

Page 21: Analysis of cooperation in multi-organization Scheduling

n organizations (here, n=3, red 1, green 2 and blue 3)

Each organization k aims at minimizing « its » own makespan max(Ci,k)We want also that the global makespan (max over all local ones) is minimized

Cmax(O2)

Cmax(O3)= Cmax(M1)

Cmax(Ok) organizationCmax(Mk) cluster

Page 22: Analysis of cooperation in multi-organization Scheduling

Problem statement

MOSP: minimization of the « global » makespan under the constraint that no local schedule is increased.

Consequence: taking the restricted instance n=1 (one organization) and m=2 with sequential jobs, the problem is the classical 2 machines problem which is NP-hard. Thus, MOSP is NP-hard.

Page 23: Analysis of cooperation in multi-organization Scheduling

Multi-organizations

Motivation:A non-cooperative solution is that all the organizations compute their local jobs (« my job first » policy).However, such a solution is arbitrarly far from the global optimal (it grows to infinity with the number of organizations n). See next example with n=3 for jobs of unit length.

no cooperation with cooperation (optimal)

O1

O2

O3

O1

O2

O3

Page 24: Analysis of cooperation in multi-organization Scheduling

Preliminary results

Single organization scheduling (packing).

Resource constraint list algorithm (Garey-Graham 1975).

• List-scheduling: (2-1/m) approximation ratio

• HF: Highest First schedules (sort the jobs by decreasing number of required processors). Same theoretical guaranty but better from the practical point of view.

Page 25: Analysis of cooperation in multi-organization Scheduling

Analysis of HF (single cluster)

high utilization zone (I)(more than 50% of processors are busy)

low utilization zone (II)

Proposition. All HF schedules have the same structure which consists in two consecutive zones of high (I) and low (II) utilization.

Proof. (2 steps)By contracdiction, no high job appears after zone (II) starts

Page 26: Analysis of cooperation in multi-organization Scheduling

Collaboration between clusters can substantially

improve the results.

Other more sophisticated algorithms than the simple load balancing are possible: matching certain types of jobs may lead to bilaterally profitable solutions.

no cooperation with cooperation

O1

O2

O1

O2

Page 27: Analysis of cooperation in multi-organization Scheduling

If we can not worsen any local makespan, the global optimum can

not be reached.

1

2

1

2 2

1

2

1

2

2

local globally optimal

O1

O2

O1

O2

Page 28: Analysis of cooperation in multi-organization Scheduling

If we can not worsen any local makespan, the global optimum can

not be reached.

1

2

1

2 2

1

2

1

2

2

1

2

1

2

2

local globally optimal

best solution that does notincrease Cmax(O1)

O1

O2

O1

O2

O1

O2

Page 29: Analysis of cooperation in multi-organization Scheduling

If we can not worsen any local makespan, the global optimum can

not be reached.Lower bound on approximation ratio greater than 3/2.

1

2

1

2 2

1

2

1

2

2

1

2

1

2

2best solution that does notincrease Cmax(O1)

O1

O2

O1

O2

O1

O2

Page 30: Analysis of cooperation in multi-organization Scheduling

Multi-Organization Load-Balancing

1 Each cluster is running local jobs with Highest First LB = max (pmax,W/nm) 2. Unschedule all jobs that finish after 3LB.3. Divide them into 2 sets (Ljobs and Hjobs)4. Sort each set according to the Highest first order5. Schedule the jobs of Hjobs backwards from 3LB

on all possible clusters6. Then, fill the gaps with Ljobs in a greedy manner

Page 31: Analysis of cooperation in multi-organization Scheduling

let consider a cluster whose last job finishes before 3LB

3LB

LjobHjob

Page 32: Analysis of cooperation in multi-organization Scheduling

3LB

LjobHjob

Page 33: Analysis of cooperation in multi-organization Scheduling

3LB

LjobHjob

Page 34: Analysis of cooperation in multi-organization Scheduling

3LB

LjobHjob

Page 35: Analysis of cooperation in multi-organization Scheduling

3LB

Ljob

Page 36: Analysis of cooperation in multi-organization Scheduling

3LB

Ljob

Page 37: Analysis of cooperation in multi-organization Scheduling

Notice that the centralized scheduling mechanism isnot work stealing, moreover, the idea is to changeas minimum as we can the local schedules.

Page 38: Analysis of cooperation in multi-organization Scheduling

Feasibility (insight)

Zone (I)

3LB

Zone (I)Zone (II)

Page 39: Analysis of cooperation in multi-organization Scheduling

Sketch of analysis

Case 1: x is a small job.Global surface argument

Case 2: x is a high job.Much more complicated, see the paper for technical details

Proof by contradiction: let us assume that it is not feasible, and call x the first job that does not fit in a cluster.

Page 40: Analysis of cooperation in multi-organization Scheduling

3-approximation (by construction)

This bound is tight

Local HF schedules

Page 41: Analysis of cooperation in multi-organization Scheduling

3-approximation (by construction)

This bound is tight

Optimal (global) schedule

Page 42: Analysis of cooperation in multi-organization Scheduling

3-approximation (by construction)

This bound is tight

Multi-organization load-balancing

Page 43: Analysis of cooperation in multi-organization Scheduling

Improvement

Local schedules

Multi-org LB

load balance

O3

O1O2

O4O5

O3

O1

O2

O4O5

O3

O1O2

O4O5

We add an extra load-balancing procedure

O3

O1O2

O4O5

Compact

Page 44: Analysis of cooperation in multi-organization Scheduling

Some experiments

Page 45: Analysis of cooperation in multi-organization Scheduling

Conclusion

We proved in this work that cooperation may help for a better global performance (for the makespan).We designed a 3-approximation algorithm.It can be extended to any size of organizations (with an extra hypothesis).

Page 46: Analysis of cooperation in multi-organization Scheduling

Conclusion

We proved in this work that cooperation may help for a better global performance (for the makespan).We designed a 3-approximation algorithm.It can be extended to any size of organizations (with an extra hypothesis).

Based on this, it remains a lot of interesting open problems, including the study of the problem for different local policies or objectives (Daniel Cordeiro)

Page 47: Analysis of cooperation in multi-organization Scheduling

Thanks for attentionDo you have any questions?

Page 48: Analysis of cooperation in multi-organization Scheduling

Using Game Theory?

We propose here a standard approach using CombinatorialOptimization.

Cooperative Game Theory may also be usefull, but it assumes that players (organizations) can communicate and form coalitions. The members of the coalitions split the sum of their playoff after the end of the game.We assume here a centralized mechanism and no communication between organizations.