arXiv:2611.05704cs.PFNov 2026

Manuscript Offprint

arXiv:2611.05704

Memory-Access Profiling for Early Multicore Interference Awareness in Embedded Systems

Jean-Baptiste Lefoul, Ahmad Shahnejat Bushehri, Alaric Chan Lock, Felipe Gohring de Magalhaes, Gabriela Nicolescu

1st Jean-Baptiste Lefoul®

Computer Engineering and Software Engineering

Polytechnique Montreal

Montreal, Canada

jean-baptiste.lefoul@polymtl.ca

2nd Ahmad Shahnejat Bushehri®

Computer Engineering and Software Engineering

Polytechnique Montreal

Montreal, Canada

3rd Alaric Chan Lock®

Computer Engineering and Software Engineering

Polytechnique Montreal

Montreal, Canada

4th Felipe Gohring de Magalhaes®

Computer Engineering and Software Engineering

Polytechnique Montreal

Montreal, Canada

5th Gabriela Nicolescu®

Computer Engineering and Software Engineering

Polytechnique Montreal

Montreal, Canada

Abstract—Applications executing on different multicore processors may interfere through shared resources. Such interference can introduce execution-time variability and complicate system integration, especially when applications that behave predictably in isolation are co-scheduled on the same multicore platform.

This paper presents a lightweight profiling-based framework for early multicore interference awareness. The proposed approach captures source-level memory-operation traces from C applications with limited source-code modification and combines them with architectural parameters of the target platform. The framework maps memory accesses to cache sets and memory blocks, generates cache-occupancy profiles and heatmaps, and evaluates pairwise interference risks through a progressive three-stage analysis. First, a coarse-grained screening step classifies applications according to their non-stack memory-access behavior. Second, a static multicore cache-profiling step identifies cache sets whose combined footprint exceeds or approaches the hardware associativity. Third, a temporal footprint analysis tracks intervening unique blocks between consecutive accesses to the same memory block and computes Contention Potential Growth to identify execution windows vulnerable to cache eviction.

The framework is evaluated using four benchmark pairings executed on a dual-core platform, with hardware performance counters measuring L2 cache misses used as validation references. The results show that the proposed analysis is consistent with the observed high- and low-risk cases and provides conservative warnings for near-capacity configurations. In particular, different applications pairs might produce up to 213.09% increase in L2 cache misses. These results demonstrate that memory-access profiling can provide practical and interpretable early indicators of cache-related multicore interference before exhaustive hardware testing.

Index Terms—Multicore interference, memory-access profiling, cache analysis, embedded systems, performance counters, interference awareness.

I. INTRODUCTION

The increasing computational demands of modern embedded systems have accelerated the adoption of multicore processors. By allowing several applications or tasks to execute in parallel, multicore architectures provide higher throughput, better resource utilization, and improved energy efficiency compared with traditional single-core platforms. These advantages make multicore processors attractive for domains such as avionics, automotive systems, industrial control, telecommunications, and high-performance embedded computing.

However, multicore execution introduces timing and performance challenges that are largely absent from single-core systems. Even when applications are logically independent and assigned to different cores, they may still interact through shared hardware resources such as last-level caches, interconnects, memory controllers, and main memory. As a result, the execution behavior of one application may be affected by the activity of another application running on a different core. These shared-resource effects are commonly referred to as multicore interference.

Multicore interference can occur in both direct and indirect forms. Direct interference occurs when several cores request access to the same shared resource during overlapping time intervals, such as a shared bus, memory controller, or memory bank. Indirect interference occurs when the activity of one core modifies the hardware state observed by another core. Shared-cache eviction is a typical example: one application may evict cache lines that another application would otherwise reuse, thereby increasing cache misses and execution time. Both forms of interference can reduce timing predictability and complicate the integration of independently developed applications.

This problem is particularly important for performance-critical and safety-conscious embedded systems. Applications that exhibit stable behavior when executed in isolation may experience significant slowdowns when co-executed with other workloads. Consequently, system designers need methods that can identify potentially harmful application pairings and shared-resource hotspots before final deployment on the target platform.

