Skip to main content Accessibility help
×
Hostname: page-component-5c6d5d7d68-ckgrl Total loading time: 0 Render date: 2024-08-16T07:10:24.725Z Has data issue: false hasContentIssue false

33 - Scheduling: SRPT and Fairness

from VII - Smart Scheduling in the M/G/1

Published online by Cambridge University Press:  05 February 2013

Mor Harchol-Balter
Affiliation:
Carnegie Mellon University, Pennsylvania
Get access

Summary

In this chapter, we introduce Shortest-Remaining-Processing-Time (SRPT) scheduling. SRPT is even superior to the PSJF policy that we saw in the last chapter, because it takes a job's remaining service requirement into account, not just the original job size. We also compare all the scheduling policies that we have studied so far with respect to mean response time as a function of load and the variability of the job size distribution. Finally, we study the fairness of SRPT by comparing it to the (fair) PS policy and proving the All-Can-Win theorem.

Shortest-Remaining-Processing-Time (SRPT)

Under SRPT, at all times the server is working on that job with the shortest remaining processing time. The SRPT policy is preemptive so that a new arrival will preempt the current job serving if the new arrival has a shorter remaining processing time.

Observe that, under SRPT, once a job, j, starts running, it can only be preempted by a new arrival whose size is shorter than j's remaining time. In particular, any jobs that are in the system with j, while j is running, will never run before j completes.

Remember that in Exercise 2.3 we proved that SRPT achieves the lowest possible mean response time on every arrival sequence. In this section, we analyze the mean response time for SRPT in the M/G/1 setting.

Question: Can we look at SRPT as some type of preemptive priority system with classes?

Answer: No! The problem is that in SRPT a job's priority is its “remaining” size, which changes as the job ages. The preemptive priority model does not allow jobs to change priorities while in queue.

Type
Chapter
Information
Performance Modeling and Design of Computer Systems
Queueing Theory in Action
, pp. 518 - 530
Publisher: Cambridge University Press
Print publication year: 2013

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Scheduling: SRPT and Fairness
  • Mor Harchol-Balter, Carnegie Mellon University, Pennsylvania
  • Book: Performance Modeling and Design of Computer Systems
  • Online publication: 05 February 2013
  • Chapter DOI: https://doi.org/10.1017/CBO9781139226424.041
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Scheduling: SRPT and Fairness
  • Mor Harchol-Balter, Carnegie Mellon University, Pennsylvania
  • Book: Performance Modeling and Design of Computer Systems
  • Online publication: 05 February 2013
  • Chapter DOI: https://doi.org/10.1017/CBO9781139226424.041
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Scheduling: SRPT and Fairness
  • Mor Harchol-Balter, Carnegie Mellon University, Pennsylvania
  • Book: Performance Modeling and Design of Computer Systems
  • Online publication: 05 February 2013
  • Chapter DOI: https://doi.org/10.1017/CBO9781139226424.041
Available formats
×