arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.06860cs.ITcs.OSmath.IT
收藏

读-复制-更新中的年龄-内存权衡

Age-Memory Trade-off in Read-Copy-Update

Vishakha Ramani, Jiachen Chen, Roy D. Yates

AI总结:

本文研究RCU同步机制中内存使用与更新年龄的权衡,证明在有限读取时间和请求速率下,系统内平均更新数量有界,避免无限内存积累。

摘要:

在共享内存系统中,读者-写者同步的挑战与读者可能访问过时更新的可能性紧密相关。读-复制-更新(RCU)是一种同步原语,允许对新鲜数据进行并发且非阻塞的读访问。这是通过创建更新的数据副本实现的,每个先前版本都会保留,直到所有相关的读锁被释放。鉴于频繁更新保持信息新鲜的原则,问题在于我们是否会积累无限数量的更新副本,导致内存使用过大。本文分析了实时状态更新系统中内存使用与更新年龄之间的权衡,特别关注RCU。分析表明,在有限的读取时间和读取请求速率下,系统内更新的平均数量保持有界。

英文摘要:

In the realm of shared memory systems, the challenge of reader-writer synchronization is closely coupled with the potential for readers to access outdated updates. Read-Copy-Update (RCU) is a synchronization primitive that allows for concurrent and non-blocking read access to fresh data. This is achieved through the creation of updated data copies, with each prior version retained until all associated read-locks are released. Given the principle that frequent updating keeps information fresh, the concern is whether we accumulate an infinite number of update copies, leading to excessively large memory usage. This paper analyzes trade-offs between memory usage and update age within real-time status updating systems, focusing specifically on RCU. The analysis demonstrates that with finite read time and read request rate, the average number of updates within the system remains bounded.

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

↑