Abstract
Semi-partitioned scheduling is an approach to multiprocessor real-time scheduling where most tasks are fixed to processors, while a small subset of tasks is allowed to migrate. This approach offers reduced overhead compared to global scheduling, and can reduce processor capacity loss compared to partitioned scheduling. Prior work has resulted in a number of semi-partitioned scheduling algorithms, but their correctness typically hinges on a complex intertwining of offline task assignment and online execution. This brittleness has resulted in few proposed semi-partitioned scheduling algorithms that support dynamic task systems, where tasks may join or leave the system at runtime, and few that are optimal in any sense. This paper introduces EDF-sc, the first semi-partitioned scheduling algorithm that is optimal for scheduling (static) soft real-time (SRT) sporadic task systems and allows tasks to dynamically join and leave. The SRT notion of optimality provided by EDF-sc requires deadline tardiness to be bounded for any task system that does not cause over-utilization. In the event that all tasks can be assigned as fixed, EDF-sc behaves exactly as partitioned EDF. Heuristics are provided that give EDF-sc the novel ability to stabilize the workload to approach the partitioned case as tasks join and leave the system.
Similar content being viewed by others
Notes
Mode change protocols (Real and Crespo 2004; Nélis et al. 2011) have been extensively studied in the real-time literature for both uniprocessor and multiprocessor systems. While EDF-sc could certainly be made to support various types of mode change protocols, they are mentioned here mainly for illustrative purposes, and adding such support is outside the scope of this work.
Alternative reweighting rules could free system utilization more aggressively than the ones presented here. In particular, a removed migrating task’s utilization could be freed at the deadline of its last job. This would allow dynamic workload changes to be made more quickly, but would also create a blocking term in the tardiness analysis for fixed tasks to account for tasks that are being changed from migrating to fixed. To aid in understanding, we opt for more conservative reweighting rules in this work.
New tardiness analysis techniques for GEDF (Erickson et al. 2010; Leoncini et al. 2018) have been proposed since Devi’s work, and could likely be applied to obtain reduced bounds for the extended sporadic task model. However, deriving new bounds for existing scheduling algorithms is beyond the scope of this work.
References
Anderson JH, Bud V, Devi UC (2005) An EDF-based scheduling algorithm for multiprocessor soft real-time systems. In: Proceedings of the 17th Euromicro Conference on Real-Time Systems (ECRTS)
Anderson JH, Erickson JP, Devi UC, Casses BN (2016) Optimal semi-partitioned scheduling in soft real-time systems. J Signal Process Syst 84(1):3–23
Andersson B, Tovar E (2006) Multiprocessor scheduling with few preemptions. In: Proceedings 12th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications (RTCSA), pp 322–334
Andersson B, Bletsas K, Baruah SK (2008) Scheduling arbitrary-deadline sporadic task systems on multiprocessors. In: Proceedings of the 29th IEEE Real-Time Systems Symposium (RTSS), pp 385–394
Bastoni A, Brandenburg BB, Anderson JH (2010) Cache-related preemption and migration delays: Empirical approximation and impact on schedulability. Proceedings of the 6th International Workshop on Operating Systems Platforms for Embedded Real-Time Applications (OSPERT) pp 33–44
Bastoni A, Brandenburg BB, Anderson JH (2011) Is semi-partitioned scheduling practical? In: Proceedings of the 23rd Euromicro Conference on Real-Time Systems (ECRTS), IEEE, pp 125–135
Bhatti MK, Belleudy C, Auguin M (2012) A semi-partitioned real-time scheduling approach for periodic task systems on multicore platforms. In: Proceedings of the 27th Annual ACM Symposium on Applied Computing (SAC), pp 1594–1601
Bletsas K, Andersson B (2009) Notional processors: an approach for multiprocessor scheduling. In: Proceedings of the 15th IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS), pp 3–12
Bletsas K, Andersson B (2011) Preemption-light multiprocessor scheduling of sporadic tasks with high utilisation bound. Real-Time Syst 47(4):319–355
Block A, Anderson JH, Bishop G (2005) Fine-grained task reweighting on multiprocessors. In: Proceedings of the 11th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications (RTCSA), pp 429–435
Block A, Anderson JH, Devi UC (2008) Task reweighting under global scheduling on multiprocessors. Real-Time Syst 39(1–3):123–167
Brandenburg BB (2011) Scheduling and locking in multiprocessor real-time operating systems. PhD thesis, University of North Carolina at Chapel Hill
Brandenburg BB, Gül M (2016) Global scheduling not required: Simple, near-optimal multiprocessor real-time scheduling with semi-partitioned reservations. In: Proceedings of the 37th IEEE Real-Time Systems Symposium (RTSS), pp 99–110
Burns A, Davis RI, Wang P, Zhang F (2012) Partitioned EDF scheduling for multiprocessors using a C = D task splitting scheme. Real-Time Syst 48(1):3–33
Calandrino JM, Leontyev H, Block A, Devi UC, Anderson JH (2006) LitmusRT: A testbed for empirically comparing real-time multiprocessor schedulers pp 111–123
Casini D, Biondi A, Buttazzo G (2017) Semi-partitioned scheduling of dynamic real-time workload: A practical approach based on analysis-driven load balancing. In: Proceedings of the 29th Euromicro Conference on Real-Time Systems (ECRTS), pp 13:1–13:23
Devi UC (2006) Soft real-time scheduling on multiprocessors. PhD thesis, University of North Carolina at Chapel Hill
Devi UC, Anderson JH (2008) Tardiness bounds under global EDF scheduling on a multiprocessor. Real-Time Syst 38(2):133–189
Dorin F, Yomsi PM, Goossens J, Richard P (2010) Semi-partitioned hard real-time scheduling with restricted migrations upon identical multiprocessor platforms. CoRR arXiv:org/abs/1006.2637
Erickson JP, Devi UC, Baruah SK (2010) Improved tardiness bounds for global EDF. In: Proceedings of the 22nd Euromicro Conference on Real-Time Systems (ECRTS), pp 14–23
Fan M, Quan G (2012) Harmonic semi-partitioned scheduling for fixed-priority real-time tasks on multi-core platform. In: Proceedings of the 2012 Design, Automation Test in Europe Conference Exhibition (DATE), pp 503–508
Guan N, Stigge M, Yi W, Yu G (2010a) Fixed-priority multiprocessor scheduling: Beyond Liu & Layland utilization bound. In: Proceedings of the 31st IEEE Real-Time Systems Symposium (RTSS) Work-in-Progress Session, pp 1594–1601
Guan N, Stigge M, Yi W, Yu G (2010b) Fixed-priority multiprocessor scheduling with Liu and Layland’s utilization bound. In: Proceedings of the 16th IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS), pp 165–174
Hobbs C, Tong Z, Anderson JH (2019) Optimal soft real-time semi-partitioned scheduling made simple (and dynamic). In: Proceedings of the 27th International Conference on Real-Time Networks and Systems (RTNS), pp 112–122
Hobbs C, Tong Z, Bakita J, Anderson JH (2020) Statically optimal dynamic soft real-time semi-partitioned scheduling, additional materials. http://cs.unc.edu/%7Eanderson/papers.html
Ivkovic Z, Lloyd EL (1998) Fully dynamic algorithms for bin packing: Being (mostly) myopic helps. SIAM J Comput 28(2):574–38
Kato S, Yamasaki N (2007) Real-time scheduling with task splitting on multiprocessors. In: Proceedings of the 13th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications (RTCSA), pp 441–450
Kato S, Yamasaki N (2008) Portioned EDF-based scheduling on multiprocessors. In: Proceedings of the 8th ACM International Conference on Embedded Software (EMSOFT), pp 139–148
Kato S, Yamasaki N (2009) Semi-partitioned fixed-priority scheduling on multiprocessors. In: Proceedings of the 15th IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS), pp 23–32
Leoncini M, Montangero M, Valente P (2018) A parallel branch-and-bound algorithm to compute a tighter tardiness bound for preemptive global EDF. Real-Time Systems pp 1–38, https://doi.org/10.1007/s11241-018-9319-6
Leontyev H, Chakraborty S, Anderson JH (2011) Multiprocessor extensions to real-time calculus. Real-Time Syst 47(6):562
Mok AK, Feng X, Chen D (2001) Resource partition for real-time systems. In: Proceedings of the Seventh IEEE Real-Time Technology and Applications Symposium (RTAS), pp 75–84
Nélis V, Andersson B, Marinho J, Petters SM (2011) Global-edf scheduling of multimode real-time systems considering mode independent tasks. In: 2011 23rd Euromicro Conference on Real-Time Systems, IEEE, pp 205–214
Real J, Crespo A (2004) Mode change protocols for real-time systems: a survey and a new proposal. Real-Time Syst 26(2):161–197
Shekhar M, Sarkar A, Ramaprasad H, Mueller F (2012) Semi-partitioned hard-real-time scheduling under locked cache migration in multicore systems. In: Proceedings of the 24th Euromicro Conference on Real-Time Systems (ECRTS), pp 331–340
Sousa PB, Souto P, Tovar E, Bletsas K (2013) The carousel-EDF scheduling algorithm for multiprocessor systems. In: Proceedings of the 19th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications (RTCSA), pp 12–21
Voronov S, Anderson JH (2018) An optimal semi-partitioned scheduler assuming arbitrary affinity masks. In: Proceedings of the 39th IEEE Real-Time Systems Symposium (RTSS), pp 408–420
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Work supported by NSF grants CNS 1409175, CNS 1563845, CNS 1717589, and CPS 1837337, ARO grant W911NF-17-1-0294, ONR grant N00014-20-1-2698, and funding from General Motors.
Additional Figures
Additional Figures
In this appendix, we present additional experimental results that were omitted from Sect. 6 for brevity. We first show the full results of our schedulability study from Sect. 6.1, followed by the corresponding plots of minimum schedulable container periods. Finally, we show the mean analytical tardiness bounds that were computed for the dynamic task systems generated in Sect. 6.2.
1.1 Schedulability Experiments
In this section, we provide full results of the schedulability study from Sect. 6.1. The same general trend observed there holds throughout, with EDF-sc giving high weighted schedulability when periods are short, and both schedulers giving high weighted schedulability for task systems with longer periods (Figs. 13, 14, 15, 16, 17, and 18).
1.2 Container Period Experiments
In this section, we show the full set of plots of the minimum container periods for which the task sets from the experiments in Sect. 6.1 were schedulable with EDF-sc. As mentioned in the main text, these curves all show a sharp upward trend once the container period reaches some value. This period at which this occurs varies between the different task set parameters, but is not more than 50 ms in any case, so this was used as a conservative container period in the subsequent experiments.(Figs. 19, 20, 21, 22, 23, and 24).
1.3 Tardiness Bounds from Heuristic Comparison
Finally, in this section, we show the mean tardiness bounds for the dynamic task systems generated in Sect. 6.2 (Fig. 25).
Rights and permissions
About this article
Cite this article
Hobbs, C., Tong, Z., Bakita, J. et al. Statically optimal dynamic soft real-time semi-partitioned scheduling. Real-Time Syst 57, 97–140 (2021). https://doi.org/10.1007/s11241-020-09359-8
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11241-020-09359-8