Dynamic Detection and Mitigation of DMA Races in MPSoCsReport as inadecuate

Dynamic Detection and Mitigation of DMA Races in MPSoCs - Download this document for free, or read online. Document in PDF available to download.

1 Technische Universität Braunschweig Braunschweig 2 CORSE - Compiler Optimization and Run-time Systems Inria Grenoble - Rhône-Alpes, LIG - Laboratoire d-Informatique de Grenoble

Abstract : —Explicitly managed memories have emerged as a good alternative for multicore processors design in order to reduce energy and performance costs. Memory transfers then rely on Direct Memory Access DMA engines which provide a hardware support for accelerating data. However, programming explicit data transfers is very challenging for developers who must manually orchestrate data movements through the memory hierarchy. This is in practice very error-prone and can easily lead to memory inconsistency. In this paper, we propose a runtime approach for monitoring DMA races. The monitor acts as a safeguard for programmers and is able to enforce at runtime a correct behavior w.r.t the semantics of the program execution. We validate the approach using traces extracted from industrial benchmarks and executed on the multiprocessor system-on-chip platform STHORM. Our experiments demonstrate that the monitoring algorithm has a low overhead less than 1.5 KB of on-chip memory consumption and an overhead of less than 2% of additional execution time. I. INTRODUCTION In recent Multiprocessor Systems-on-Chip MPSoCs design , a combination of Scratchpad Memories SPM 1 and Direct Memory Access DMA engines have been proposed as an alternative to traditional caches, where data and sometimes code transfers through the memory hierarchy are explicitly managed by the software. This is promising in terms of performance, energy, and silicon area. However the price to pay is clearly programming complexity, since the program-mer-software has a disjoint view of the different levels of memories and must manually orchestrate data movements using explicit DMA operations. In this context, DMA races emerge as one of the regular issues programmers have to face.

Author: Selma Saidi - Yliès Falcone -

Source: https://hal.archives-ouvertes.fr/


Related documents