Proactive work stealing for futures

  • Kyle Singer
  • , Yifan Xu
  • , I. Ting Angelina Lee

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

21 Scopus citations

Abstract

The use of futures provides a flexible way to express parallelism and can generate arbitrary dependences among parallel subcomputations. The additional flexibility that futures provide comes with a cost, however. When scheduled using classic work stealing, a program with futures, compared to a program that uses only fork-join parallelism, can incur a much higher number of "deviations," a metric for evaluating the performance of parallel executions. All prior works assume a parsimonious work-stealing scheduler, however, where a worker thread (surrogate of a processor) steals work only when its local deque becomes empty. In this work, we investigate an alternative scheduling approach, called ProWS, where the workers perform proactive work stealing when handling future operations. We show that ProWS, for programs that use futures, can provide provably eficient execution time and equal or better bounds on the number of deviations compared to classic parsimonious work stealing. Given a computation with T1work and T span, ProWS executes the computation on P processors in expected time O(T1/P + T lgP), with an additional lgP overhead on the span term compared to the parsimonious variant. For structured use of futures, where each future is single touch with no race on the future handle, the algorithm incurs O(PT2) deviations, matching that of the parsimonious variant. For general use of futures, the algorithm incurs O(mkT + PT lgP) deviations, where mk is the maximum number of future touches that are logically parallel. Compared to the bound for the parsimonious variant, O(kT + PT), with k being the total number of touches in the entire computation, this bound is better assuming mk = Ω(PlgP) and is smaller than k, which holds true for all the benchmarks we examined.

Original languageEnglish
Title of host publicationPPoPP 2019 - Proceedings of the 24th Principles and Practice of Parallel Programming
PublisherAssociation for Computing Machinery
Pages257-271
Number of pages15
ISBN (Electronic)9781450362252
DOIs
StatePublished - Feb 16 2019
Event24th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, PPoPP 2019 - Washington, United States
Duration: Feb 16 2019Feb 20 2019

Publication series

NameProceedings of the ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, PPOPP

Conference

Conference24th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, PPoPP 2019
Country/TerritoryUnited States
CityWashington
Period02/16/1902/20/19

Fingerprint

Dive into the research topics of 'Proactive work stealing for futures'. Together they form a unique fingerprint.

Cite this