scieee AI-readable full text Open interactive document viewer

Isolation QoS Setups to Control Memory Contention on MPSoCs

García Esteban, Sergio

Abstract

In critical systems such as avionics and automotive domains, ensuring timely task execution is crucial to prevent catastrophic situations. The increasing trend towards autonomous operation demands higher performance and efficiency, leading to the adoption of Multiprocessor System-on-Chips (MPSoCs). However, the challenge arises in meeting timing requirements due to contention in accessing shared resources and the complexity of these resources. This work introduces Quasi-Isolation QoS Setups (QIQoS), a novel approach for efficiently managing Quality of Service (QoS) mechanisms in MPSoCs. QIQoS aims to make the behavior of MPSoCs more predictable, precise, and adaptable to the specific timing constraints of critical applications. By selecting different QoS solutions, QIQoS mitigates timing interference, minimizes execution time variability, and ensures a high degree of isolation for applications, regardless of contention from co-running applications. The evaluation of QIQoS on a Xilinx Zynq UltraScale+ MPSoC demonstrates its effectiveness in achieving high isolation and minimal variability between critical tasks. This success is attributed to the management of DDR memory controller QoS mechanisms and the mitigation of memory contention among computing elements. Overall, QIQoS proves to be a valuable solution for enhancing predictability in MPSoC-based systems in real deployment scenarios.

Full text

