Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Probabilistic Analysis and Scheduling of Real-Time Systems
Mälardalen University, School of Innovation, Design and Engineering, Embedded Systems.
2025 (English)Doctoral thesis, comprehensive summary (Other academic)
Abstract [en]

In this thesis probabilistic methods are explored for analysis and scheduling of real-time systems, where computation times vary significantly. The aim is to enable sufficient timing-related performance while allowing for economic resource provisioning or other average-case objectives. In one line of research, Hidden Markov Models (HMMs) with continuous emission distributions are used to model execution times of periodic tasks. A framework for identification and validation of such models is presented. Methods are developed for updating model parameters in systems where the execution time behavior changes, and for bounding the deadline miss probability for such periodic tasks in a reservation based server. For scheduling parallel workload with varying computational demand, a mechanism is proposed for sharing a job queue among several reservation based servers. The mechanism guarantees executing jobs a certain amount of computational resource prior to their deadline, by enabling job dismissal in overload situations. Another contribution regards parallel synchronous tasks, and the problem of assigning a suitable number of cores to the task, so that the deadline is met while optimizing towards a goal such as minimizing energy consumption. A suitable core assignment is found using a Multi-Armed Bandit (MAB) formulation of the problem, requiring only limited knowledge of the worst case properties of the task structure. Using derived response time bounds in the MAB formulation reduces the time to convergence and the energy consumption.

Place, publisher, year, edition, pages
Västerås: Mälardalen University , 2025.
Series
Mälardalen University Press Dissertations, ISSN 1651-4238 ; 431
National Category
Computer Systems
Research subject
Computer Science
Identifiers
URN: urn:nbn:se:mdh:diva-70445ISBN: 978-91-7485-704-7 (print)OAI: oai:DiVA.org:mdh-70445DiVA, id: diva2:1945516
Public defence
2025-04-29, Kappa, Mälardalens universitet, Västerås, 13:00 (English)
Opponent
Supervisors
Available from: 2025-03-19 Created: 2025-03-18 Last updated: 2025-04-08Bibliographically approved
List of papers
1. Identification and validation of markov models with continuous emission distributions for execution times
Open this publication in new window or tab >>Identification and validation of markov models with continuous emission distributions for execution times
2020 (English)In: 2020 IEEE 26th International Conference on Embedded and Real-Time Computing Systems and Applications, RTCSA 2020, Institute of Electrical and Electronics Engineers Inc. , 2020Conference paper, Published paper (Refereed)
Abstract [en]

It has been shown that in some robotic applications, where the execution times cannot be assumed to be independent and identically distributed, a Markov Chain with discrete emission distributions can be an appropriate model. In this paper we investigate whether execution times can be modeled as a Markov Chain with continuous Gaussian emission distributions. The main advantage of this approach is that the concept of distance is naturally incorporated. We propose a framework based on Hidden Markov Model (HMM) methods that 1) identifies the number of states in the Markov Model from observations and fits the Markov Model to observations, and 2) validates the proposed model with respect to observations. Specifically, we apply a tree-based cross-validation approach to automatically find a suitable number of states in the Markov model. The estimated models are validated against observations, using a data consistency approach based on log likelihood distributions under the proposed model. The framework is evaluated using two test cases executed on a Raspberry Pi Model 3B+ single-board computer running Arch Linux ARM patched with PREEMPT_RT. The first is a simple test program where execution times intentionally vary according to a Markov model, and the second is a video decompression using the ffmpeg program. The results show that in these cases the framework identifies Markov Chains with Gaussian emission distributions that are valid models with respect to the observations.

