Top Banner
Chapter 6 Dynamic Priority Servers In chapter 5, we looked at fixed priority servers. The scheduling algorithms were based upon Rate Monotonic periodic scheduling, which limits guaranteed utilization to approximately 70%. In chapter 6, we look at dynamic priority servers. The scheduling is based upon Earliest Deadline First. The most significant implication of this is that scheduling has higher bounds, approaching 100% utilization.
18

Chapter 6 Dynamic Priority Servers

Feb 25, 2016

Download

Documents

fathi

Chapter 6 Dynamic Priority Servers. In chapter 5, we looked at fixed priority servers. The scheduling algorithms were based upon Rate Monotonic periodic scheduling, which limits guaranteed utilization to approximately 70%. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 6  Dynamic Priority Servers

Chapter 6 Dynamic Priority Servers

In chapter 5, we looked at fixed priority servers. The scheduling algorithms were based upon Rate Monotonic periodic scheduling, which limits guaranteed utilization to approximately 70%.

In chapter 6, we look at dynamic priority servers. The scheduling is based upon Earliest Deadline First. The most significant implication of this is that scheduling has higher bounds, approaching 100% utilization.

Page 2: Chapter 6  Dynamic Priority Servers

Scheduling Strategies for Fixed Priority Servers (Chapter 5)(Based upon Rate Monotonic (RM) scheduling for periodic tasks)

• Background Service

First Come First Served (FCFS) service as availability permits

• Polling Server (PS)

Pseudo periodic task(s) provides slot for serving aperiodic tasks

• Deferrable Server (DS)

Unused capacity is saved for future aperiodic arrivals

• Priority Exchange Server (PE)

“Loans” unusable capacity to ready periodic tasks

• Sporadic Server

Loans unusable capacity to ready periodic tasks and delays recoup

• Slack Stealing

Passive task steals unnecessary slack time in scheduling

Page 3: Chapter 6  Dynamic Priority Servers

Properties of Dynamic Priority Servers(Based upon Earliest Deadline First (EDF) scheduling for periodic tasks)

Using Dynamic Priority Servers, the tasks are schedulable if and only if:

All tasks are fully preemptable

Page 4: Chapter 6  Dynamic Priority Servers

Dynamic Priority Servers

Dynamic Priority Exchange Server (DPE)

Loans priority to periodic tasks, and recoups it at a lower priority later

Dynamic Sporadic Server (DSS)

Used server capacity is replenished some time after it has been consumed

Total Bandwidth Server (TBS)

Aperiodic tasks are assigned all available bandwidth immediately

Earliest Deadline Late Server (EDL)

Like Earliest Deadline Last, periodic tasks are scheduled as late of possible

Improved Dynamic Priority Exchange Server (IPE)

Identified EDL slack is used schedule using Dynamic Priority Exchange

Page 5: Chapter 6  Dynamic Priority Servers

Dynamic Priority Exchange Server

Like Priority Exchange Server (in Chap 5), whenever there are no aperiodic tasks to be served, Dynamic Priority Exchange Server exchanges priorities with periodic tasks and wastes as little time as possible.

It also facilitates using the spare time when periodic tasks don’t use their worst case times.

Page 6: Chapter 6  Dynamic Priority Servers

Dynamic Priority Exchange Server

Page 7: Chapter 6  Dynamic Priority Servers

Dynamic Priority Exchange Server Example

Page 8: Chapter 6  Dynamic Priority Servers

Dynamic Priority Exchange – Reclaiming Spare Time

Page 9: Chapter 6  Dynamic Priority Servers

Dynamic Sporatic Server

Page 10: Chapter 6  Dynamic Priority Servers

Dynamic Sporadic Server

Dynamic Sporadic Server always schedules with a relatively long far deadline. Therefore, the response of aperiodic tasks may be longer than necessary.

A solution is to shorten the period of the Dynamic Sporadic Server, at the expense of more context switches.

Page 11: Chapter 6  Dynamic Priority Servers

Total Bandwidth Server

Total Bandwidth Server schedules earlier deadlines for aperiodic tasks, BUT does it such that the overall utilization of the aperiodic load never exceeds the maximum value of Us.

Each time an aperiodic request enters, the total bandwidth of the server is immediately assigned to it, WHENEVER POSSIBLE.

Page 12: Chapter 6  Dynamic Priority Servers

Total bandwidth Server

Page 13: Chapter 6  Dynamic Priority Servers

Earliest Deadline Late Server

Note that the Total Bandwidth Server is conservative. There is slack time that could have been utilized to give the aperiodic tasks better response.

Page 14: Chapter 6  Dynamic Priority Servers

Earliest Deadline Late Server

Page 15: Chapter 6  Dynamic Priority Servers

Earliest Deadline Late Server Example

Page 16: Chapter 6  Dynamic Priority Servers

Improved Dynamic Priority Exchange Server

EDL is overhead intensive. In Improved Dynamic Priority Exchange, the Dynamic Exchange Server is modified to use the idle times of EDL, yielding:

• a more efficient replenishment policy for the server

• the server is no longer periodic, and can be kept at the highest priority

Page 17: Chapter 6  Dynamic Priority Servers
Page 18: Chapter 6  Dynamic Priority Servers