id179069   ISOLATION QOS SETUPS TO CONTROL MEMORY CONTENTION ON MPSOCS SERGIO GARCÍA ESTEBAN Thesis supervisor: FRANCISCOJAVIERCAZORLAALMEIDA(BarcelonaSupercomputingCenter) Thesis co-supervisor: FRANCISCOJAVIERCAZORLAALMEIDA Tutor:MIQUELMORETÓPLANAS(DepartmentofComputerArchitecture) Degree:MasterDegreeinInnovationandResearchinInformatics(HighPerformanceComputing) Master's thesis Facultat d'Informàtica de Barcelona (FIB) Universitat Politècnica de Catalunya (UPC) - BarcelonaTech Acknowledgements I would like to thank my Master’s Thesis advisors Alejandro Serrano Cases and Francisco J. Cazorla for their guidance, mentoring, and giving me the opportunity to undertake this Master Thesis in the Computer Architecture and Operating Systems group (CAOS) at Barcelona Supercomputing Center (BSC-CNS). Also my co-authors Enrico Mezzetti and Jaume Abella. I also want to thank the rest of the members of the CAOS group as they have always been available to provide feedback on my work and give me advice to improve it. Last but not least, I would like to thank in general all the teachers I had during the Master’s degree as well as all the members of the Administration and Services Staff. Moreover, I would like to acknowledge the BSC institution for financially supporting my Master’s studies, and also the following institutions that have partially supported this work: PID2019-107255GB-C21 funded by MCIN/AEI/ 10.13039/501100011033 and the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (grant agreement No. 772773). Finally, I would like to express my deepest gratitude for the unconditional and unselfish support I have received from my family and friends throughout the Degree, for having been able to understand my limited availability to them especially for the distance that separates us and for having made of me the person that I am today. Abstract Real-time critical systems are crucial in domains like avionics and automotive, in which timely task execution is vital to prevent any unexpected delay in task execution time from leading to a catastrophic situation. Thus, meeting rigorous minimum performance requirements is paramount in these systems to ensure safety, while keeping the system energetically and computationally efficient. However, new trends in this sector demand an increase in autonomous operation, which leads these systems to increase the number of sensors, data collected from their environment, and the amount of data to be processed. This, in turn, carries demand for high-performance and efficient computing in these domains as a way to enable to perform new complex and sophisticated tasks efficiently. In this context, Multiprocessor System-on-Chips (MPSoCs) have raised as an alternative to classical simpler processors because they can provide parallel processing and improved computational capabilities while aiming to efficiently manage workloads and enhance overall system performance. However, meeting timing requirements of software running on top of MPSoCs is becoming a challenge due to the increase of contention when accessing shared resources and the increased complexity of shared resources. In fact, the execution time jitter caused by shared resources is becoming a bottleneck that can reduce determinism and affect timely execution of tasks. In order to regain determinism, Quality of Service (QoS) mechanisms incorporated into MPSoCs can be leveraged with the objective of shaping and prioritizing the traffic flow coming from several computing elements. In this work, we propose Quasi-Isolation QoS Setups (QIQoS), a novel approach to efficiently manage QoS mechanisms present in many MPSoCs to make their behavior more predictable, precise, and adaptable to the specific timing constraints of critical applications. QIQoS aims to select different QoS solutions that can be used to enforce setups under which timing interference is mitigated and the execution time of an application is less exposed to contention from other co-running applications. Hence, QIQoS are a set of QoS setups that guarantee high-degree of isolation to the applications regardless of the contention its co-runners put on MPSoC’s hardware We assess the benefits of QIQoS in a Xilinx Zynq UltraScale+, a state-of-the-art MPSoC known for its versatility, cost-effectiveness, and superior performance. The board has several computing clusters, accelerators, and a programmable logic (FPGA) that can saturate easily the DDR memory controller (DDRMC). To assess the effectiveness of our approach, we have employed various critical applications and demanding workloads that were spread among the different cores of the board to emulate a real deployment scenario. The evaluation results reveal the success of QIQoS in achieving high isolation and minimal variability between critical tasks. This helps achieving predictability of MPSoC-based systems by effectively managing DDRMC QoS mechanisms and mitigating memory contention between computing elements. Contents 1 Introduction 3 1.1 ContextandMotivation ....................................... 3 1.2 Contribution ............................................. 4 1.3 Structureofthethesis ........................................ 5 2 Background and Related Work 6 2.1 MPSoCInterference ......................................... 7 2.1.1 Hardware-BasedSolutions.................................. 7 2.1.2 Software-BasedSolutions .................................. 7 2.1.3 QoS Support-Based Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.4 AnalyticalModels ...................................... 8 2.2 MPSoCsandIMA .......................................... 8 3 Target MPSoC 10 3.1 Introduction to Zynq UltraScale+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1.1 Computing Elements (CEs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1.2 Memory............................................ 11 3.1.3 I/OControllers........................................ 12 3.1.4 CommunicationElements .................................. 12 3.2 HardwaresupportforQoS...................................... 13 3.3 MemoryController.......................................... 13 3.3.1 TrafficClasses ........................................ 14 1 Contents 3.3.2 PortArbitration ....................................... 14 3.3.3 Content Addressable Memories (CAMs) . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.4 OtherFeatures ........................................ 17 4 Quasi Isolation QoS 18 4.1 ContextofQIQoS .......................................... 18 4.2 PrinciplesofQIQoS ......................................... 19 4.3 Application of QIQoS to the MPSoC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.3.1 Commonelements ...................................... 20 4.3.2 QIQoS1 ............................................ 21 4.3.3 QIQoS2 ............................................ 22 4.3.4 Generalization ........................................ 23 5 Experimental Setup 24 5.1 Application Deployment Scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.2 Performance-Demanding Applications as Critical Tasks . . . . . . . . . . . . . . . . . . . . . 26 5.3 Aggressors as Non-Critical Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6 Results 29 6.1 EvaluationMetrics.......................................... 29 6.2 Uncontrolledcontention ....................................... 30 6.3 DetailedAnalysis........................................... 30 6.3.1 QIQoS1 ............................................ 31 6.3.2 QIQoS2 ............................................ 32 6.3.3 Metrics M1, M2, and M3: Assessing QIQoS1 and QIQoS2 . . . . . . . . . . . . . . . . 34 6.4 WiderResultSet........................................... 34 6.4.1 Analysis Across All Kernels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 6.4.2 Analysis Across All ADS Scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7 Conclusions and Future Work 37 2 Chapter 1 Introduction This chapter serves as an introduction, providing context and motivation for the whole work. To that end, this chapter motivates the relevance of the problem and the work done. 1.1 Context and Motivation In the realm of safety-critical domains like avionics and space, Multi-Processor Systems on Chip (MPSoCs) are progressively used to cater for augmented performance requirements. Besides the sheer computational power they provide, MPSoCs increasingly incorporate substantial Quality of Service (QoS) features [42,56]. QoS support was originally designed for performance optimization and load balancing, but is increasingly considered as a means to better control contention effects among co-running tasks and enforce a more deterministic timing behavior [46,48]. QoS support is provided as software-controlled ‘knobs’ that allow to intentionally bias the execution towards a given task by providing it with privileged access to hardware shared resources, more bandwidth in an interconnect, reserved space in stateful hardware resources, and the like. One of the critical challenges in critical systems is the effective management of timing interference among tasks. This challenge is particularly relevant when multiple applications from different providers are integrated into a single MPSoC. In that line, domain-specific safety standards and support documents specifically identify the need for controlling and reducing impact of contention arising on shared resources accesses as a fundamental requirement for certification [1,17,20,33]. Massive research efforts have been devoted to cope with the impact of multicore timing interference on system performance and predictability [44,46]. Whereas custom hardware designs have been proposed to balance predictability and performance [30,36,40,52], in this work we focus on a COTS MPSoC and analyze the predictability of its memory controller. When an MPSoC is used to support exclusively a monolithic application using several or all underlying cores (e.g. a single ARINC 653 partition), deployed for example by a single avionics original equipment manufacturer or TIER1 provider, the contention each process can suffer can be bounded already in early software development stages: contenders information is available as they are part of the same monolithic application. In such scenario, different QoS setups may be explored to find a setup that satisfies the performance requirements of all processes [46]. However, this is seldom the case and instead an IMA-MPSoC setup is deployed: 3 Chapter 1. Introduction multiple applications from different software providers are typically integrated on the same target MPSoC, with a view to reducing integration and validation costs. In this line, integrated architectures like IMA [12], IMA for Spacecrafts (IMA-SP) [54], and AUTomotive Open System ARchitecture (AUTOSAR) [13], build on time and space partitioning concepts, as defined by the ARINC 653 [4] open standard, to simplify the allocation of computing resources to different applications. This effectively allows integrating several applications onto less computing hardware. While IMA time partitioning ensures each application receives a given amount of CPU time, the actual progress made by an application in the time window also depends on the share of hardware resources the application receives. MPSoC timing interference arises on contending accesses to shared hardware resources [18,38,53], which causes an application’s execution time to depend on the use of resources made by applications in other software partitions. Waiting until late development and integration stages, when all providers make their applications available, to address the timing dimension and assess timing interference has opposing effects. On the positive side, only the system’s intended final configuration [1,17,20] is considered, which reduces the risk of overestimating the contention impact. On the negative side, there is a non-negligible risk of detecting software timing violations too late in the validation and verification stages, when reacting to time misconfigurations can result in unaffordable changes to the applications, system design and schedule, and the entailed regression testing. In IMA-MPSoC scenarios, QoS support can be leveraged to anticipate late timing issues related to multicore contention by preserving partition-level time budgets against the interference of (unknown or partially known) contender applications. This is, in fact, aligned with CAST-32A [17] advisory circular and AMC20-193 [20] for multicore certification in the avionics domain, establishing that separate determination of the WCET of an application, without any other applications executing, is only valid if the applicant can demonstrate that they build on an MPSoC with robust partitioning or that time interference from other applications is avoided or mitigated for that application. 1.2 Contribution We contend that existing hardware QoS solutions can be used to enforce setups under which timing interference is mitigated and the execution time of an application is less exposed to contention from other co-running applications. In this line, our work contributes to the field of managing contention interference in IMA-MPSoC setups by proposing a novel approach known as Quasi Isolation QoS setups (QIQoS). The primary contributions of this work can be summarized as follows: 1. Proposal of the QIQoS Concept: We first conceptualize and define QIQoS setups, which are specialized QoS configurations designed to mitigate timing interference and provide a high degree of isolation to applications. Reduction of Sensitivity to Contention: We show how QIQoS setups are specifically designed to reduce the sensitivity of an application’s execution time to varying contender loads on shared hardware resources. This contributes to the robustness of early-time budgets obtained through synthetic testing, making them more precise and stable. Alignment with Certification Standards: We also show how our work aligns with industrystandard guidelines such as CAST-32A and AMC-20, simplifying the achievement of multicore certifi- 4 Chapter 1. Introduction cation objectives. 2. Practical Implementation: We instantiate the QIQoS approach on the Xilinx Zynq UltraScale+ MPSoC to address the contention arising from accesses to DDR main memory, demonstrating the practicality and effectiveness of the proposed configurations 3. Performance Evaluation: We provide empirical evidence of the effectiveness of QIQoS configurations in isolating critical tasks from contention introduced by programmable logic (PL), even under substantial load conditions. This includes the characterization of isolation degree and performance variation under different contender loads. Note that one paper has been published based on the work done in this Thesis: •Quasi Isolation QoS Setups to Control MPSoC Contention in Integrated Software Architectures [27]Sergio Garcia-Esteban, Alejandro Serrano-Cases, Jaume Abella, Enrico Mezzetti, and Francisco J. Cazorla. 35th Euromicro Conference on Real-Time Systems (ECRTS 2023), Vienna, Austria, July 11-14, 2023. 1.3 Structure of the thesis The rest of this document is structured as follows: •Chapter 2 sets the stage by providing essential background information on MPSoCs, contextualizing the challenges posed by timing interference. A comprehensive review of related works lays the groundwork for the subsequent discussions. •Chapter 3 introduces the Xilinx Zynq UltraScale+ MPSoC as a representative high-performance MP- SoC used in real-time systems; this chapter sheds light on the significance of the DDRMC and its QoS mechanisms. Understanding the intricacies of the target platform is crucial for the subsequent application of QIQoS. •Chapter 4 is the heart of the research proposal, where the conceptualization and application of QIQoS setups are thoroughly explored. The principles behind QIQoS are detailed, and their specific application on the Xilinx Zynq UltraScale+ MPSoC is discussed. •Chapter 5 provides insights into the methodological strategies employed to evaluate the effectiveness of QIQoS setups. •Chapter 6 presents the empirical findings; this chapter analyzes the performance of QIQoS configurations under diverse loads. The results provide practical insights into the implications of the proposed setups, bridging theoretical concepts with real-world applicability. •Chapter 7 culminate the Thesis synthesizing key findings. It also discusses implications for safetycritical systems, and outlines potential directions for future research. 5 Chapter 2 Background and Related Work This chapter discusses how MPSoCs bring the challenge of contention in the access to shared resources in safety-critical applications. Managing contention is crucial for predictable system timing behavior, especially with stringent safety standards. The chapter explores the contention’s implications on reliability, predictability, and safety, surveying research and strategies for addressing this challenge. The goal is to provide a concise understanding of contention management in MPSoCs. The arrival of MPSoCs has revolutionized computing capabilities, enabling parallel processing and enhanced performance across various domains. However, this technological advancement has also raised an important challenge - contention for shared resources among multiple processing units. This contention has emerged as a critical concern, especially within the context of domain-specific safety-critical applications. Therefore, effectively managing the contention becomes critical to ensure the predictable behavior of the critical system, and thus meet the safety and reliability standards and certification of the domain. Domain-specific safety standards such as AMC20-193 [20], CAST32A [17], and ISO-26262 [33]; highlight the necessity for measuring and mitigating the impact of contention as a fundamental requirement. It is worth mentioning that several studies highlight the difficulty of achieving certification objectives within the current commercial off-the-shelf (COTS) multicore design trends [1]. Consequently, it is necessary to focus on resource access and control the contention to ensure that these systems can achieve the required safety criteria. In this section we summarize the need to control and reduce contention for ensuring predictable and reliable system behavior. In particular, Section 2.1 covers diverse strategies, including hardware-based solutions, software-based approaches, Quality of Service (QoS) support, and analytical models. And Section 2.2 covers challenges that arise from the deployment of MPSoC in IMA setups caused by the diversity of application providers and their requirements. 6 Chapter 3. Target MPSoC 3.2 Hardware support for QoS As mentioned above, the Zynq Ultrascale+ architecture provides a set of hardware QoS mechanisms, each designed to meticulously control the rate at which requests travel from source to destination. The significance of QoS within the interconnected ecosystem becomes particularly pronounced when managing request flows originating from distinct CEs and destined for various endpoints, including the DDRMC and I/O controllers [48,62]. Nevertheless, when multiple CEs direct their requests toward a common destination, the speed at which the destination processes these requests assumes paramount importance in determining the QoS accorded to each individual flow. In this context, several QoS mechanisms stand out as particularly significant: •Static QoS: In point-to-point communications, every AXI request is adorned with a QoS value, denoted as AXQoS, which spans a range from 0 to 15. This numerical value serves as a prioritization marker, empowering the recipient of the communication to rank and prioritize incoming requests. Higher AXQoS values signify elevated priority levels. •Dynamic QoS: In scenarios where different interconnect elements are susceptible to receiving requests from diverse sources, dynamic QoS mechanisms come into play. These mechanisms dynamically modulate the static QoS value to attain specific performance objectives, such as controlling the maximum number of pending requests. •QoS Virtual Networks (QVN): QoS virtual networks harness tokens to effectively govern transaction flows. They ensure that a transaction is invariably accepted at its intended destination before the source dispatches it. This mechanism is instrumental in maintaining a seamless and predictable data flow. •DDRMC QoS: The Quality of Service within the memory controller operates under a sophisticated and multi-tiered prioritization system. We will embark on a comprehensive exploration of this system in the subsequent section. In the context of this study, our primary focus revolves around the issue of memory contention within the DDR memory. This contention emerges as a central bottleneck in real-time systems [35,53]. In fact, the DDR memory serves as the ultimate arbiter when other mechanisms fail in providing adequate isolation or meeting stringent timing guarantees. Memory contention as a bottleneck in real-time systems persists as real-time systems increasingly leverage AI software to process copious volumes of data originating from diverse sensors, including video cameras and radars [37]. 3.3 Memory Controller The DDR memory subsystem is a critical component of the Zynq Ultrascale+ architecture, encompassing the DDR memory controller (DDRMC) and the DDR Physical Interface (DFI), as depicted in Figure 3.4. The DDRMC plays a crucial role in managing memory requests and converting AXI requests from the distributed interconnect into DDR commands. In contrast, the DFI is responsible for translating these DDR commands into signals compatible with external DDR3/4 compliant devices. 13 Chapter 3. Target MPSoC The memory controller receives requests from 6 different AXI ports, referred to as Piin Figure 3.4, each categorized to a specific Traffic Class. Inside the controller, a mechanism called Port Arbiter is in charge of choosing which port to let requests through. The requests that pass the Port Arbiter are stored in the Content Addressable Memories, ingress aided by Port Throttling feature, and egress aided by the CAM Starving feature. Finally, the requests stored in the CAMs are sent to the DFI. Other mechanisms have been discarded due to complex interactions with the mechanisms used. All these mechanisms are explained in detail below, in order of processing, from left to right in Figure 3.4. 3.3.1 Traffic Classes In request management, an essential strategy for efficient prioritization and control is categorizing requests into distinct traffic classes. This classification method, employed to govern priorities and behaviors, is pivotal in optimizing system performance. Requests are typically divided into two primary categories: Reads and Writes, each further segmented into specific traffic classes tailored to their unique characteristics and demands. Reads are classified into Low,High, and V ideo Traffic Classes (LPR, HPR, and VPR). Whereas, Writes categorization is Low or Normal (LPW = NPW) and V ideo (VPW) classes. This categorization framework forms the foundation for effective request management and ensures the efficient allocation of system resources. Notice that V ideo commands have associated the property of Expired Commands, this means that initially, the requests are treated as low priority. However, if they remain unprocessed (i.e., no transaction timeout occurs), they are subsequently promoted to a higher priority level than HPR/NPW commands. We refer later to these timeout periods for VPR and VPW transactions as RT OU T and W T OU T , respectively. 3.3.2 Port Arbitration The allocation and management of CAM resources are orchestrated by the Port Arbiter (PA), on the left of Figure 3.4. The PA assumes a role in selecting the appropriate command to dispatch to the CAMs, and this decision-making process is governed by a multi-tiered arbitration strategy: 1. Reads Priority: Reads are given priority when there are expired Video Priority Reads (VPR) transactions or when there are pending read requests but no expired Video Priority Writes (VPW) transactions. 2. Traffic Class Priority: High Priority Reads (HPR) traffic enjoys a higher priority than Low Priority Reads (LPR) and Video Priority Reads (VPR) on the read channel. However, on the write channel, Normal Priority Writes (NPW), and Video Priority Writes (VPW) share the same priority, with Video Priority Writes (VPW) taking precedence in case of timeouts. 3. Static Quality of Service (SQoS): Commands are assigned priorities based on their Static QoS attributes, as indicated by the AXQOS signals associated with each command. A higher AXQOS value means higher priority on this level of arbitration. 4. Conflict Resolution: Conflicts in command access are judiciously resolved using round-robin arbitration, ensuring equitable resource allocation. 14 Chapter 3. Target MPSoC Figure 3.4: DDRMC QoS components diagram. 3.3.3 Content Addressable Memories (CAMs) Once translated from incoming AXI requests and selectioned by the Port Arbiter, DDR commands are temporarily stored in Content Addressable Memories (CAMs), a crucial component of the memory management system, on the center of Figure 3.4. These CAMs serve as a mechanism for efficiently handling memory access requests from various sources. Specifically, the CAMs encompass the following key elements: •64-Entry Write CAM (wCAM): This write CAM is shared across all traffic classes and ports. It plays a fundamental role in processing and managing write commands from different sources within the system. •64-Entry Read CAM (rCAM): The read CAM is partitioned based on the type of traffic it serves. It comprises two distinct partitions: –The first partition, known as the hprrCAM, is specifically designated to handle High Priority Reads (HPR) traffic classes. This partition ensures expedited processing of high-priority read requests, addressing critical data retrieval needs. –The second partition, referred to as the lvprrCAM, is reserved for Low Priority Reads (LPR) and Video Priority Reads (VPR) traffic classes. This partition efficiently manages read requests from these lower-priority traffic classes, ensuring fair access to system resources. A notable feature of the rCAM partitions is their configurability. The sizes of the hprrCAM and lvprrCAM can be adjusted using dedicated configuration registers, denoted as hprSIZE and lvprSIZE, respectively. Each partition’s size can be set within a range of 1 to 64 entries, considering that their combined size must not exceed the total rCAM size of 64. Port Throttling Port throttling introduces a significant modification to the default behavior by selectively controlling port access under specific conditions, enhancing the flexibility of the memory management system. This feature can be activated and controlled at the port level via dedicated control registers, providing fine-grained control over memory access. The key scenarios in which port throttling comes into play are as follows: 15 Chapter 3. Target MPSoC •High Priority Read Throttling: In cases where the number of available entries in the hprrCAM partition falls below a predefined threshold, denoted as hprAV AIL in Figure 3.4, ports responsible for handling read traffic categorized under the High Priority Reads (HPR) class can be subject to throttling. This applies exclusively to ports with the HPR read throttling feature enabled. •Low Priority Read Throttling: Similarly, when the count of available entries in the lvprrCAM partition decreases below a specified threshold, referred to as lvprAV AIL, ports managing read traffic assigned to the Low Priority Reads (LPR) class may also undergo throttling. This throttling mechanism exclusively affects ports with enabled LPR read throttling. •Write Throttling: Throttling can also be initiated when the available entries in the write CAM (wCAM) fall below a predetermined threshold, designated as wAV AIL. This particular throttling mode pertains exclusively to ports with enabled write throttling, affecting their ability to perform write operations. It’s crucial to emphasize that ports associated with traffic mapped to the Video Priority Reads (VPR) and Video Priority Writes (VPW) classes remain exempt from throttling. This exemption ensures that realtime and video-related data streams continue to receive the necessary bandwidth and are not subject to interruptions due to throttling. Furthermore, it’s essential to recognize that beyond the scope of port throttling control, all ports face a collective halt when any of the CAMs or other internal resources within the DDRMC become exhausted. This mechanism serves as a safeguard to prevent resource congestion and maintain overall system stability. In summary, Port Throttling offers a versatile means of managing memory access in response to resource availability, allowing for efficient control and prioritization of read and write traffic while safeguarding critical data streams from interruptions. This capability enhances the adaptability and reliability of the memory management system in diverse operating conditions. CAM Starving CAM Starving introduces a unique CAM behavior that further enhances the flexibility of the memory management system. This feature provides granular control and can be activated and adjusted at the CAM level through dedicated control registers. This feature enables the draining of the CAMs periodically with a timeout, managed by the Scheduler at the left of Figure 3.4. CAM Starving can be strategically employed in the three primary CAMs, each serving distinct memory access priorities: •High Priority Read CAM: CAM Starving can be effectively activated in the hprrCAM by configuring the ShprrCAM timeout. Whenever this timeout elapses, transactions residing in the hprrCAM are directed to the Memory Controller’s DFI. •Low Priority Read CAM: Similarly, CAM Starving can be initiated within the lvprrCAM by adjusting the SlvprrCAM timeout. Upon the expiration of this timeout, transactions residing in the lvprrCAM are seamlessly redirected to the DFI for processing. •Write CAM: CAM Starving is also a valuable tool for the wCAM. Configuring the SwCAM timeout will automatically forward any transactions pending within the wCAM to the DFI once this timeout threshold is reached. 16 Chapter 3. Target MPSoC The CAM Starving feature allows to fine-tune the memory access behavior to align with specific application requirements. By strategically utilizing CAM Starving in the respective CAMs, prioritizing critical transactions, and maintaining efficient system operation is possible. 3.3.4 Other Features The DDRMC incorporates several other features, including port aging, urgent transactions, and regions. These features have not been employed in this study due to their complex interactions with the mechanisms we have utilized. Port aging, for instance, elevates the priority of a port when an outstanding request remains unfulfilled after a predefined time, while urgent transactions signal the presence of a read/write urgent transaction. Regions are defined at the port level to assist in mapping AXI static priorities and traffic classes. It is worth noting that these unexplored features present intriguing possibilities for future research endeavors. Their complexity could offer valuable insights into enhancing the efficiency and performance of the DDRMC, providing potential avenues for exploration in subsequent studies. 17 Chapter 4 Quasi Isolation QoS This chapter discussed some requirements of critical IMA MPSoC-based systems, introducing the QIQoS framework as a strategic approach to address these needs, detailing and justifying the characteristics of the proposed solutions: QIQoS1 and QIQoS2. The ultimate aim is to establish a foundation for readers to grasp the significance of QIQoS in advancing the capabilities of MPSoC-based systems in critical applications. 4.1 Context of QIQoS Addressing safety standards requirements in the context of the complexity of current and future MPSoCs is arduous. One of the key challenges lies in providing evidence that the contention among tasks is anticipated and controlled within the system. However, acquiring the necessary evidence proves to be a formidable challenge. Building a comprehensive and accurate model of how resources are shared among concurrently running tasks cannot be achieved solely by obtaining full access to hardware behavior information. While such an approach seems reasonable in theory, its practical implementation is difficult. Limited Information from IP Providers: One of the primary impediments is the limited information made available by Intellectual Property (IP) providers, who often guard their confidential technical documentation closely. This limitation is evident in various aspects: •Limited Information on Network-on-Chip (NoC) Behavior: The functional behavior of components like the Arm NIC-400 [5] is encapsulated within a scant few pages of documentation, making it challenging to gain a deep understanding of its intricate functionality within the system. •Minimal Details from NXP: NXP’s CoreNet Coherence Fabric, as documented in the T2080 TRM [25], lacks comprehensive insights into its internal behavior, including aspects like buffering and prioritization. •Trend of Reduced Descriptions: Recent architectural developments, such as those seen in the NXP LX2160 [42] and the Xilinx Versal [58], exemplify a broader trend where increasingly complex components are accompanied by notably limited descriptions of their functional and timing behaviors. 18 Chapter 4. Quasi Isolation QoS Complexity and Dynamic Features: Even in cases where an abundance of information may theoretically be available, the dynamic features inherent in modern MPSoCs pose substantial modeling challenges. Constructing an accurate model becomes exceedingly difficult without adopting overly conservative assumptions. While reverse engineering and characterizations have been successfully applied to specific features such as SMT processors, cache management, memory systems, and GPUs, the intricate nature of contemporary MPSoCs, coupled with the scarcity of comprehensive information and the involvement of numerous IP components, renders the development of a precise contention-aware functional and timing model a daunting task in practice. As a result, the real-time research community, Original Equipment Manufacturers (OEMs), and Tier 1/2 companies operating in critical domains face the formidable challenge of ensuring system safety. This challenge must be met while relying on the limited available information supported by empirical evidence. To address any lingering uncertainties or risks, these entities implement specific mechanisms outlined in safety standards, such as safety nets. Safety nets serve as safeguards capable of assuming control of the system in instances of hardware reliability issues or violations of execution time constraints [21]. 4.2 Principles of QIQoS In the context of our work, we do not aim to develop a model describing how various Quality of Service (QoS) mechanisms function, predict the behavior of other applications, or speculate about how the current application would perform under different QoS configurations. Instead, within our Integrated Modular Avionics (IMA)-MPSoC setup, our primary goal is to ensure a high level of performance isolation, see Figure 4.1. Figure 4.1: Impact of DDRMC Contention on Benchmark Performance. Quasi Isolation Quality of Service (QIQoS): QIQoS represents a specific configuration of QoS mechanisms within the underlying platform. Mitigate Contention: QIQoS is designed to offer performance guarantees to a specific set of tasks running across different CEs. Its purpose is to mitigate the impact of MPSoC contention generated by Non-Critical Tasks (NCT) on Critical Tasks (CT). This, in turn, leads to more consistent early-time budgets across different QoS setups. 19 Chapter 4. Quasi Isolation QoS Three Key Assessment Dimensions: 1. Performance Guarantees: In this dimension, we evaluate the slowdown experienced by the CT. Lower values are preferable, indicating better performance. 2. Timing Predictability: Here, we assess the variability in the CT’s performance when subjected to different NCT scenarios. Lower variability is preferable, especially in scenarios with diverse aggressor benchmarks applying variable loads to shared resources. 3. Overall Performance and Fairness: This dimension considers the average performance of the NCT, favoring higher performance. It can also serve as a tiebreaker when comparing similar QIQoS setups. When implemented, a QIQoS setup simplifies incremental integration by reducing the contention’s impact, which co-running NCTs might have on CTs. QIQoS allows us to derive robust timing budgets that can withstand contention scenarios without relying on specific run-time support for commercial MPSoCs. These two aspects are essential for integrating and reusing software modules from various vendors in mixed-criticality systems. The achieved quasi-isolation guarantees that the timing behavior of applications, partially consolidated during early development stages, will be validated during integration. This reduces the risk of unexpected timing issues and mitigates potentially disruptive rollbacks. By adhering to the principles of QIQoS, we aim to enhance the reliability and predictability of critical tasks in MPSoC environments, ultimately contributing to the safety and efficiency of complex systems. 4.3 Application of QIQoS to the MPSoC In this section, we instantiate the QIQoS approach within the DDR Memory Controller (DDRMC). We have developed two specific and well-justified QoS isolation setups, each exploiting distinct QoS mechanisms at the DDRMC level. QIQoS1 utilizes the timeouts defined at the port level, while QIQoS2 leverages CAM draining features (Starving) within the DDRMC. A comprehensive overview of the QIQoS parameters is presented in Figure 4.5. 4.3.1 Common elements This section explores the main common features shared by both QIQoS setups. These features have been derived from empirical observations and are crucial for configuring certain QoS aspects to enforce performance guarantees. Use of Private Ports. In both QIQoS setups, each CT is assigned a private port to memory that is not shared with any other CT or NCT. This choice is made to accommodate specific QoS features that are set at the port level. Sharing the same port among multiple tasks can result in uncontrolled CT performance drops. Referring to Figure 3.3 as a reference, ports P0 to P2 are reserved for the CTs running on the R5 and/or A53 cores, while ports P3 to P5 are designated for the PL. 20 Chapter 4. Quasi Isolation QoS Reduced Command Reordering. In both QIQoS setups, we limit the maximum number of out-of- order commands that can be sent from the CAMs to the DFI. This limitation is set to the minimum value allowed, which is 4. Without this constraint, the DDRMC is allowed to prioritize newer memory commands over older ones, especially when they hit an open page. While this enhances performance, it can disrupt the predictability of CTs. Therefore, limiting command reordering is essential for maintaining CT predictability. Avoidance of Incoherent QoS Setups. To prevent incoherent QoS setups, we configure the port type in accordance with the traffic class. Specifically, Best Effort port types are mapped to Low Priority Reads (LPR) and Normal Priority Writes (NPW) traffic classes, Low Latency ports are mapped to High Priority Reads (HPR) and NPW traffic classes, and Video ports are mapped to Video Priority Reads (VPR) and Video Priority Writes (VPW) traffic classes, as displayed in Figure 4.2. This mapping ensures consistency and predictability in QoS configurations. Figure 4.2: XPI configurations. Maximization of Resource Usage. In line with our QIQoS approach, we allocate the same number of entries to both HPR and LPR/VPR traffic classes in the read CAM (rCAM) to maximize resource usage. Specifically, 32 of the 64 entries are assigned to each partition (hprSIZE =lvprSIZE = 32). Other features. Additionally, all QIQoS setups disregard certain additional QoS features of the DDRMC, namely port aging, urgent transactions, and regions defined at the port level. While these features offer additional control over request ingress and egress in the DDRMC, their interaction with other QoS mechanisms can be challenging to manage. The exponential increase in possible QoS configurations and the potential for non-linear effects make them impractical for achieving the required isolation in QIQoS setups. 4.3.2 QIQoS1 QIQoS1 focuses on controlling the ingress of requests to the CAMs to ensure isolation for CT. It primarily utilizes the ingress QoS Video Timeout feature while incorporating Traffic Classes and Throttling. The main objective is to prioritize timely responses to CT requests. 21 Chapter 4. Quasi Isolation QoS Figure 4.3: CAM Segregation in QIQoS1. Figure 4.4: CAM Segregation in QIQoS2. Traffic Classes. Under QIQoS1, read requests from CT are assigned to the Video Priority Read (VPR) traffic class, ensuring their high priority. Write operations from CT are categorized into the Video Priority Write (VPW) traffic class. NCT reads are directed to the High Priority Read (HPR) traffic class, utilizing a separate partition of the read CAM; see figure 4.3. NCT writes are categorized under the normal (NPW) traffic class. Timeout. QIQoS1 establishes a fixed timeout value (RT OUT = 1) for read requests from CT, acknowledging that read operations are typically blocking and any delay directly impacts performance. However, for writes, QIQoS1 varies the timeout values (W T OUT ), represented by Xin Figure 4.5 to strike a balance between CT isolation and NCT performance. Throttling. Throttling is enabled for NCT ports in QIQoS1, with a shared threshold value across all CAMs (hprAV AIL =lprAV AIL =wAV AIL). This threshold, represented as a variable value denoted by Yin Figure 4.5, helps achieving different equilibrium points between CT and NCT. The threshold controls the number of available entries in the CAM partition, with higher thresholds leading to more frequent throttling of NCT ports and affecting NCT traffic. 4.3.3 QIQoS2 QIQoS2 takes a different approach by focusing on the egress control of the CAMs, primarily leveraging CAM Starving while also using Traffic Classes and Throttling. Traffic Classes. In QIQoS2, read and write requests from CT are assigned to the High Priority Read (HPR) and Normal Priority Write (NPW) traffic classes, respectively. For NCT, their read and write requests are mapped to the Low Priority Read (LPR) and Normal Priority Write (NPW) traffic classes, respectively. This configuration segregates traffic in different partitions, see Figure 4.4 and excludes Video Traffic and Timeouts. CAM Starving. To ensure prompt service for CT reads, QIQoS2 configures the Starving timeout of the hprrCAM partition (ShprrCAM = 1) to serve as soon as possible. In the lvprrCAM partition, a maximum starving period of 40 cycles (SlvprrCAM = 40) is set to control the timing of NCT reads. Additionally, QIQoS2 introduces variable Starving values SwCAM, represented as Zin Figure 4.5 for the write CAM, aiming to achieve equilibrium between reads and writes. 22 Chapter 6 Results This chapter summarizes the evaluation of the QIQoS framework, outlining relevant metrics and presenting a detailed analysis of QIQoS1 and QIQoS2 in the ADS4 scenario and VMA kernel. The assessment is then extended to various scenarios and kernels, offering a comprehensive view of the solutions’ adaptability and performance across diverse real-world contexts. 6.1 Evaluation Metrics QIQoS aims to provide performance guarantees for the CT under varying loads generated by the NCT. We employ three key metrics to evaluate the effectiveness of a QIQoS setup: •M1: Minimize CT Slowdown - Our primary objective is to minimize the slowdown of the CT, as indicated by the relative performance (rperf ). A higher rperf value corresponds to a lower slowdown. For instance, an rperf of 50% implies a 2x slowdown (1/2). This metric (M1) aligns with our goal of achieving a high degree of performance isolation for CT. •M2: Reduce CT Variability - We also aim to reduce the variability in the CT’s rperf under different loads imposed by the NCT, which in our case is the PL affecting the DDRMC. Ensuring consistent CT performance (M2) contributes to our primary objective of satisfying the performance requirements for all processes and improving the accuracy of early time budgets through effective isolation. •M3: Maximize NCT Performance - Our secondary goal involves maximizing the rperf of the NCT, ensuring that NCT tasks receive some level of service. This goal is particularly important as long as the minimum thresholds set for M1 and M2 are met. While M1 and M2 prioritize CT performance and isolation, M3 focuses on the NCT’s performance to maintain a balanced system. Regarding M1 and M3, when a SWP encompasses multiple tasks, whether as CT or NCT, as seen in scenarios like ADS3 and ADS5, we report the average rperf values. For example, under ADS3, the CT rperf is the average of the rperf values of the R5 and A53 tasks within each SWP (i.e., SWP1 and SWP2). Similarly, the NCT rperf is calculated as the average of the rperf values of all ATGs. 29 Chapter 6. Results 6.2 Uncontrolled contention When subjecting the various kernels to the default QoS setup, which essentially means no QIQoS configuration, on the Zynq UltraScale+ MPSoC, and gradually increasing the traffic load originating from the PL directed towards the DDRMC with four different load levels denoted as Low (L), Medium (M), High (H), and Very High (V). We observe a substantial impact of DDRMC contention on the performance of these benchmarks, as illustrated in Figure 6.1. Figure 6.1: CT rperf without any QIQoS setup. These results were obtained while executing the benchmarks on a single core of the A53 processor (ADS2). However, it’s crucial to note that an identical trend is observed when running the benchmarks on an R5 core. Even when exposed to the lightest PL load (L), the rperf of the benchmarks experiences a notable reduction, falling within the range of 0.60 to 0.75. As the load intensifies, the DDRMC quickly becomes saturated, resulting in further degradation of the CT’s performance, with rperf values decreasing to as low as 0.10 to 0.25 for the Very High (V) load scenario. These findings underscore the criticality of implementing effective QoS mechanisms, such as QIQoS, to mitigate the adverse effects of DDRMC contention on benchmark performance. The substantial performance degradation observed in the absence of QIQoS emphasizes the necessity of isolating critical tasks and ensuring predictable performance in complex multi-core architectures like the Zynq UltraScale+. 6.3 Detailed Analysis In this section, we delve into a detailed analysis of QIQoS1 and QIQoS2. ADS4 setup has been selected to simplify the analysis, which comprises two SWPs with their tasks categorized as CT. To maintain clarity, our primary focus is on the vector-multiply-add (VMA) kernel, for which we provide comprehensive explanations. Results for ADS1, ADS2, ADS3, and ADS5, as well as a broader set of kernels, are discussed in next section. Under ADS4, the baseline performance is established by running a single instance of VMA in isolation. This allows us to distinguish between the performance degradation resulting from deploying a second instance of VMA on a separate A53 core and the slowdown caused by traffic from the PL. 30 Chapter 6. Results 6.3.1 QIQoS1 We start by exploring the performance variations observed for both CT and NCT in the ADS4 scenario under QIQoS1. QIQoS1 involves varying CAM availability thresholds (Y=hprAV AIL =wAV AIL) from 1 to 12 and different timeout (X=W T OU T ) values ranging from 2048 down to 32, as specified in Figure 4.5 for QIQoS1. For simplicity, we use AV AIL to represent both hprAV AIL and wAV AIL. Critical Task (CT) Performance. Figure 6.2 focuses on the rperf (relative performance) of the VMA under QIQoS1. Different series in the chart represent increasing loads on the PL: L, M, H, and V. Here’s what we observe: Figure 6.2: CT (VMA) rperf for ADS4 under QIQoS1. 1. Under a low PL load (represented by the dashed green line), the impact of NCT traffic on CT is minimal. The slowdown is modest and remains stable, with rperf around 90% across all W T OU T and AV AIL settings. This slight slowdown, even in high isolation configurations (i.e., high AV AIL values and low W T OUT values), is primarily caused by contention between the two VMA instances. 2. When the PL load is moderate (solid blue line), results remain relatively stable. CT’s rperf ranges between 80% (especially for small AVAIL values) and 90%. Under both light and moderate loads (L and M), variations across setups are limited because the DDRMC can efficiently handle requests from both the PL and VMA instances running on A53 cores. 3. However, under heavy (H) and very heavy (V) PL loads, the impact of PL traffic increases, leading to higher variability across AV AIL and W T OUT configurations. Notably, as AV AIL increases, the ports used by the PL (NCT) are throttled more frequently, reducing their impact on CT. When AV AIL is set to 8–12 entries, the slowdown caused by NCT on CT significantly decreases, and variability across loads also decreases significantly. Additionally, for any AV AIL value, reducing W T OUT reduces contention from NCTs, as CT requests are prioritized over NCTs’ requests when they are in expired mode. 31 Chapter 6. Results Non-Critical Task (NCT) Performance. Figure 6.3 displays the rperf of the PL. The impact of varying W T OUT and AV AIL is reduced, with most variability arising from different PL loads. Under a low PL load (L), the PL experiences minimal slowdown, with rperf staying high, as the memory controller can comfortably provide the required performance. However, as we increase the PL load to M, H, and V, rperf decreases. For L, rperf remains above 60%, while for V, it drops below 40%. This happens because heavier loads saturate the DDRMC, making them more susceptible to the memory activity of the A53 cores. Conversely, lighter loads leave some bandwidth unused, allowing the A53 cores to execute their traffic with limited impact. Interestingly, under M and L loads, NCT performance is quite similar, even with better performance under M compared to L. This suggests that arbitration among ports causes higher ID ports to receive comparatively less service under lighter loads. Figure 6.3: NCT (PL) rperf for ADS4 under QIQoS1. 6.3.2 QIQoS2 Figures 6.4 and 6.5 illustrate the rperf for both CT and NCT in the ADS4 scenario under QIQoS2. QIQoS2 involves different CAM availability thresholds (Y=AV AIL) ranging from 1 to 12 and various starving (Z=SwCAM) values, from 64 down to 1, as well as a ”no starving” configuration. Critical Task (CT) Performance. Looking at Figure 6.4, we draw two main conclusions: 1. In the ”no starving” scenario, the impact of the PL on CT is more pronounced, especially under a heavy load (V). In fact, the experiment didn’t finish for the V load, even after running more than 100 times its duration in isolation. Therefore, we conclude that starving prevention should be enabled, and we won’t further discuss ”no starving” results. It’s worth noting that starving prevention is enabled by default, but we wanted to explore its impact by observing the effects of disabling it. 2. As we increase AV AIL, we notice a increase in CT’s rperf. Additionally, CT’s rperf increases as we decrease the starvation threshold, as CT requests have shorter duration in the CAMs. However, this effect diminishes, and even disappears for M and L, presumably because the load of NCT on the 32 Chapter 6. Results DDRMC decreases. When AV AIL exceeds 2 (i.e., 4, 8, 12), it cancels out the impact of starvation prevention. Nevertheless, the effect on rperf remains relatively small, and QIQoS maintains highquality results (high rperf values and low rperf variability across loads) under all explored variations. Figure 6.4: CT (VMA) rperf for ADS4 under QIQoS2. Non-Critical Task (NCT) Performance. Figure 6.5 presents the rperf of the NCT. Except for the ”no starving” setup, which we’ve excluded from discussion as previously mentioned, variability is minimal across the explored AV AIL and SwCAM values. There’s a slight decrease in performance with higher values of both parameters. This is because lower PL loads do not saturate the DDRMC, leaving some bandwidth for the A53 and R5 cores to execute with less impact on the PL. The most significant differences occur across PL loads, with rperf drops of around 30% for L, 40% for M, 60% for H, and 70% for V. Figure 6.5: NCT (PL) rperf for ADS4 under QIQoS2. 33 Chapter 6. Results 6.3.3 Metrics M1, M2, and M3: Assessing QIQoS1 and QIQoS2 To evaluate the quality of QIQoS1 and QIQoS2, we utilize metrics M1, M2, and M3 as defined in Section 6.1. For both QIQoS configurations, we opt for the aggressive isolation setups: AV AIL = 12 and W T OUT = 32 for QIQoS1 and AV AIL = 12 and SwCAM = 1 for QIQoS2. Metric M1 (CT Performance). We observe that the rperf of the CT is slightly higher with QIQoS1, ranging from 0.87 to 0.90, compared to QIQoS2, where CT rperf varies from 0.81 to 0.85. However, for both QIQoS configurations, rperf remains quite high. Metric M2 (CT Variability). Regarding variability (M2), both QIQoS1 and QIQoS2 exhibit similar performance, with three percentage points for QIQoS1 and four for QIQoS2. These results demonstrate that the developed QIQoS configurations are highly competitive, achieving both good rperf values and isolation characteristics. Metric M3 (NCT Performance). The performance of NCT (M3) is remarkably similar across both QIQoS setups, maintaining overall fairness across the system. These findings indicate that QIQoS1 and QIQoS2 provide robust performance and isolation capabilities, making them suitable for defining timing budgets for SWPs during the early stages of developing an IMA- MPSoC product. This level of confidence ensures that established bounds will hold during operation, even under the demanding conditions of a heavy load (V). It’s important to note that the load created by nine ATGs per port, constantly accessing memory from different banks, highly exceeds what an accelerator would typically impose on the DDRMC. 6.4 Wider Result Set In the preceding sections, we delved into detailed analyses of the proposed QIQoS setups, primarily focusing on a specific benchmark, VMA, and a single scenario, ADS4. In this section, we broaden our analysis to encompass all kernels and all Application Domain Scenarios (ADS). However, to maintain clarity and conciseness, we will concentrate on a specific configuration of QIQoS1 with AV AIL = 12 and W T OUT = 32 and QIQoS2 with AV AIL = 12 and SwCAM = 1. 6.4.1 Analysis Across All Kernels Regarding metrics M1, M2, and M3, under ADS4, the same conclusions derived for VMA under different PL loads generally hold for the other kernels, as reported in Figure 6.6. First, QIQoS1 provides higher CT’s performance than QIQoS2 (M1). This signifies that under various workload scenarios, QIQoS1 consistently outperforms QIQoS2 in terms of CT. Second, the variability of CT’s rperf (M2) is quite similar for both QIQoS: a mere five percentage points 34 Chapter 6. Results in the worst case for QIQoS1 and six for QIQoS2. This suggests that both QIQoS configurations exhibit comparable variability in CT performance, with only a slight advantage for QIQoS1 in terms of consistency. Third, in terms of the rperf of the NCT, both setups provide similar results with rperf gradually increasing as the load of the PL moves from L to V. This implies that the performance of the NCT is affected similarly by the varying PL loads in both QIQoS1 and QIQoS2 configurations. Figure 6.6: QIQoS1 and QIQoS2 across all kernels under ADS4. Overall, we conclude that the same trends observed for VMA hold true for the rest of the kernels, confirming that the proposed QIQoS has successfully achieved the intended goals. This consistency in performance across various metrics and kernel configurations reinforces the robustness and effectiveness of the QIQoS approach in optimizing system performance under diverse conditions. 6.4.2 Analysis Across All ADS Scenarios Previous sections provided a detailed set of results and analysis of the proposed QIQoS setups for one specific benchmark (VMA) under a single scenario (ADS4). In this section, we extend the analysis of results to all kernels and all ADS scenarios, focusing on a specific PL load (L) while fixing the parameters AV AIL = 12 and W T OUT = 32 for QIQoS1 and AV AIL = 12 and SwCAM = 1 for QIQoS2. Figure 6.7: QIQoS1 and QIQoS2 across all kernels and all scenarios under light (L) PL load. Figure 6.7 shows the rperf of the CT (left) and the rperf of the NCT (right) for all benchmarks under all 35 Chapter 6. Results ADS scenarios, with the PL load set to L. In both charts, results for each kernel under QIQoS1 and QIQoS2 are presented in consecutive bars. For instance, bars 1 and 2 compare the results of QIQoS1 and QIQoS2 for ADS1, bars 3 and 4 for ADS2, bars 5 and 6 for ADS3, and so on. Observations from Figure 6.7 are as follows: •In terms of the rperf of the CT (left chart), in general, QIQoS1 provides slightly better performance than QIQoS2. The rperf consistently reduces for more aggressive ADS, staying between 0.8 and 1, except for most aggressive ADS (ADS5) which loses rperf due to contention between CT copies. This suggests that QIQoS1 exhibits improved performance for critical tasks under various ADS scenarios, and the performance improvement becomes more pronounced as the system’s aggressiveness increases. •In terms of the rperf of the NCT (right chart), the results are generally quite similar across the proposed setups, with QIQoS2 slightly outperforming QIQoS1. This indicates that for non-critical tasks, both QIQoS1 and QIQoS2 offer comparable performance levels, with QIQoS2 holding a slight advantage. The similarity in performance suggests that the proposed QIQoS configurations are effective in maintaining the performance of non-critical tasks across different ADS scenarios. Figure 6.8 shows the rperf of the CT (left) and the rperf of the NCT (right) for all benchmarks under all ADS scenarios, as in the previous figure, but with the PL load set to M. Figure 6.8: QIQoS1 and QIQoS2 across all kernels and all scenarios under light (M) PL load. In Figure 6.8, we can see that the CT rperf is still very similar to the previous figure despite increasing the PL containment pressure. On the other hand, we can see that the NCT rperf reduces due to the increased load and the impossibility of the memory controller to provide enough bandwidth to feed the PL and maintain such a high CT performance across all ADS scenarios and kernels. Overall, these findings provide valuable insights into the performance characteristics of the QIQoS setups across multiple kernels and ADS scenarios, highlighting their effectiveness in optimizing system performance for both critical and non-critical tasks under varying conditions. 36 Chapter 7 Conclusions and Future Work This work demonstrates the effective leveraging of hardware Quality of Service (QoS) support within contemporary Multi-Processor Systems on Chips (MPSoCs). Specifically, we show the applicability of existing hardware QoS solutions in mitigating timing interference and reducing the impact of co-running applications on the execution time of a given application. To achieve this, we introduce a set of QoS configurations called Quasi Isolation QoS setups or QIQoS. These setups ensure a high degree of isolation, providing performance guarantees to applications regardless of contention from co-runners on the shared resources of the MPSoC. By adhering to the requirements of the IMA (Integrated Modular Avionics) assumptions, QIQoS setups aim to minimize the variability in execution time caused by varying contender loads on the system’s shared resources. Consequently, the enforcement of a proper QIQoS setup will increase the representativeness of early-time budgets, typically obtained by running the application against synthetic aggressors, making them much tighter and stable. This results in a significant reduction in the observed multicore interference gap between the timing verification campaign, which employs synthetic worst-case contention scenarios, and the final system configuration. We instantiated the QIQoS approach on the Xilinx Zynq UltraScale+ MPSoC to address contention arising from DDR main memory accesses. The DDR memory controller (DDRMC) provides DDR access to the various computing elements of the MPSoC, and incorporates a complex multi-layer QoS mechanism. This mechanism encompasses traffic classes, port throttling, resource allocation per traffic class, and starvation of Content-Addressable Memories (CAMs), offering millions of configurations challenging for end users to comprehend. We identify specific DDRMC QIQoS configurations that allow isolating the traffic of critical tasks from those generated by other tasks. QIQoS1 leverages port-level timeout features, while QIQoS2 relies mainly on starvation prevention functions. Both configurations use traffic classes and transaction throttling. QIQoS have been evaluated across different ADS scenarios, critical applications and aggressor loads. The evaluation results reveals that both QIQoS1 and QIQoS2 achieve good isolation results, maintaining high performance for critical tasks with minimal variability under varied aggressor loads. 37 Chapter 7. Conclusions and Future Work As part of our future work, we aim to explore additional features of the DDRMC to establish more robust isolation. Additionally, we aim to investigate the advantages of isolating not only APU and RPU from PL traffic but also implementing isolation between the APU and RPU cores. These measures align with our goal of optimizing resource allocation, minimizing interference, and enhancing overall system performance and predictability. 38