On Reducing Busy Waiting in AUTOSAR via Task-Release-Delta-based Runnable Reordering

Robert Höttger1,a, Burkhard Igel1,b and Olaf Spinczyk2
1University of Applied Sciences and Arts Dortmund, Pimes Research Department, Otto-Hahn-Str. 23, 44227 Dortmund, Germany.
arobert.hoettger@fh-dortmund.de
bigel@fh-dortmund.de
2Technische Universität Dortmund, Department of Computer Science 12 Otto-Hahn-Str. 16, 44221 Dortmund, Germany.
olaf.spinczyk@tu-dortmund.de

ABSTRACT


The increasing amount of innovative software technologies in the automotive domain comes with challenges regarding inevitable distributed multi-core and many-core methodologies. Approaches for general purpose solutions have been studied over decades but do not completely meet the specific constraints (e. g. timing, safety, reliability, affinity, etc.) for AUTOSAR compliant applications. AUTOSAR utilizes a spinlock mechanism in combination with the priority ceiling protocol in order to provide mutually exclusive access to shared resources. The essential disadvantages of spinlocks are unpredictable task response times on the one hand and wasted computation time caused by busy waiting periods on the other hand.
In this paper, we propose a concept of task-release-deltabased runnable reordering for the purpose of sequentializing parallel accesses to shared resources, resulting in reduced task response times, improved timing predictability, and increased parallel efficiency respectively. To achieve this, runnables that represent smallest executable program parts in AUTOSAR are reordered based on precedence constraints. Our experiments among industrial use cases show that task response times can be reduced by up to 18,2%.



Full Text (PDF)