---
title: Interference in Shared Memory Pools
url: https://www.emergentmind.com/topics/interference-in-shared-memory-pools
type: topic
---

# Interference in Shared Memory Pools

Interference in shared memory pools encompasses all performance degradation, predictability loss, and security vulnerabilities stemming from multiple agents or threads concurrently contending for common physical memory resources. Across COTS multicore architectures, heterogeneous SoCs, disaggregated memory fabrics, and virtualized and embedded systems, the phenomenon manifests at multiple system levels: from the granularity of bank or interconnect conflicts, through controller scheduling and queuing, to inter-application competition for bandwidth or latency. Contemporary research unambiguously shows that properly characterizing, bounding, and mitigating this interference is critical for system throughput, fairness, QoS enforcement, predictable real-time computation, and information security.

## 1. Fundamental Sources and Mechanisms of Interference

Interference in shared memory pools originates in the physical and logical structure of memory subsystems:

- **Bank Contention and Scheduling**: DRAM is divided into banks, each supporting a limited number of outstanding requests. Simultaneous access to the same bank by different agents causes queuing and explicit conflicts, especially under open-page policies and FR-FCFS schedulers, which prioritize row-buffer hits but can lead to head-of-line blocking [1407.7448].

- **Queuing Structures**: Limited-size read/write buffers and request queues at the DRAM controller level determine the number, order, and latency of in-flight requests. Outstanding requests originating from out-of-order execution, speculative loads, and hardware prefetchers—all enabled by a large MSHR pool on COTS platforms—amplify both aggregate throughput and interference [1407.7448, 1805.05926].

- **Interconnect Arbitration**: In multicore/heterogeneous SoCs, all traffic traverses a shared interconnect (e.g., AXI, NoC), where bus or crossbar arbitration not only adds latency but distributes contention non-uniformly based on arbitration policy and address mapping [2309.12864, 2303.17742, 2012.02973].

- **Cache and Bank Partitioning**: Absence of efficient way or bank partitioning in LLC and DRAM raises the risk of capacity conflicts and cache eviction storms, propagating interference across a much broader address and temporal footprint [1407.7448].

- **Bank Address Mapping and Locality**: Address-mapping schemes—such as word/bank interleaving or local block scrambling—control the probability of conflict and the fraction of requests hitting local vs. remote resources under uniform or skewed access patterns [2303.17742, 2012.02973].

## 2. Analytical and Empirical Models of Interference

Quantitative models are essential for interference prediction, bounding, and mitigation design:

- **Worst-Case Queue-Based Bounds**: Under partitioned LLC/banks (so no cross-core space contention), with $N_{rq}$ prior reads and $N_{wq}$ pending writes at the controller, the worst-case extra service latency per request is 
$$
D_p = N_{rq}\cdot t_{BURST} + N_{wq}\cdot t_{RC} + t_{WTR}
$$
where $t_{BURST}$ is the data-bus burst length, $t_{RC}$ the DRAM row-cycle time, and $t_{WTR}$ the bus turn-around penalty. Task-level total interference is then $H_i\cdot D_p$, where $H_i$ is the number of DRAM requests by task $\tau_i$ [1407.7448].

- **Slowdown Estimation via Request Service Rate (MISE)**: Relative performance loss is cast as
$$
\text{Slowdown}_i = \frac{\text{ARSR}_i}{\text{SRSR}_i}
$$
where ARSR is the request-service-rate for $i$ in isolation and SRSR in the shared context. ARSR is sampled by short, periodic high-priority assignment to $i$ at the memory controller. The model generalizes to non-memory-bound applications with a weighted blend parameterized by the memory-stall fraction $\alpha_i$ [1805.05926, 1508.03087].

- **Regression Models for Virtualized Pools**: In cloud virtual environments,
$$
I = 0.7498\,T_1 + 0.1598\,T_2 + 0.1456\,T_3
$$
with $T_1 = T_{SLLC}\cdot G_{SLLC}$, $T_2 = T_{net}\cdot G_{net}$, $T_3 = T_{DRAM}\cdot T_{SLLC}\cdot G_{SLLC}$; $T_s$ is normalized total access to resource $s$, $G_s$ is a global similarity factor, and all variables are empirically derived [1610.04309].

