• Nenhum resultado encontrado

December15,2009 PeterN.NyumuProfessor:AlfredoGoldman SchedulinginGridComputingusingMaster-SlaveSchedulingModel

N/A
N/A
Protected

Academic year: 2022

Share "December15,2009 PeterN.NyumuProfessor:AlfredoGoldman SchedulinginGridComputingusingMaster-SlaveSchedulingModel"

Copied!
23
0
0

Texto

(1)

Outline Introduction Single-Master Master-Slave Systems Final

Scheduling in Grid Computing using Master-Slave Scheduling Model

Peter N. Nyumu Professor: Alfredo Goldman

Mac0461

December 15, 2009

(2)

Introduction

Brief Description and Applications Scheduling

Single-Master Master-Slave Systems No-Wait in Process

Final

(3)

Outline Introduction Single-Master Master-Slave Systems Final

Brief Description and Applications Scheduling

Motivation

I Research in my undergraduate work

(4)

Outline Introduction Single-Master Master-Slave Systems Final

Brief Description and Applications Scheduling

Brief Description

I Master-Slave scheduling model, involves two sets of processors

I Master process and Slave processor

I The slave processors are responsible for the actual execution of the orders

(5)

Outline Introduction Single-Master Master-Slave Systems Final

Brief Description and Applications Scheduling

Brief Description

I Master-Slave scheduling model, involves two sets of processors

I Master process and Slave processor

I The master processors are responsible of preprocessing and postprecessing of work orders

I The slave processors are responsible for the actual execution of the orders

(6)

Master-Slave Model

(7)

Outline Introduction Single-Master Master-Slave Systems Final

Brief Description and Applications Scheduling

Two different schedule

I 1. No-wait-in schedule

I Each slave task must be scheduled immediately after the corresponding preprocessing task finishes

I Each postprocessing task must be scheduled immediately after the corresponding slave task finishes.

(8)

Two different schedule

I 1. No-wait-in schedule

I Each slave task must be scheduled immediately after the corresponding preprocessing task finishes

I Each postprocessing task must be scheduled immediately after the corresponding slave task finishes.

(9)

Outline Introduction Single-Master Master-Slave Systems Final

Brief Description and Applications Scheduling

Two different schedules

I 2. Canonical schedule

I Satisfies the following properties:

I No preemptions

I The preprocessing tasks begin on the master machine at time 0 and complete at time P

ai

I Slave tasks begin as soon as their corresponding preprocessing tasks complete.

I Postprocessing tasks are done in the same order as the slave tasks complete and as soon as possible.

(10)

Two different schedules

I 2. Canonical schedule

I Satisfies the following properties:

I No preemptions

I The preprocessing tasks begin on the master machine at time 0 and complete at time P

ai

I Slave tasks begin as soon as their corresponding preprocessing tasks complete.

I Postprocessing tasks are done in the same order as the slave tasks complete and as soon as possible.

(11)

Outline Introduction Single-Master Master-Slave Systems Final

Brief Description and Applications Scheduling

Application of Master-Slave model

I parallel computing

I semiconductor testing

I industrial applications

(12)

Unconstrained Minimum Finish Time Problem (UMFT)

I UMFT problem is NP-hard.

I Apply the canonical schedule.

I Can rearrange the master tasks so that all preprocessing tasks complete before any postprocessing task starts.

I For any canonical schedule S, CCS ≤2 and the bound is tight.

(13)

Outline Introduction Single-Master Master-Slave Systems Final

No-Wait in Process

Applying Heurisitic in UMFT

I A better bound is achieved by applying the following heuristic:

I Let S1={i :ai ≤ci} andS2 ={i :ai >ci}

I Reorder the jobs in S1 according to nondecreasing order of bi.

I Reorder the jobs in S2 according to nonincreasing order of bi.

I Generate the canonical schedule in which thea tasks ofS1

precede those of S2.

I CH

C32 and bound is tight.

(14)

Applying Heurisitic in UMFT

I A better bound is achieved by applying the following heuristic:

I Let S1={i :ai ≤ci} andS2 ={i :ai >ci}

I Reorder the jobs in S1 according to nondecreasing order of bi.

I Reorder the jobs in S2 according to nonincreasing order of bi.

I Generate the canonical schedule in which thea tasks ofS1

precede those of S2.

I CH

C32 and bound is tight.

(15)

Outline Introduction Single-Master Master-Slave Systems Final

