arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.14003cs.AR
收藏

面向实时系统的共享末级缓存逐存储体带宽调控

Per-Bank Bandwidth Regulation of Shared Last-Level Cache for Real-Time Systems

Connor Sullivan, Alex Manley, Mohammad Alian, Heechul Yun

AI总结:

本文针对多核实时系统中共享末级缓存存储体争用及恶意 DoS 攻击问题,提出逐存储体带宽调控方法,在 RISC-V SoC 上实现并验证其可有效隔离攻击且提升良性任务性能最高达 3.66 倍。

摘要:

现代商用现成(COTS)多核处理器具有先进的内存层次结构,可增强内存级并行性(MLP),这对高性能至关重要。为了支持高 MLP,共享末级缓存(LLC)被划分为多个存储体,从而允许并行访问。然而,来自各核心的缓存请求分布不均,尤其是当多个核心的请求集中到单个存储体时,会导致影响所有访问该缓存的核心的显著争用。这种缓存存储体争用甚至可以被恶意诱发——即所谓的缓存存储体感知拒绝服务(DoS)攻击——以破坏系统的时序可预测性。本文针对基于多存储体共享 LLC 的多核实时系统,提出了一种逐存储体带宽调控方法。该方法通过按存储体粒度调控带宽,旨在避免对无争用存储体的缓存访问进行不必要的节流,从而在不牺牲节流所带来的隔离优势的前提下提升整体性能(吞吐量)。我们在 RISC-V 片上系统(SoC)平台上使用 FireSim 实现了该方法,并使用合成负载和真实负载进行了广泛评估。评估结果表明,所提出的逐存储体调控方法能够有效保护实时任务免受并发运行的缓存存储体感知 DoS 攻击,并且与先前存储体无关的带宽节流方法相比,被节流的良性尽力而为任务的性能提升最高可达 3.66 倍。

英文摘要:

Modern commercial-off-the-shelf (COTS) multicore processors have advanced memory hierarchies that enhance memory-level parallelism (MLP), which is crucial for high performance. To support high MLP, shared last-level caches (LLCs) are divided into multiple banks, allowing parallel access. However, uneven distribution of cache requests from the cores, especially when requests from multiple cores are concentrated on a single bank, can result in significant contention affecting all cores that access the cache. Such cache bank contention can even be maliciously induced -- known as cache bank-aware denial-of-service (DoS) attacks -- in order to jeopardize the system's timing predictability. In this paper, we propose a per-bank bandwidth regulation approach for multi-banked shared LLC based multicore real-time systems. By regulating bandwidth on a per-bank basis, the approach aims to prevent unnecessary throttling of cache accesses to non-contended banks, thus improving overall performance (throughput) without compromising isolation benefits of throttling. We implement our approach on a RISC-V system-on-chip (SoC) platform using FireSim and evaluate extensively using both synthetic and real-world workloads. Our evaluation results show that the proposed per-bank regulation approach effectively protects real-time tasks from co-running cache bank-aware DoS attacks, and offers up to a 3.66$\times$ performance improvement for the throttled benign best-effort tasks compared to prior bank-oblivious bandwidth throttling approaches.

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

↑