- **Auto-tuned Black-Box Estimation**: Black-box autotuning approaches empirically maximize slowdowns of representative "victim" tasks by generating parameterized interfering "enemy" processes, yielding conservative lower bounds on interference multipliers for WCET estimation [1809.05197].

- **Bandwidth-Sharing and Queuing Models in Disaggregated and Hybrid Systems**: Models capturing host-pool bandwidth division, queuing, and burstiness in CXL or rack-scale shared DDR modules predict per-app slowdowns and latency increases, with slowdowns often closely following the ratio $B_{local}/B_{host}(N)$ [2211.02682, 2308.14780].

## 3. Experimental Characterization and Key Results

Experimental validation across platforms provides concrete evidence for the theoretical and empirical predictions:

- **COTS Multicore (Intel Xeon W3530, 8 MiB LLC, 16 DRAM banks)**: Under heavy concurrent write-mostly interference, pointer-chasing benchmarks measured a $\approx3\times$ slowdown in DRAM-limited execution time, while state-of-the-art single-outstanding-request analysis underestimated delays by up to 47%; parallelism-aware analysis delivered safe bounds within 29% of measurements [1407.7448].

- **Heterogeneous SoCs (NVIDIA TX2, Xilinx ZU9EG)**: Worst-case slowdowns were highly pattern- and hardware-dependent. On ZU9EG, write-intensive patterns caused up to $12\times$ slowdown (vs. only $1.3\times$ for read-miss), and realistic benchmarks (e.g., 2D stencils) exceeded even these under certain conditions, with single tasks slowed by $>60\times$ when CPUs and FPGA fabric were fully loaded [2309.12864].

- **Hybrid DRAM+DCPM System**: RDMA write bursts can degrade local multithreaded latency benchmarking throughput (MLC) by $>80\%$ and double local-access latency as queue-depth at the memory controller grows; even modest RDMA concurrency (2-3 queue pairs) has a pronounced effect, necessitating closed-loop rate control to avoid service-level disruption [2008.12501].

- **Disaggregated and CXL-Pooled Systems**: Multiple co-located hosts on a pooled CXL memory fabric experience slowdowns scaling from $<15\%$ (compute-bound) to $2\times$ (memory-bound) or worse with bursty synchronous traffic. Profiled graph kernels (BFS, PageRank) exhibited chokepoints when remote-access patterns overshot the fabric's bandwidth share [2211.02682, 2308.14780].

- **Manycore Shared-L1 Clusters (MemPool)**: Hierarchical interconnects and high over-banking (4 banks/PE) yield average access latency under 6 cycles and less than 2% execution stalls even at 256 PE scale, provided the per-PE offered load remains below 0.35 req/PE/cycle [2303.17742].

## 4. Application Domains: Real-time, HPC, Security, and Virtualization

Interference in shared memory pools constrains or motivates techniques across several application classes:

- **Real-time and Mixed-criticality Systems**: Predictable upper bounds on interference are necessary for WCET analysis; mitigation is realized via static resource partitioning (bank/coloring), hardware support for MSHR partitioning, priority-aware DRAM scheduling, and closed-loop feedback controllers (e.g., MemGuard, MISE-QoS) [1407.7448, 2501.16245, 1508.03087].

- **High-Performance Computing and Disaggregated Architectures**: Contemporary composable memory systems (CXL, rack-scale) experience significant cross-host interference. Roofline and arithmetic-intensity-based schedulers, per-job pooling-aware allocation, and dynamic QoS provisioning address both utilization and fairness [2211.02682, 2308.14780]. Application data placement/scheduling and hardware prefetcher tuning further modulate sensitivity.

- **Security and Covert-Channel Risks**: Direct DRAM contention enables covert channels (MC³) in SM-SoCs lacking shared LLCs, with empirical data rates up to $6.4$ kbps (Orin AGX) and bit errors under $1\%$, demonstrating that CPU/GPU cross-domain data exfiltration can occur with no privileged access [2412.05228].

- **Cloud and Virtualization**: Accurate regression models incorporating both total resource pressure and co-tenant similarity enable VM placement, admission control, and on-line migration to minimize interference-induced slowdowns and SLA violations [1610.04309].

