arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1312.2501cs.DC
收藏

基于任务的优先级调度的数据结构

Data Structures for Task-based Priority Scheduling

Martin Wimmer, Daniel Cederman, Francesco Versaci, Jesper Larsson Träff, Philippas Tsigas

摘要:

许多任务并行应用可以从尝试以特定顺序执行任务中受益,例如由与任务相关联的优先级所指示的。我们提出了三个无锁的数据结构的优先级调度的可扩展性和顺序保证不同的权衡。首先,我们提出了一个基本的扩展工作窃取,提供了良好的可扩展性,但不能提供任何保证任务之间的线程排序。接下来,我们提出了一个集中式的优先级数据结构的基础上$k$ -FIFO队列,它提供了强大的(但仍然放宽了对顺序规范)的保证。参数$k$允许动态配置可伸缩性和所需的排序保证之间的权衡。第三,也是最后,我们将这两个数据结构组合成一个混合的,$k$优先级的数据结构,它提供了类似的工作窃取为基础的方法为较大的$k$的可扩展性,同时提供强有力的排序保证较小的$k$。我们主张使用混合数据结构作为通用的,基于优先级的任务调度的最佳折衷。我们分析的行为和权衡我们的数据结构的上下文中的一个简单的并行化Dijkstra的单源最短路径算法。我们的理论分析和模拟表明,集中式和混合$k$ -优先级的数据结构可以提供强有力的保证并行Dijkstra算法执行的有用的工作。我们支持我们的结果与80核英特尔至强系统上的实验证据。

英文摘要:

Many task-parallel applications can benefit from attempting to execute tasks in a specific order, as for instance indicated by priorities associated with the tasks. We present three lock-free data structures for priority scheduling with different trade-offs on scalability and ordering guarantees. First we propose a basic extension to work-stealing that provides good scalability, but cannot provide any guarantees for task-ordering in-between threads. Next, we present a centralized priority data structure based on $k$-fifo queues, which provides strong (but still relaxed with regard to a sequential specification) guarantees. The parameter $k$ allows to dynamically configure the trade-off between scalability and the required ordering guarantee. Third, and finally, we combine both data structures into a hybrid, $k$-priority data structure, which provides scalability similar to the work-stealing based approach for larger $k$, while giving strong ordering guarantees for smaller $k$. We argue for using the hybrid data structure as the best compromise for generic, priority-based task-scheduling. We analyze the behavior and trade-offs of our data structures in the context of a simple parallelization of Dijkstra's single-source shortest path algorithm. Our theoretical analysis and simulations show that both the centralized and the hybrid $k$-priority based data structures can give strong guarantees on the useful work performed by the parallel Dijkstra algorithm. We support our results with experimental evidence on an 80-core Intel Xeon system.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