论文标题

基于迁移的同步

Migration-Based Synchronization

论文作者

Reif, Stefan, Raffeck, Phillip, Gerhorst, Luis, Schröder-Preikschat, Wolfgang, Hönig, Timo

论文摘要

多核系统和多核系统中的一个基本挑战是正确执行对共享数据的并发访问。现有同步机制的常见缺点是随着共享数据在访问内核之间传输时,数据局部性的丢失。在实时系统中,这一点尤其重要,因为有关数据访问时间的知识对于建立执行时间的界限至关重要。 MB的核心概念是用控制流迁移的数据迁移替换,以实现具有保证数据局部性的同步内存访问。这导致关键部分的较短和更可预测的执行时间。由于MB可以用作古典锁的替代品,因此可以在无代码更改的情况下使用它。我们进一步研究获得的数据位置如何改善最差的计时分析的结果,并在执行时间和响应时间范围内更加范围。我们建议MBS与现有同步方法的相似性以及如何使我们能够重复使用现有分析技术。在本文中,我们评估了我们的原型实现,表明MB可以用与传统锁定机制相似的开销来利用数据局部性。

A fundamental challenge in multi- and many-core systems is the correct execution of concurrent access to shared data. A common drawback from existing synchronization mechanisms is the loss of data locality as the shared data is transferred between the accessing cores. In real-time systems, this is especially important as knowledge about data access times is crucial to establish bounds on execution times and guarantee the meeting of deadlines.We propose in this paper a refinement of our previously sketched approach of Migration-Based Synchronization (MBS) as well as its first practical implementation. The core concept of MBS is the replacement of data migration with control-flow migration to achieve synchronized memory accesses with guaranteed data locality. This leads to both shorter and more predictable execution times for critical sections. As MBS can be used as a substitute for classical locks, it can be employed in legacy applications without code alterations.We further examine how the gained data locality improves the results of worst-case timing analyses and results in tighter bounds on execution and response time. We reason about the similarity of MBS to existing synchronization approaches and how it enables us to reuse existing analysis techniques.Finally, we evaluate our prototype implementation, showing that MBS can exploit data locality with similar overheads as traditional locking mechanisms.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源