arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1706.04178cs.DScs.DC
收藏

优先级调度中的选择权

The Power of Choice in Priority Scheduling

Dan Alistarh, Justin Kopinsky, Jerry Li, Giorgi Nadiradze

摘要:

考虑以下随机过程:我们给出$n$队列,递增标签的元素随机均匀插入其中。为了删除一个元素,我们随机挑选两个队列,并删除其中标签较低(优先级较高)的元素。移除的成本是被移除的标签在任何队列中仍然存在的标签中的排名,也就是说,每一步与最优选择的距离。这种策略的变体在最先进的并发优先级队列实现中很流行。然而,不知道这样的实现是否提供任何等级保证,即使在顺序模型中也是如此。我们回答这个问题,表明这种策略提供了令人惊讶的强有力的保证:虽然单一的选择过程中,我们总是插入和删除一个随机选择的队列,有降低成本,去无穷大,因为我们增加的步骤数,在两个选择过程中,预期的排名被删除的元素是PDMATHAMN,而预期的最坏情况下的成本是$O( n \log n )$。这些边界是紧的,并且与我们运行过程的步骤数量无关。这个论点是基于一个新的技术连接之间的“重载”球到箱子的过程和优先级调度。我们的分析结果启发了一个新的并发优先级队列的实现,提高了最先进的实际性能。

英文摘要:

Consider the following random process: we are given $n$ queues, into which elements of increasing labels are inserted uniformly at random. To remove an element, we pick two queues at random, and remove the element of lower label (higher priority) among the two. The cost of a removal is the rank of the label removed, among labels still present in any of the queues, that is, the distance from the optimal choice at each step. Variants of this strategy are prevalent in state-of-the-art concurrent priority queue implementations. Nonetheless, it is not known whether such implementations provide any rank guarantees, even in a sequential model. We answer this question, showing that this strategy provides surprisingly strong guarantees: Although the single-choice process, where we always insert and remove from a single randomly chosen queue, has degrading cost, going to infinity as we increase the number of steps, in the two choice process, the expected rank of a removed element is $O( n )$ while the expected worst-case cost is $O( n \log n )$. These bounds are tight, and hold irrespective of the number of steps for which we run the process. The argument is based on a new technical connection between "heavily loaded" balls-into-bins processes and priority scheduling. Our analytic results inspire a new concurrent priority queue implementation, which improves upon the state of the art in terms of practical performance.

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

↑