Several families of techniques have been proposed to analyze or mitigate multicore interference. Static WCET and timing-analysis methods can provide conservative timing bounds, but they often require detailed architectural models and may become pessimistic on complex multicore processors [1]. Analytical cache-interference models can reason about shared-cache effects, but they usually depend on assumptions about replacement policies, timing models, or access-arrival patterns [2]. Dynamic measurement-based approaches, including hardware performance-counter analysis and stress testing, capture real hardware effects but typically require executing workload combinations on the target platform and often reveal interference only after it has occurred [3]. Mitigation techniques such as cache partitioning, memory-bandwidth regulation, and interference-aware memory allocation can reduce interference, but they require enforcement mechanisms, hardware support, or optimization procedures [4], [5]. Locality-based approaches such as reuse-distance and stack-distance profiling provide useful information about memory behavior, but they may require specialized profiling mechanisms or detailed trace processing [6], [7].

These existing approaches leave a practical gap for lightweight and interpretable interference-awareness methods during early development. At this stage, designers may not yet require a formal WCET bound or a cycle-accurate simulation model. Nevertheless, they still need to determine whether a given pair of applications is likely to stress shared cache or memory resources. They also need interpretable information about where interference may originate, including which cache sets are overloaded, which access patterns are problematic, and during which execution windows cache-eviction risk becomes significant.

This paper addresses this need by proposing a profiling-based framework for multicore interference awareness. The proposed framework analyzes the memory-access behavior of C applications and combines the resulting traces with architectural parameters of the target multicore platform. Rather than attempting to reproduce every microarchitectural event, the framework provides a hardware-aware approximation of how applications use cache sets, memory blocks, and access patterns. The objective is not to replace formal timing analysis or cycle-accurate simulation, but to provide an early and interpretable indication of potential interference risks.

The proposed methodology follows a progressive three-stage analysis. First, each application is classified according to the proportion of non-stack memory accesses. This coarse-grained screening step quickly identifies application pairs that are unlikely to generate significant memory-path interference. Second, when at least one application exhibits significant non-stack memory activity, the framework merges the traces and computes joint cache-set occupancy and heatmap profiles. This spatial analysis identifies cache sets whose combined unique-block footprint exceeds or approaches the physical cache associativity. Third, for suspicious regions, the framework performs temporal footprint analysis by tracking the intervening unique footprint between consecutive accesses to the same memory block. This analysis computes Contention Potential Growth (ΔCP\Delta CP), which quantifies how much the co-running application expands eviction-vulnerable execution windows.

The framework is validated on an NXP QorIQ P2020RDB-PCA dual-core platform using bare-metal applications. Four application pairings are evaluated: Dijkstra versus Floyd-Warshall, FFT versus Jacobi-2D, AES-128 ECB versus Conv2D, and Bsort versus ADPCM Encoder. Hardware performance counters measuring total L2 data cache misses are collected during isolated and co-running executions and are used as validation references. The results show that the framework identifies the Dijkstra/Floyd-Warshall pair as high risk, which is confirmed by a 213.09% increase in L2 cache misses. It also identifies the Bsort/ADPCM pair as low risk, with negligible L2 miss variation. For intermediate cases, the framework provides conservative or refined medium-risk assessments, demonstrating its usefulness as an early warning mechanism.

The main contributions of this paper are summarized as follows:

  • A lightweight memory-access profiling methodology for C applications with limited source-code modification.
  • A hardware-aware mapping framework that projects memory traces onto cache sets and memory blocks.
  • A progressive interference-risk analysis combining non-stack access screening, joint cache occupancy profiling, and temporal footprint analysis.
  • A Contention Potential Growth (ΔCP\Delta CP) metric that quantifies the increase in eviction-vulnerable windows caused by co-running applications.
  • A validation study on an NXP QorIQ P2020RDB-PCA multicore platform comparing predicted risk classes with hardware-measured L2 cache-miss variations.

The remainder of this paper is organized as follows. Section II introduces the basic concepts of shared hardware resources, cache behavior, memory banks, stack and non-stack memory accesses, and direct and indirect interference channels. Section III reviews related work on WCET analysis, multicore interference, hardware mitigation, empirical stress testing, and locality-based estimation. Section IV presents the proposed methodology, including cache-footprint analysis, intervening unique footprint analysis, and interference-risk assessment. Section V reports the validation results and hardware measurements. Section VI discusses the interpretation of the results, limitations, and future work. Finally, Section VII concludes the paper.

References (66)