Intermediate Value Linearizability:一种定量正确性准则
Intermediate Value Linearizability: A Quantitative Correctness Criterion
摘要:
大数据处理系统通常采用批量更新和数据草图来估计大数据的某些属性。例如,CountMin草图近似表示元素在数据流中出现的频率,而批处理计数器则成批计数事件。本文重点讨论的并发实现的正确性,这样的对象。具体来说,我们考虑定量对象,其返回值是从一个完全有序的域,重点是$(e,d)$有界的对象,估计一个数量的错误最多$e$与概率至少$1 - d$。并发对象事实上的正确性标准是线性化。在可线性化下,当读取与更新重叠时,它必须返回更新之前或之后的对象值。例如,考虑一个计数三个新事件的单个批处理递增操作,将批处理计数器的值从$7$提升到$10$。在计数器的线性实现中,重叠读取必须返回其中之一。然而,我们观察到,在典型的用例中,任何中间值也是可以接受的。为了捕获这种自由度,我们提出了中间值线性化(IVL),这是一种新的正确性标准,它放宽了线性化以允许返回中间值,例如上面示例中的$8$。粗略地说,IVL允许读取返回任何在两个返回值之间的值,这两个返回值在线性化下是合法的。IVL的一个关键特性是,$(e,d)$有界对象的并发IVL实现仍然是$(e,d)$有界的。为了说明这个结果的力量,我们给出了一个简单而有效的并发实现的$(e, d)$有界CountMin草图,这是IVL(虽然不是线性化)。最后,我们表明,IVL允许本质上更便宜的实现比线性化的。
英文摘要:
Big data processing systems often employ batched updates and data sketches to estimate certain properties of large data. For example, a CountMin sketch approximates the frequencies at which elements occur in a data stream, and a batched counter counts events in batches. This paper focuses on the correctness of concurrent implementations of such objects. Specifically, we consider quantitative objects, whose return values are from a totally ordered domain, with an emphasis on $(e,d)$-bounded objects that estimate a quantity with an error of at most $e$ with probability at least $1 - d$. The de facto correctness criterion for concurrent objects is linearizability. Under linearizability, when a read overlaps an update, it must return the object's value either before the update or after it. Consider, for example, a single batched increment operation that counts three new events, bumping a batched counter's value from $7$ to $10$. In a linearizable implementation of the counter, an overlapping read must return one of these. We observe, however, that in typical use cases, any intermediate value would also be acceptable. To capture this degree of freedom, we propose Intermediate Value Linearizability (IVL), a new correctness criterion that relaxes linearizability to allow returning intermediate values, for instance $8$ in the example above. Roughly speaking, IVL allows reads to return any value that is bounded between two return values that are legal under linearizability. A key feature of IVL is that concurrent IVL implementations of $(e,d)$-bounded objects remain $(e,d)$-bounded. To illustrate the power of this result, we give a straightforward and efficient concurrent implementation of an $(e, d)$-bounded CountMin sketch, which is IVL (albeit not linearizable). Finally, we show that IVL allows for inherently cheaper implementations than linearizable ones.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。