软实时的应用中存储器性能关键区的保护
Protecting Memory-Performance Critical Sections in Soft Real-Time Applications
摘要:
软实时的【形】应用程序,如多媒体应用程序,往往表现出突发性的内存访问模式-定期要求高内存带宽的时间很短。这段时间对于及时处理数据往往至关重要。因此,我们称之为内存性能临界区。不幸的是,在多核架构中,不同核上的非实时应用也可能同时要求高内存带宽,这可能会大大增加在内存性能关键部分上花费的时间。在本文中,我们提出了带宽控制,用户级API和内存带宽控制机制,可以保护软实时的【形】应用程序的内存性能的关键部分。BWCache提供了简单的类似于锁的API来声明内存性能关键区。如果应用程序进入存储器性能临界区,则内存带宽控制系统动态地限制其他核的存储器访问速率以保护应用程序的存储器性能,直到临界区结束。通过对实际软实时的【形】应用的案例研究,我们发现:(1)这种内存性能临界区确实存在,并且通常很容易识别;(2)对内存临界区应用BWM,可以显著提高软实时的【形】应用的性能,而对非实时的【形】应用的吞吐量影响很小或没有影响。
英文摘要:
Soft real-time applications such as multimedia applications often show bursty memory access patterns---regularly requiring a high memory bandwidth for a short duration of time. Such a period is often critical for timely data processing. Hence, we call it a memory-performance critical section. Unfortunately, in multicore architecture, non-real-time applications on different cores may also demand high memory bandwidth at the same time, which can substantially increase the time spent on the memory performance critical sections. In this paper, we present BWLOCK, user-level APIs and a memory bandwidth control mechanism that can protect such memory performance critical sections of soft real-time applications. BWLOCK provides simple lock like APIs to declare memory-performance critical sections. If an application enters a memory-performance critical section, the memory bandwidth control system then dynamically limit other cores' memory access rates to protect memory performance of the application until the critical section finishes. From case studies with real-world soft real-time applications, we found (1) such memory-performance critical sections do exist and are often easy to identify; and (2) applying BWLOCK for memory critical sections significantly improve performance of the soft real-time applications at a small or no cost in throughput of non real-time applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。