写优化树中的根到叶调度
Root-to-Leaf Scheduling in Write-Optimized Trees
AI总结:
本文研究写优化数据结构中从根到叶的高效消息刷新框架,提出一种O(1)-近似最优平均完成时间的算法,并给出树优先约束下加权完成时间并行任务调度的4-近似算法。
摘要:
写优化字典是一类缓存高效的数据结构,它们缓冲更新并以批处理方式应用这些更新,以优化每次更新的摊还缓存未命中次数。例如,B^epsilon树将更新作为消息插入到根节点。B^epsilon树仅当消息的总大小接近一个缓存行时才移动(“刷新”)它们,从而优化每个写入缓存行所完成的工作量。因此,最近插入的消息驻留在根节点或其附近,只有在足够数量的新消息到达后,才会被刷新到树的下方。尽管这种惰性方法对许多操作很有效,但某些类型的更新在更新消息到达叶节点之前并未完成。例如,延迟查询和安全删除必须沿着其根到叶路径刷新所有节点才能生效。当我们想要尽快处理大量(例如)安全删除时会发生什么?经典技术让我们面临一个令人不悦的选择。一方面,我们可以使用写优化方法将删除消息分组,并惰性地将它们向下移动到树中。但这样一来,许多单独的删除可能会在很长一段时间内处于未完成状态,因为它们的消息等待与足够大量的相关消息分组。另一方面,我们可以忽略缓存效率,对每个删除执行一次根到叶的刷新。这会立即开始处理单独的删除,但会损害系统吞吐量。本文研究了一个新框架,用于在写优化数据结构中高效地将消息集合从根刷新到叶。我们的目标是最小化消息到达叶的平均时间。我们给出了一种算法,在该模型中O(1)-近似最优平均完成时间。在此过程中,我们针对具有树优先约束的加权完成时间的并行任务调度,给出了一种新的4-近似算法。
英文摘要:
Write-optimized dictionaries are a class of cache-efficient data structures that buffer updates and apply them in batches to optimize the amortized cache misses per update. For example, a B^epsilon tree inserts updates as messages at the root. B^epsilon trees only move ("flush") messages when they have total size close to a cache line, optimizing the amount of work done per cache line written. Thus, recently-inserted messages reside at or near the root and are only flushed down the tree after a sufficient number of new messages arrive. Although this lazy approach works well for many operations, some types of updates do not complete until the update message reaches a leaf. For example, deferred queries and secure deletes must flush through all nodes along their root-to-leaf path before taking effect. What happens when we want to service a large number of (say) secure deletes as quickly as possible? Classic techniques leave us with an unsavory choice. On the one hand, we can group the delete messages using a write-optimized approach and move them down the tree lazily. But then many individual deletes may be left incomplete for an extended period of time, as their messages wait to be grouped with a sufficiently large number of related messages. On the other hand, we can ignore cache efficiency and perform a root-to-leaf flush for each delete. This begins work on individual deletes immediately, but harms system throughput. This paper investigates a new framework for efficiently flushing collections of messages from the root to their leaves in a write-optimized data structure. Our goal is to minimize the average time that messages reach the leaves. We give an algorithm that O(1)-approximates the optimal average completion time in this model. Along the way, we give a new 4-approximation algorithm for scheduling parallel tasks for weighted completion time with tree precedence constraints.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。