Place, publisher, year, edition, pages
Institute of Electrical and Electronics Engineers Inc., 2020
Keywords
Markov Chain Model, Probabilistic Timing Analysis, Real-time systems, Computer operating systems, Embedded systems, Hidden Markov models, Real time systems, Software testing, Trellis codes, Appropriate models, Continuous emission, Cross validation, Data consistency, Emission distribution, Gaussian emission, Robotic applications, Single board computers, Markov chains
National Category
Electrical Engineering, Electronic Engineering, Information Engineering
Identifiers
urn:nbn:se:mdh:diva-51883 (URN)10.1109/RTCSA50079.2020.9203594 (DOI)2-s2.0-85092687388 (Scopus ID)9781728144030 (ISBN)
Conference
26th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications, RTCSA 2020; Virtual, Gangnueng; South Korea; 19 August 2020 through 21 August 2020; Category numberCFP20066-ART; Code 163272
Available from: 2020-10-27 Created: 2020-10-27 Last updated: 2025-03-18Bibliographically approved
2. Adaptive Runtime Estimate of Task Execution Times using Bayesian Modeling
Open this publication in new window or tab >>Adaptive Runtime Estimate of Task Execution Times using Bayesian Modeling
2021 (English)In: Proceedings - 2021 IEEE 27th International Conference on Embedded and Real-Time Computing Systems and Applications, RTCSA 2021, Institute of Electrical and Electronics Engineers Inc. , 2021, p. 1-10Conference paper, Published paper (Refereed)
Abstract [en]

In the recent works that analyzed execution-time variation of real-time tasks, it was shown that such variation may conform to regular behavior. This regularity may arise from multiple sources, e.g., due to periodic changes in hardware or program state, program structure, inter-task dependence or inter-task interference. Such complexity can be better captured by a Markov Model, compared to the common approach of assuming independent and identically distributed random variables. However, despite the regularity that may be described with a Markov model, over time, the execution times may change, due to irregular changes in input, hardware state, or program state. In this paper, we propose a Bayesian approach to adapt the emission distributions of the Markov Model at runtime, in order to account for such irregular variation. A preprocessing step determines the number of states and the transition matrix of the Markov Model from a portion of the execution time sequence. In the preprocessing step, segments of the execution time trace with similar properties are identified and combined into clusters. At runtime, the proposed method switches between these clusters based on a Generalized Likelihood Ratio (GLR). Using a Bayesian approach, clusters are updated and emission distributions estimated. New clusters can be identified and clusters can be merged at runtime. The time complexity of the online step is $O(N^{2}+ NC)$ where N is the number of states in the Hidden Markov Model (HMM) that is fixed after the preprocessing step, and C is the number of clusters. 

Place, publisher, year, edition, pages
Institute of Electrical and Electronics Engineers Inc., 2021
Keywords
Bayesian Analysis, Hidden Markov Model, Probabilistic Timing Analysis, Real-time systems, Bayesian networks, Hidden Markov models, Interactive computer systems, Timing circuits, Bayesian approaches, Hidden-Markov models, Markov modeling, Pre-processing step, Probabilistic timing analyse, Probabilistics, Program state, Real - Time system, Timing Analysis, Real time systems
National Category
Computer Sciences Embedded Systems
Identifiers
urn:nbn:se:mdh:diva-56271 (URN)10.1109/RTCSA52859.2021.00008 (DOI)000723595900001 ()2-s2.0-85116666155 (Scopus ID)9781665441889 (ISBN)
Conference
27th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications, RTCSA 2021, 18 August 2021 through 20 August 2021
Available from: 2021-10-22 Created: 2021-10-22 Last updated: 2025-03-18Bibliographically approved
3. Efficiently bounding deadline miss probabilities of Markov chain real-time tasks
Open this publication in new window or tab >>Efficiently bounding deadline miss probabilities of Markov chain real-time tasks
2024 (English)In: Real-time systems, ISSN 0922-6443, E-ISSN 1573-1383Article in journal (Refereed) Published
Abstract [en]

In real-time systems analysis, probabilistic models, particularly Markov chains, have proven effective for tasks with dependent executions. This paper improves upon an approach utilizing Gaussian emission distributions within a Markov task execution model that analyzes bounds on deadline miss probabilities for tasks in a reservation-based server. Our method distinctly addresses the issue of runtime complexity, prevalent in existing methods, by employing a state merging technique. This not only maintains computational efficiency but also retains the accuracy of the deadline-miss probability estimations to a significant degree. The efficacy of this approach is demonstrated through the timing behavior analysis of a Kalman filter controlling a Furuta pendulum, comparing the derived deadline miss probability bounds against various benchmarks, including real-time Linux server metrics. Our results confirm that the proposed method effectively upper-bounds the actual deadline miss probabilities, showcasing a significant improvement in computational efficiency without significantly sacrificing accuracy.