No-Wait in Process

Order Preserving Minimum Finish Time (OPMFT)

I We have same order of preprocessing and postprocessing

I Apply canonical schedule

I Its possible to construct an O(nlogn) algorithm, by defining a canonical order preserving schedule (COPS)

I There is an OPMFT schedule which is a COPS in which the preprocessing order satifies that, jobs with cj >aj come first, jobs with cj =aj come next, and thejobs with cj <aj come last.

(16)

Order Preserving Minimum Finish Time (OPMFT)

I We have same order of preprocessing and postprocessing

I Apply canonical schedule

I Its possible to construct an O(nlogn) algorithm, by defining a canonical order preserving schedule (COPS)

I There is an OPMFT schedule which is a COPS in which the preprocessing order satifies that, jobs with cj >aj come first, jobs with cj =aj come next, and thejobs with cj <aj come last.

(17)

Outline Introduction Single-Master Master-Slave Systems Final

No-Wait in Process

Canonical Reverse Order Schedules (CROS)

I construction of reverse order processing

I It works as follows:

I the master preprocesses the n jobs in the order σ

I slave i begins the slave processing of jobi as soon as the master completes its preprocessing.

I the master begins the postprocessing of the last job inσ as soon as its slave task is complete

I the master begins the postprocessing of job j 6=k at the later of the two times (a) when it has finished the postprocessing of the succesor of j in σ, and (b) when slavej has finished bj.

(18)

Outline Introduction Single-Master Master-Slave Systems Final

No-Wait in Process

Canonical Reverse Order Schedules (CROS)

I construction of reverse order processing

I It works as follows:

master completes its preprocessing.

I the master begins the postprocessing of the last job inσ as soon as its slave task is complete

I the master begins the postprocessing of job j 6=k at the later of the two times (a) when it has finished the postprocessing of the succesor of j in σ, and (b) when slavej has finished bj.

(19)

Outline Introduction Single-Master Master-Slave Systems Final

No-Wait in Process

Canonical Reverse Order Schedules (CROS)

I construction of reverse order processing

I It works as follows:

I the master preprocesses the n jobs in the order σ

I slave i begins the slave processing of jobi as soon as the master completes its preprocessing.

I the master begins the postprocessing of the last job inσ as soon as its slave task is complete

I the master begins the postprocessing of job j 6=k at the later

(20)

Outline Introduction Single-Master Master-Slave Systems Final

No-Wait in Process

No-Wait in Process

I The Minimize Finish Time (MFTNW), subject to the no-wait-in-process constraint.

(21)

Outline Introduction Single-Master Master-Slave Systems Final

No-Wait in Process

No-Wait in Process

I The Minimize Finish Time (MFTNW), subject to the no-wait-in-process constraint.

I The Order-Preserving version of MFTNW.

I The Reverse-Order version of MFTNW.

(22)

No-Wait in Process

I The Minimize Finish Time (MFTNW), subject to the no-wait-in-process constraint.

I The Order-Preserving version of MFTNW.

I The Reverse-Order version of MFTNW.

(23)

Outline Introduction Single-Master Master-Slave Systems Final

Questions

Referências

Documentos relacionados

O capitalismo é a dinâmica própria de inserção do país na ordem capitalista .A Sociologia brasileira nasce a partir da década de 1930, quando começam a aparecer reflexões sobre

cujas consequências pragmáticas se tornam cada vez mais evidentes, a su- peração crítica do modo europeu moderno de ser e pensar passará, sem dúvida, pela descoberta da atitude

Como se vê, entendendo-se a literatura e, por extensão, toda a narrativa de ficção, inclusive o cinema e, eventualmente, a fotografia, como sendo alguns dos possíveis “lugares

As principais intervenções realizadas para o gerenciamento de antimicrobianos foram a redução do tratamento em 18%, ajuste do clearance para função renal (8%) e antibióticos

The format of the three policies that com- posed it was distinct: social welfare was execut- ed with centralized national management in the Federal District (DF); health under

The results could be described as follows: (i) First of all, changes in task demands should distract from the secondary task to the extent that these task demands im- plicate and

Num plano geral, no arquipélago, como noutros contextos políticos, aflora a questão de tornar o conhecimento histórico e o saber social pertinentes (até porque certos estereótipos

Neste momento em que a utilização exclusiva de testes e provas para avaliar a aprendizagem está sendo fortemente questionada e o uso de instrumentos que fornecem informa-