arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.11683cs.ITmath.IT
收藏

基于锁还是无锁:哪个更新鲜?

Lock-based or Lock-less: Which Is Fresh?

Vishakha Ramani, Jiachen Chen, Roy D. Yates

AI总结:

本文研究了共享内存状态更新系统中 RCU 与 RWL 同步原语对更新新鲜度的影响,通过 SHS 框架分析耦合的更新年龄过程,发现高位置更新率下 RWL 提供更新鲜的应用更新,低位置更新率下 RCU 更具优势。

摘要:

我们研究了将带时间戳的状态更新存储/写入共享内存的状态更新系统。具体而言,我们比较了 Read-Copy-Update (RCU) 和 Readers-Writer lock (RWL) 作为共享内存同步原语对更新新鲜度的影响。为了展示访问共享内存的读取者和写入者之间的冲突,我们考虑了具有一对耦合更新过程的网络场景。移动终端的位置更新被写入网络转发器处的共享内存 Forwarder Information Base (FIB) 中。应用服务器通过转发器向移动终端发送“应用更新”。到达转发器的应用更新被寻址(通过读取 FIB)并转发至移动终端。如果 FIB 读取返回了过时的地址,则寻址错误的应用更新会在传输途中丢失。我们使用提高更新及时性的抢占机制重新设计了这些读取者和写入者过程。我们提出了一个 Stochastic Hybrid System (SHS) 框架来分析位置和应用更新的年龄过程,并展示了这两个年龄过程如何通过同步原语进行耦合。我们的分析表明,在较高的位置更新率下,使用基于锁的原语 (RWL) 可以为移动终端提供更新鲜的应用更新,而在较低的位置更新率下,无锁 (RCU) 机制则有利于应用更新的及时交付。

英文摘要:

We examine status updating systems in which time-stamped status updates are stored/written in shared-memory. Specifically, we compare Read-Copy-Update (RCU) and Readers-Writer lock (RWL) as shared-memory synchronization primitives on the update freshness. To demonstrate the tension between readers and writers accessing shared-memory, we consider a network scenario with a pair of coupled updating processes. Location updates of a mobile terminal are written to a shared-memory Forwarder Information Base (FIB) at a network forwarder. An application server sends ``app updates'' to the mobile terminal via the forwarder. Arriving app updates at forwarder are addressed (by reading the FIB) and forwarded to the mobile terminal. If a FIB read returns an outdated address, the misaddressed app update is lost in transit. We redesign these reader and writer processes using preemption mechanisms that improve the timeliness of updates. We present a Stochastic Hybrid System (SHS) framework to analyze location and app update age processes and show how these two age processes are coupled through synchronization primitives. Our analysis shows that using a lock-based primitive (RWL) can serve fresher app updates to the mobile terminal at higher location update rates while lock-less (RCU) mechanism favors timely delivery of app updates at lower location update rates.

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

↑