实时的Twitter搜索中动态内存分配策略
Dynamic Memory Allocation Policies for Postings in Real-Time Twitter Search
摘要:
我们探索一个实时的【形】Twitter搜索应用程序,其中tweets以每秒数千条的速度到达。实时的【形】搜索要求它们立即被索引和搜索,这导致了一些实施挑战。在本文中,我们专注于一个方面:动态张贴分配策略的索引结构,完全在主存中。其核心问题可以被描述为“金发姑娘问题”。由于内存在今天仍然是一种稀缺资源,过于激进的分配策略会导致低效的利用,而过于保守的策略则会缓慢并导致碎片化的帖子列表。我们提出了一个动态的postings分配策略,分配内存在越来越大的“切片”从少量的大,固定的内存池。通过分析模型和实验,我们探索了平衡时间(查询评估速度)和空间(内存利用率)的不同设置。
英文摘要:
We explore a real-time Twitter search application where tweets are arriving at a rate of several thousands per second. Real-time search demands that they be indexed and searchable immediately, which leads to a number of implementation challenges. In this paper, we focus on one aspect: dynamic postings allocation policies for index structures that are completely held in main memory. The core issue can be characterized as a "Goldilocks Problem". Because memory remains today a scare resource, an allocation policy that is too aggressive leads to inefficient utilization, while a policy that is too conservative is slow and leads to fragmented postings lists. We present a dynamic postings allocation policy that allocates memory in increasingly-larger "slices" from a small number of large, fixed pools of memory. Through analytical models and experiments, we explore different settings that balance time (query evaluation speed) and space (memory utilization).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。