Place, publisher, year, edition, pages
SPRINGER, 2024
Keywords
Real-time systems, Hidden Markov model, Probabilistic schedulability analysis, Deadline miss probability
National Category
Electrical Engineering, Electronic Engineering, Information Engineering
Identifiers
urn:nbn:se:mdh:diva-69419 (URN)10.1007/s11241-024-09431-7 (DOI)001329808000001 ()2-s2.0-85206369031 (Scopus ID)
Available from: 2024-12-11 Created: 2024-12-11 Last updated: 2025-03-18Bibliographically approved
4. Nip It In the Bud: Job Acceptance Multi-Server
Open this publication in new window or tab >>Nip It In the Bud: Job Acceptance Multi-Server
Show others...
(English)Manuscript (preprint) (Other academic)
Abstract [en]

Computationally demanding tasks with highly variable execution times may require parallel processing. Scheduling such tasks with low deadline miss rates but without significant overprovisioning is challenging. This issue arises in applications like nonlinear optimization for Model Predictive Control (MPC). The Constant Bandwidth Server (CBS) provides timing isolation, supporting both hard and soft real-time tasks. However, scheduling parallel, time-varying jobs across multiple CBS instances requires static job-to-server assignments, which can lead to resource underutilization due to queued jobs awaiting specific servers. This paper introduces the Job Acceptance Multi-Server JAMS, a mechanism in which multiple CBS instances share a common job queue, enabling flexible job dispatching for parallel workloads. JAMS incorporates a job dismissal mechanism to address overloads, ensuring that only jobs with guaranteed resource availability are accepted. Each CBS instance checks if it can complete a job by its deadline, given probabilistic knowledge on its execution times, dismissing unfeasible jobs to avoid excessive tardiness across queued tasks. Implemented in Linux, JAMS  is evaluated with computation times drawn from an MPC task and synthetic datasets. The extensive experimental results we provide, demonstrate that JAMS effectively controls the deadline miss rate, maintaining it below a specified design threshold.

Keywords
probabilistic scheduling, job dismissal
National Category
Computer Systems
Research subject
Computer Science
Identifiers
urn:nbn:se:mdh:diva-70438 (URN)
Available from: 2025-03-17 Created: 2025-03-17 Last updated: 2025-03-31Bibliographically approved
5. Resource Management For Stochastic Parallel Synchronous Tasks: Bandits To The Rescue
Open this publication in new window or tab >>Resource Management For Stochastic Parallel Synchronous Tasks: Bandits To The Rescue
Show others...
(English)Manuscript (preprint) (Other academic)
Abstract [en]

In scheduling real-time tasks, we face the challenge of meeting hard deadlines while optimizing for some other objective, such as minimizing energy consumption. Formulating the optimization as a Multi-Armed Bandit (MAB) problem allows us to use MAB strategies to balance the exploitation of good choices based on observed data with the exploration of potentially better options.In this paper, we integrate hard real-time constraints with MAB strategies for resource management of a Stochastic Parallel Synchronous Task. On a platform with M cores available for the task, m<=M cores are initially assigned. Prior work has shown how to compute a virtual deadline such that assigning all M cores to the task if it has not completed by this virtual deadline guarantees that the deadline will be met. An MAB strategy is used to select the value of m. A Dynamic Power Management (DPM) energy model considering CPU sockets and sleep states is described. Experimental evaluation shows that MAB strategies learn consistently suitable m, and perform well compared to binary exponential search and greedy methods.

Keywords
Multicore scheduling, Multi-Armed Bandit, DAG task, Parallel Synchronous Task
National Category
Computer Systems
Research subject
Computer Science
Identifiers
urn:nbn:se:mdh:diva-70442 (URN)
Available from: 2025-03-18 Created: 2025-03-18 Last updated: 2025-04-23Bibliographically approved

Open Access in DiVA

fulltext(2562 kB)45 downloads
File information
File name FULLTEXT02.pdfFile size 2562 kBChecksum SHA-512
530d0ea77609af3f257c84c28290de5c958373939d74cbaa951315c1ca0fac3d16250b2773337094112125f220e6690a4cc98605924bc532e44ac27f650e4790
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Friebe, Anna
By organisation
Embedded Systems
Computer Systems

Search outside of DiVA

GoogleGoogle Scholar
Total: 46 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

isbn
urn-nbn

Altmetric score

isbn
urn-nbn
Total: 967 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf