arXiv:2609.04547cs.DCSep 2026

Manuscript Offprint

arXiv:2609.04547

Revisiting MemGuard Overhead: A Reproduction Report

Weifan Chen, Heechul Yun, Renato Mancuso

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

As an increasing number of embedded platforms incorporate multiple processing units, shared resource contention induced unpredictable execution time poses a challenge for real-time system design. Memory bandwidth regulation is a popular mitigation approach, and MemGuard is the canonical example. Recently, MemPol introduced a new bandwidth regulation mechanism, which was compared with MemGuard. Specifically, they reported significant overheads for MemGuard, citing up to a 1.79x slowdown, to contextualize MemPol's comparative benefits.

This report is meant to clarify and add the necessary nuance to the experiments carried out in that prior work. Specifically, we show that the MemGuard overheads presented in these prior evaluations were unintentionally amplified as the result of using a suboptimal configuration with an older version of MemGuard, wherein the benchmark under test was pinned directly to the master core responsible for handling global timer interrupts. By faithfully reproducing these specific experiments using a modern, decentralized implementation of MemGuard, we demonstrate that the actual execution overhead drops significantly under identical conditions.

Consequently, when evaluated with a properly configured recent version, MemGuard exhibits an overhead that is highly comparable to MemPol's overhead. By revisiting these baseline metrics, this report provides an updated and comprehensive perspective required for future evaluations of memory bandwidth regulators.

2012 ACM Subject Classification Computer systems organization → Real-time systems

Keywords and phrases Real-time systems; Shared resource contention

Digital Object Identifier 10.4230/LIPIcs.CVIT.2016.23

1 Introduction

Multi-core and heterogeneous platforms are now ubiquitous in embedded and real-time systems. In this class of systems, however, the problem of inter-core temporal interference due to the extensive sharing of hardware resources in the memory hierarchy remains an open challenge. Indeed, when multiple cores contend over limited memory resources, memory-access latency becomes highly variable, degrading predictability. Restoring desirable temporal properties in multi-core systems, while avoiding substantial hardware over-provisioning, therefore, requires careful resource management. A key resource that requires management is main memory bandwidth. A widely used software approach to mitigate the problem of uncontrolled memory bandwidth contention is memory bandwidth regulation. This encompasses a number of strategies aiming at controlling how much memory traffic a processor can originate within a fixed time window to reduce contention and improve temporal isolation.

The idea of software-based memory bandwidth regulation was first proposed by Bellosa [2, 3] and later popularized by MemGuard [14], which became foundational as the first practical implementation and has since served as a baseline for many subsequent works (e.g., [5, 12,

© Weifan Chen, Heechul Yun, and Renato Mancuso; licensed under Creative Commons License CC-BY 4.0 42nd Conference on Very Important Topics (CVIT 2016).

Editors: John Q. Open and Joan R. Access; Article No.23; pp. 23:1–23:10

Leibniz International Proceedings in Informatics

LIPICS Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

23:2 Revisiting MemGuard Overhead: A Reproduction Report

4, 6, 7, 15, 8]). MemGuard enforces per-core bandwidth budgets by monitoring memory-related events using hardware performance counters and throttling a core once its budget is exhausted; budgets are replenished periodically at a configurable replenishment period. In practice, enforcing this periodic replenishment requires timer-driven kernel activity, which inevitably introduces execution-time overhead. Moreover, the replenishment period creates a fundamental tradeoff: shorter periods improve control granularity but trigger more frequent interrupts and typically higher overhead.

Because overhead directly affects both system efficiency and the fairness of comparisons among regulators, it is critical to measure and interpret MemGuard's overhead accurately. This is especially important when overhead numbers are used as a baseline to motivate or evaluate new regulation designs. In particular, the MemPol papers [15, 16] report that MemGuard's overhead ranges from 1.79×1.79\times down to 1.04×1.04\times as the replenishment period increases from 32 μs32\,\mu\mathrm{s} to 1000 μs1000\,\mu\mathrm{s}, and these results have been used to contextualize MemPol's benefits.

This paper revisits the overhead results reported for MemGuard in MemPol [15, 16] through a close collaboration between the authors involved in both line of works, enabling a faithful reproduction of the original setup and a careful examination of MemGuard's implementation evolution. Specifically, our goal is to reproduce and re-evaluate MemGuard's replenishment-timer overhead under the conditions used in MemPol, and to refine our understanding about how that overhead impacts the MemPol-vs.-MemGuard comparisons. Our key finding is that the MemGuard overhead reported in [15, 16] was significantly inflated (by up to an order of magnitude) because it was obtained using an older MemGuard version that employed a suboptimal configuration: the implementation elected a "master" core to handle global timer interrupts and send inter-processor interrupts (IPIs), and the benchmark under analysis was pinned to that master core—exactly the situation in which interrupt handling cost is the highest. When this configuration pitfall is avoided (e.g., by pinning the benchmark to a non-master core in the older version) or when using newer MemGuard releases, the measured overhead becomes dramatically smaller (e.g., about 1.09×1.09\times at 32 μs32\,\mu\mathrm{s}).

We further explain why this discrepancy occurs by analyzing MemGuard's internal architectural evolution over the years 1^1. In versions prior to commit 0cf14f2, MemGuard centralized replenishment-timer handling on a master core and propagated replenishment-period updates via IPIs, creating an asymmetry in interrupt-handling costs across cores; as a result, overhead is abnormally high when the workload runs on the master core. In commit 0cf14f2 and later, MemGuard switched to a decentralized design where each core maintains its own period using a local timer without global timer/IPI coordination, making timer overhead significantly lower and more uniform across cores.

Finally, using these corrected overhead measurements, we revisit the MemPol experiments that compare MemPol and MemGuard slowdowns (e.g., the evaluations corresponding to Figures 11 and 12 in [15, 16]) and discuss how the revised MemGuard overhead changes the interpretation of those results and the apparent advantage of MemPol over MemGuard at comparable regulation periods. Our findings show that with the corrected overhead metric, MemGuard demonstrates highly competitive performance compared to MemPol across all evaluated regulation periods and benchmarks, even outperforming MemPol—especially when regulating memory-intensive benchmarks. In addition, we find that MemGuard's reclaiming and sharing features, which were not evaluated in the original MemPol papers, can significantly improve regulation performance.

1^1 MemGuard code repository: https://github.com/heechul/memguard

23:3