## 5. Methodologies for Bounding and Mitigating Interference

Mitigation tactics center on spatial and temporal isolation, supported by both hardware and software measures:

- **Cache and Bank Partitioning**: Assigning exclusive LLC ways and DRAM banks per agent removes cross-eviction and row conflict channels, allowing interference to be modeled solely as queuing at the controller/bus level [1407.7448]. SP-IMPact offers systematic enumeration and measurement for such configurations [2501.16245].

- **Bandwidth and Access Throttling**: Controllers implement MemGuard/MISE-QoS policies and feedback control loops to cap or proportion request rates per agent or VM, bounding queuing depth and worst-case delays [1805.05926, 2501.16245, 2008.12501].

- **Admission Control and Pool-Aware Scheduling**: Static/dynamic schedulers profile each workload's bandwidth and burstiness, strictly partitioning pool shares and/or job placement to ensure no overcommitment of CXL/fabric or DRAM controller capacity [2211.02682, 2308.14780].

- **Address Mapping and Locality Management**: Hybrid word/group interleaving and address scrambling in large shared scratchpad clusters (MemPool) dramatically reduce long-path and conflict probability, keeping most latency near the minimal pipeline depth [2303.17742, 2012.02973].

- **Empirical Tuning and Black-box Analysis**: For modern, heterogeneous platforms where analytical modeling is insufficient, auto-tuning frameworks synthesize interference-maximizing “enemy” workloads and measure slowdowns, providing safe lower bounds for WCET and tool-driven configuration recommendation [1809.05197].

## 6. Security, Measurement, and Future Directions

- **Covert Channels and Timing Side-channels**: Security implications are acute in multi-domain SoCs and pooled-memory clouds. MC³ demonstrates that even without shared LLC, DRAM contention can leak information at measurable rates, necessitating mitigations such as bank partitioning, randomized MC scheduling, and OS-level noise injection [2412.05228].

- **Measurement Infrastructure**: Frameworks such as SP-IMPact (embedded systems) and multi-level profiling stacks (rack-scale pooling) facilitate practical tuning, configuration search, and validation of predicted vs empirical worst-case interference for varied workloads [2501.16245, 2308.14780].

- **Modeling and Analysis Challenges**: Current static analysis often fails to capture interacting effects of all shared resources (IOMMU, interrupt controllers, PCIe buses). Research advances towards analytical models accounting for more microarchitectural nuance (MSHR bottlenecks, write buffer, interconnect effects) remain crucial [2501.16245, 2309.12864].

- **Implications for Architecture and System Design**: Future high-core-count systems, disaggregated fabrics, and security-critical SoCs will benefit from integrating partitioning primitives, flexible software/hardware bandwidth caps, comonadic job scheduling, and on-line interference measurement with formal verification frameworks to balance utilization, predictability, fairness, and security.

## 7. Summary Table: Key Interference Parameters and Mitigation Actions

| Parameter                 | Hardware/Software Domain                       | Mitigation/Bound Mechanism                           |
|---------------------------|------------------------------------------------|------------------------------------------------------|
| MSHR/buffer depth         | COTS mCores, DRAM controller                   | MSHR partitioning, buffer sizing                     |
| Bank/way assignment       | COTS, SoC, SPH systems                         | Bank/LLC partitioning, cache coloring                |
| Outstanding requests      | CPUs, manycores, GPUs                          | Limit/partition MSHRs, throttle issue width          |
| Request scheduling        | DRAM, CXL, pooling fabric                      | MISE, MemGuard, controller-level lottery scheduling  |
| Access mapping scheme     | Manycore SPM, DRAM interleaving                | Locality-optimized mapping, hybrid/block scrambling  |
| Co-located workload mix   | Cloud, disaggregated HPC, virtualization       | Scheduling/admission control via access/similarity   |

By combining system-aware partitioning, scheduling, empirical tuning, and precise per-resource measurement or estimation, designers can bound and mitigate the often severe performance and security costs of interference in shared memory pools across contemporary and emerging computing systems [1407.7448][1805.05926][2501.16245][2308.14780][2412.05228][2309.12864][1610.04309][2012.02973][2303.17742][2008.12501].

Source: https://www.emergentmind.com/topics/interference-in-shared-memory-pools