无锁搜索数据结构:泊松过程的吞吐量建模
Lock-Free Search Data Structures: Throughput Modelling with Poisson Processes
摘要:
本文考虑无锁并发搜索数据结构的建模和性能分析。我们的分析认为,这种无锁的数据结构,通过一系列的操作,这是一个无记忆和固定的访问模式产生的。我们的主要贡献是分析无锁搜索数据结构的新方法:我们的执行模型与我们在实践中观察到的行为相匹配,并实现了良好的吞吐量预测。搜索数据结构由链接的基本块形成,通常称为节点,可以通过两种事件访问,其特征在于它们的延迟;(i)由于搜索数据结构的修改而产生的CAS事件(ii)在遍历期间产生的读取事件。这种类型的数据结构通常被设计为容纳大量的数据节点,这使得在任何给定时间在给定节点上很少发生事件。吞吐量由每个操作的事件数以及影响这些事件延迟的因素定义。我们根据容量和一致性缓存未命中来确定这些影响因素。在这种情况下,我们将事件建模为泊松过程,我们可以合并和拆分,以基于来自不同线程的事件的交织来估计事件的延迟,进而估计吞吐量。我们已经验证了几个基本的无锁搜索数据结构,如链表,哈希表,跳表和二叉树我们的分析。
英文摘要:
This paper considers the modelling and the analysis of the performance of lock-free concurrent search data structures. Our analysis considers such lock-free data structures that are utilized through a sequence of operations which are generated with a memoryless and stationary access pattern. Our main contribution is a new way of analysing lock-free search data structures: our execution model matches with the behavior that we observe in practice and achieves good throughput predictions. Search data structures are formed of linked basic blocks, usually referred as nodes, that can be accessed by two kinds of events, characterized by their latencies; (i) CAS events originated as a result of modifications of the search data structures (ii) Read events originated during traversals. This type of data structures are usually designed to accommodate a large number of data nodes, which makes the occurrence of an event on a given node rare at any given time. The throughput is defined by the number of events per operation in conjunction with the factors that impact the latencies of these events. We frame these impacting factors under capacity and coherence cache misses. In this context, we model the events as Poisson processes that we can merge and split to estimate the latencies of the events based on the interleaving of events from different threads, and in turn estimate the throughput. We have validated our analysis on several fundamental lock-free search data structures such as linked lists, hash tables, skip lists and binary trees.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。