|||"Experience Report: Towards Extending an OSEK-Compliant RTOS with Mixed Criticality Support", In e-Informatica Software Engineering Journal, vol. 12, no. 1, pp. 305–320, 2018.
DOI: , 10.5277/e-Inf180112.|
Get article (PDF)View article entry (BibTeX)
Tarun Gupta, Erik J. Luit, Martijn M.H.P. van den Heuvel, Reinder J. Bril
Background: With an increase of the number of features in a vehicle, the computational requirements also increase, and vehicles may contain up to 100 Electronic Control Units (ECUs) to accommodate these requirements. For cost-effectiveness reasons, amongst others, it is considered desirable to limit the growth of, or preferably reduce, the number of ECUs. To that end, mixed criticality is a promising approach that received a lot of attention in the literature, primarily from a theoretical perspective.
Aim: In this paper, we address mixed criticality from a practical perspective. Our prime goal is to extend an OSEK-compliant real-time operating system (RTOS) with mixed criticality support, enabling such support in the automotive domain. In addition, we aim at a system (i) supporting more than two criticality levels; (ii) with minimal overhead upon an increase of the so-called criticality level indicator of the system; (iii) requiring no changes to an underlying operating system; and (iv) featuring further extensions, such as hierarchical scheduling and multi-core.
Method: We used the so-called adaptive mixed criticality (AMC) scheme as a starting point for mixed criticality. We extended that scheme from two to more than two criticality levels (satisfying (i)) and complemented it with specified behavior for criticality level changes. We baptized our extended scheme AMC*. Rather than selecting a specific OSEK-compliant RTOS, we selected ExSched, an operating system independent external CPU scheduler framework for real-time systems, which requires no modifications to the original operating system source code (satisfying (iii)) and features further extensions (satisfying (iv))).
Results: Although we managed to build a functional prototype of our system, our experience with ExSched made us decide to rebuild the system with a specific OSEK-compliant RTOS, being µC/OS-II. We also briefly report upon our experience with AMC* and suggest directions for improvements.
Conclusions: Compared to extending ExSched with AMC*, extending µC/OS-II turned out to be straightforward. Although we now have a basic system operational and available for experimentation, enhancements of the AMC*-scheme are considered desirable before exploitation in a vehicle.
OSEK, RTOS, mixed criticality
 M. Holenderski, R. Bril, and J. Lukkien, “An efficient hierarchical scheduling framework for the automotive domain,” in Real-Time Systems, Architecture, Scheduling, and Application, D.S.M. Babamir, Ed. InTech, 2012, pp. 67–94.
 A. Burns and R. Davis, “Mixed criticality systems – a review,” University of York, UK, Tech. Rep., 2018. [Online]. https://www-users.cs.york.ac.uk/burns/review.pdf
 i-GAME, Grand Cooperative Driving Challenge 2016, 2016. [Online]. http://www.gcdc.net/en/
 J. Herman, C. Kenna, M. Mollison, J. Anderson, and D. Johnson, “RTOS support for multi-core mixed-criticality systems,” in Proceedings 18th Real-Time and Embedded technology and Applications Symposium (RTAS), 2012, pp. 197–208.
 A. Kritikakou, C. Pagetti, C. Rochange, M. Roy, M. Faugère, S. Girbal, and G. Pérez, “Distributed run-time WCET controller for concurrent tasks in mixed-criticality systems,” in Proceedings 22nd International Conference on Real-Time Networks and Systems, 2014, pp. 139–148.
 “OSEK/VDX operating system,” OSEK group, Tech. Rep., 2005. [Online]. https://web.archive.org/web/20160310151905/http://portal.osek-vdx.org/files/pdf/specs/os223.pdf
 M. Åsberg, T. Nolte, S. Kato, and R. Rajkumar, “ExSched: An External CPU Scheduler Framework for Real-Time Systems,” in Proceedings 18th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications (RTCSA), 2012, pp. 240–249.
 J. Calandrino, H. Leontyev, A. Block, U. Devi, and J. Anderson, “LITMUSRT : A testbed for empirically comparing real-time multiprocessor schedulers,” in Proceedings 27th IEEE Real-Time Systems Symposium (RTSS), 2006, pp. 111–123.
 Ubuntu Kernel Repository. [Online]. http://kernel.ubuntu.com/~kernel-ppa/mainline/
 T. Gupta, E. Luit, M. van den Heuvel, and R. Bril, “Extending ExSched with mixed criticality support – an experience report,” in Proceedings 3rd Workshop on Automotive System/Software Architecture (WASA), In conjunction with IEEE International Conference on Software Architecture (ICSA), 2017.
 S. Baruah and S. Vestal, “Schedulability analysis of sporadic tasks with multiple criticality specifications,” in Proceedings 20th Euromicro Conference on Real-Time Systems (ECRTS), 2008, pp. 147–155.
 F. Santy, L. George, P. Thierry, and J. Goossens, “Relaxing mixed-criticality scheduling strictness for task sets scheduled with FP,” in Proceedings 24th Euromicro Conference on Real-Time Systems (ECRTS), 2012, pp. 155–165.
 T. Gupta, “Extending a real-time operating system with a mechanism for criticality-level changes,” Eindhoven University of Technology, Stan Ackermans Institute (SAI), Tech. Rep. 2015027, 2015. [Online]. https://pure.tue.nl/ws/files/32337443/Final_Report_Tarun_Gupta.pdf
 T. Gupta, “Interoperable robustness measures for safety-integrity levels (SILs),” European Commission 7th Framework Programme, i-GAME Deliverable D2.4, 2015. [Online]. http://www.gcdc.net/images/doc/D2.4.Interoperable.robustness.measures.for.safety-integrity.level.pdf
 G. Durrieu, M. Faugèere, S. Girbal, D. Garcia Pérez, C. Pagetti, and W. Puffitsch, “Predictable flight management system implementation on a multicore processor,” in Proceedings 9th Embedded Real-Time Software, 2014.
 M. Holenderski, W. Cools, R. Bril, and J. Lukkien, “Extending an open-source real-time operating system with hierarchical scheduling,” Eindhoven University of Technology (TU/e), Tech. Rep. CS-report 10-10, 2010.
 M. Holenderski, W. Cools, R.J. Bril, and J. Lukkien, “Multiplexing real-time timed events,” in Proceedings 14 IEEE International Conference on Emerging Technologies and Factory Automation (ETFA), 2009.
 M. Heuvel, E. Luit, R. Bril, J. Lukkien, P. Verhoeven, and M. Holenderski, “An experience report on the integration of ECU software using an HSF-enabled real-time kernel,” in Proceedings 11th Workshop on Operating Systems Platforms for Embedded Real-Time applications (OSPERT), 2015, pp. 51–56.
 R. Bril, J. Lukkien, and W. Verhaegh, “Worst-case response time analysis of real-time tasks under fixed-priority scheduling with deferred preemption,” Real-Time Systems Journal, Vol. 42, No. 1-3, 2009, pp. 63–119.
 M. Holenderski, M. Heuvel, R. Bril, and J. Lukkien, “Grasp: Tracing, visualizing and measuring the behavior of real-time systems,” in Proceedings 1st Int. Workshop on Analysis Tools and Methodologies for Embedded and Real-Time Systems (WATERS), 2010, pp. 37–42.
 P. Gai, E. Bini, G. Lipari, M. Di Natale, and L. Abeni, “Architecture for a portable open source real time kernel environment,” in 2nd Real-Time Linux Workshop and Hand’s on Real-Time Linux Tutorial, 2000.
 Master Automotive Technology, Eindhoven Univeristy of Technology (TU/e), 2017. [Online]. https://educationguide.tue.nl/programs/graduate-school/masters-programs/automotive-technology/
 OpenRISC overview, OpenCores, 2009. [Online]. http://www.opencores.org/project,or1k
 M. Behnam, T. Nolte, I. Shin, M. Åsberg, and R.J. Bril, “Towards hierarchical scheduling in VxWorks,” in Proceedings 4th International Workshop on Operating Systems Platforms for Embedded Real-Time Applications (OSPERT), 2008, pp. 63–72.
 R. Rajkumar, K. Juvva, A. Molano, and S. Oikawa, “Resource kernels: A resource-centric approach to real-time and multimedia systems,” in Proceedings SPIE, Vol. 3310, Conference on Multimedia Computing and Networking (CMCN), 1998, pp. 150–164.
 R.J. Bril and E. Steffens, “User focus in consumer terminals and conditionally guaranteed budgets,” in Proceedings 9th International Workshop on Quality of Service (IWQoS), ser. Lecture Notes in Computer Science (LNCS), No. 2092, 2001, pp. 107–120.