Limited Preemption of the 3-Phase Task Model using Preemption Thresholds

arXiv:2508.19760 · eess.SY, cs.SY · Submitted 2025-08-27 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Robotics Radio. Generated commentary on the latest robotics and control papers.

Rosa: I'm Rosa, and with me are Dev and Taro, guest researcher.

Dev: Today's paper: "Limited Preemption of the 3-Phase Task Model using Preemption Thresholds".

Rosa: Phased execution models are employed to manage complexity in modern multi-core platforms,

Dev: First, who's behind it and why it matters.

Title and authors: Rosa: So Dev, I was thinking about what this paper is calling "Limited Preemption of the three-Phase Task Model using Preemption Thresholds," and it seems to be addressing a very specific way we structure task execution on multi-core platforms <ref:2508.19760#pg0,Limited Preemption of the 3-Phase Task Model using Preemption Thresholds>.

Dev: It sounds like the title is pointing toward a solution for managing the inherent complexity of those phased execution models, which often involve read, execute, and write phases.

Taro: I’m interested in understanding what that means in plain terms; are we talking about a new type of scheduling algorithm or just a refinement of existing ones?

Rosa: It seems to be proposing preemption thresholds as the core mechanism to limit how often tasks can interrupt each other during their execution phases.

Dev: So, instead of letting any high-priority task preempt freely, they are introducing this threshold concept to control that level of interruption and manage the trade-off between schedulability and memory usage.

Taro: That’s the key idea I'm picking up; it sounds like a way to introduce structure into what is usually seen as a fluid execution environment.

Rosa: Exactly, they are looking at how this limits preemptions to minimize local memory usage while maintaining schedulability, which is the central tension they are trying to resolve.

Dev: That tension between needing good timing guarantees and not needing excessively large local memory seems like it’s the main problem for running AI on embedded devices.

Taro: If we can solve that tension, it opens up new possibilities for deploying more advanced autonomy because we aren't immediately bottlenecked by hardware size constraints.

Rosa: That is exactly the potential impact; they are showing how this structural constraint can lead to a system that is both timing-aware and memory-conscious.

The paper's summary: Dev: So, going into the actual content of "Limited Preemption of the three-Phase Task Model using Preemption Thresholds," the paper summarizes their approach to tackle this problem by introducing these preemption thresholds to manage resource usage <ref:2508.19760#pg0,Limited Preemption of the 3-Phase Task Model using Preemption Thresholds>.

Rosa: They break down how tasks are modeled with dedicated read, execute, and write phases, emphasizing that memory phases are for loading data and writing results, while execution phases are where computation happens.

Dev: During the execution phase only the core-local memory is accessed, which avoids contention when accessing main memory by not scheduling both memory phases simultaneously.

Taro: So they’re ensuring that the system avoids those difficult shared memory access conflicts inherent in these phased models by separating computation from data handling operations.

Rosa: That’s right; they are trying to ensure predictability by isolating the compute time from the data loading and storing, which is a major architectural consideration.

Dev: The paper states that typically, non-preemptive execution is used for this model because it makes achieving predictability easy and uses the local memory efficiently.

Taro: But non-preemptive scheduling often leads to problems when high-priority tasks get blocked by lower-priority ones, which is where preemption becomes necessary.

Rosa: That’s the problem they are addressing; allowing preemption can improve schedulability, but making it work in this model is difficult because of the semantics and the limited size of local memory.

Dev: They introduce preemption thresholds to limit those preemptions, aiming to keep memory usage down while still maintaining schedulability under partitioned fixed-priority scheduling.

Taro: So the summary boils down to using these thresholds as a controlled gate for preemption that balances timing guarantees against the physical space limitations of the local memory.

The paper's improvements: Rosa: Moving into what they actually propose, the authors detail their specific contributions to "Limited Preemption of the three-Phase Task Model using Preemption Thresholds" by outlining their new analytical tools and algorithms <ref:2508.19760#pg0,Limited Preemption of the 3-Phase Task Model using Preemption Thresholds>.

Dev: They contribute a schedulability test for three-phase tasks under partitioned fixed-priority scheduling that incorporates these preemption thresholds into the analysis <ref:2508.19760#pg0>.

Taro: I’m curious about the analysis part; how does this test account for the dynamics of those thresholds when predicting worst-case response times?

Rosa: They provide an analysis to bound the maximum required local memory specifically considering these preemption thresholds, which is a key contribution to proving that a solution is feasible.

Dev: The MPTAA, or Maximal Preemption Threshold Assignment Algorithm, is introduced to assign the largest possible preemption thresholds while ensuring the task set remains schedulable.

Taro: So this algorithm isn't just about picking arbitrary numbers; it's about finding the maximum threshold assignment that keeps the whole system functional under fixed-priority rules.

Rosa: It’s a constructive method designed to find that largest possible preemption threshold assignment while maintaining schedulability, which is what makes the MPTAA a useful design tool.

Dev: The evaluation results really show the benefits of these thresholds; for realistic memory sizes, thirteen times more task sets are both schedulable and memory-feasible compared to fully preemptive scheduling, while requiring two point five times less local memory in those scenarios <ref:2508.19760#pg2,more task sets are both schedulable and memory-feasible>.

Taro: That quantitative comparison is what really validates the method; seeing those factors of thirteen and two point to a much more efficient way to utilize hardware for running AI models.

Rosa: It demonstrates that preemption thresholds offer a tangible advantage over both fully and non-preemptive scheduling when we consider realistic memory constraints.

Conclusion: Dev: So, wrapping up the paper "Limited Preemption of the three-Phase Task Model using Preemption Thresholds," they conclude that this approach significantly improves memory feasibility by showing it can achieve a two point five times improvement over fully preemptive scheduling while still maintaining the schedulability of fully preemptive scheduling <ref:2508.19760#pg2,the 3-Phase Task Model>.

Rosa: The main implication is that we can deploy AI systems on platforms with much smaller local memory for the same applications without compromising performance guarantees.

Taro: I think this means we have a more viable path for building autonomous systems that operate within tighter hardware envelopes while still meeting strict timing requirements.

Dev: It confirms that this method provides a robust way to manage resource contention in these multi-core setups, which is crucial for the loop rate reliability we need.

Rosa: We’re looking at a paper that shows how careful scheduling decisions can lead to real-world hardware savings in deployment.

Taro: For me, it validates using this framework for future autonomous systems where we can focus on optimizing the preemption parameters rather than just scaling up memory constantly.

KTH Royal Institute of Technology

eess.SY, cs.SY

Submitted: 2025-08-27

Updated: 2026-10-06

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 77/100

The gist: Phased execution models are employed to manage complexity in modern multi-core platforms, and this research introduces preemption thresholds as a method to limit preemptions in 3-phase task models to

Key concepts

Three-Phase Task Model
Tasks are divided into three distinct phases: read (R), execute (E), and write (W). The system manages these phases using preemption thresholds to control when execution can be interrupted, aiming to optimize resource usage.
Preemption Threshold ($ heta_i$)
This is a specific priority level assigned to a task. When the executing task reaches this threshold, its priority is temporarily raised. Only tasks with higher nominal priorities than this threshold are allowed to preempt the current task's execution phase.
Memory Feasibility
This measures whether a set of tasks can run on a core given a specific local memory size. The paper uses preemption thresholds to find assignments that ensure the largest required 'preemption chain' fits within this memory limit, leading to significant reductions in needed local memory.

Terminology

Summary

Phased execution models are employed to manage complexity in modern multi-core platforms, and this research introduces preemption thresholds as a method to limit preemptions in 3-phase task models to minimize local memory usage while maintaining schedulability.

The gist

Preemption thresholds can be used to reduce the number of preemptions that are unnecessary to maintain schedulability, which is shown to reduce the stack space.

System Model and Task Definition

The system under consideration is a multi-core system with a set of sporadic tasks, where each task is divided into three phases: read (R), execute (E), and write (W). Each task τi is represented by the tuple (Ti, Di, Mi, Pi, θi, Cri, Cei, Cwi), where Ti and Di represent the minimum inter-arrival time and relative deadline; Mi is the memory footprint; Pi is the fixed nominal priority; θi represents the preemption threshold where Pi ≤ θi; Cri and Cwi are worst-case execution times for read and write phases, respectively. The total worst-case execution time Ci is their sum, i.e., Ci = Cri + Cei + Cwi.

Execution Model under Preemption Thresholds

The paper focuses on partitioned fixed-priority scheduling where each task is statically assigned to a core (keep-in-core method). Read and write phases are non-preemptive, while execution phases can be preempted. A task’s priority is raised to its preemption threshold θi with the start of the read phase. Only tasks that have a nominal priority higher than the executing task’s preemption threshold θi are allowed to preempt τi’s execution phase. Preemption is realized using the keep-in-core method, where data of both tasks is stored in local memory during preemption, requiring both data sets to fit in local memory simultaneously.

Response Time Analysis

The response time analysis utilizes techniques from existing analyses for limited preemptive scheduling and fully preemptive E-phases. The analysis involves calculating the longest level-i active period Li,l using four delay factors: Intra-core interference (Ii), Intra-core blocking (Bi), Inter-core interference (Imemi), and Inter-core blocking (Bmemi). These factors are categorized into six groups based on nominal priorities and preemption thresholds. The maximum number of jobs released within the active period, Ki, is calculated using Equation 10: Ki = η+i(Li,l) = Li,l/Ti. The worst-case response time (WCRT) of task τi is then calculated by finding the maximum out of the response times of all jobs within the active period (Equation 13).

Memory Requirement Analysis

The analysis for local memory usage focuses on finding the preemption chain that results in the largest cumulative memory requirement. A preemption chain is a sequence where each task is preempted by the next task, defined by θP Ci(j) > PP Ci(j+1). The goal is to maximize X∀τj∈P Ci Mj. A task set is considered memory-feasible if the maximum preemption chain of each task on each core is not larger than S, meaning X∀τj∈P Ci Mj ≤ S. The paper proposes using the Maximal Preemption Threshold Assignment Algorithm (MPTAA) to assign maximum preemption thresholds, which aims to find the largest possible PT assignment while maintaining schedulability.

Evaluation Results

Evaluations demonstrate that preemption thresholds can significantly reduce memory usage by 2.5× compared to fully preemptive scheduling, while maintaining high schedulability ratios of 13× compared to non-preemptive scheduling for realistic memory sizes. Specifically, for realistic memory sizes, 13× more task sets are both schedulable and memory-feasible, while requiring 2.5× less local memory than fully-preemptive scheduling. The results show that PT scheduling achieves up to 40% more task sets than fully preemptive scheduling that are both schedulable and memory-feasible when the local memory size is less than 104KB. Furthermore, using PTs allows achieving 100% memory feasibility with only 40KB (2.5× improvement) compared to the 104KB required by FP scheduling. The number of cores can be reduced by half when utilizing PT scheduling to achieve both schedulability and memory feasibility for the same applications.

Conclusions

The paper concludes that using preemption thresholds can improve memory feasibility by 2.5× over fully preemptive scheduling while still maintaining the schedulability of fully preemptive scheduling, which is 13× more than non-preemptive scheduling. The proposed methods enable using a platform with a much smaller local memory for the same applications. Future work will explore preemption thresholds to improve schedulability.

Improvements for AI systems

As a fastidious researcher, I have analyzed the provided scientific paper, Limited Preemption of the 3-Phase Task Model using Preemption Thresholds by Thilanka and Becker. This paper focuses on improving the resource utilization and feasibility of real-time systems (specifically 3-phase task models) running on multi-core platforms by introducing a limited preemption strategy via preemption thresholds (PT).

Based strictly on the technical contributions of this paper, here are the specific improvements that can be made to AI systems—assuming these AI tasks can be modeled using the described 3-phase execution model (Read/Execute/Write) and fixed-priority scheduling:


) Improved AI System Capabilities:

The paper directly addresses challenges in complex, multi-core COTS platforms (like those used for modern large language models or real-time control systems). The improvements focus on optimizing resource management to reduce memory footprint without sacrificing schedulability.

  1. Reduced Local Memory Footprint for Inference/Execution:

Improve the system's ability to run complex AI models (especially those involving large weights or intermediate activations) on hardware with limited onboard memory (like embedded accelerators or edge devices). By applying the proposed preemption thresholds, the system can achieve a local memory reduction of up to 2.5× compared to fully preemptive scheduling while maintaining high schedulability ratios (13× better than non-preemptive). This means AI models can be deployed on smaller, more cost-effective hardware with less required scratchpad/local memory.

  1. Enhanced Schedulability for Time-Critical AI Tasks:

Improve the system's reliability in meeting strict deadlines for critical operations (e.g., autonomous vehicle control loops or real-time decision-making). The analysis provides a worst-case response time (WCRT) calculation that accounts for intra-core interference, inter-core blocking, and memory contention under the limited preemption scheme. This allows AI algorithms to be scheduled such that critical tasks are guaranteed to meet their deadlines even when other high-priority tasks are preempted strategically.

  1. Optimized Preemption Strategy for Model Execution:

Implement a dynamic scheduling policy based on the MPTAA (Maximal Preemption Threshold Assignment Algorithm) adapted for 3-phase models. This algorithm ensures that preemption thresholds are set to maximize stack utilization (memory efficiency) while ensuring the task set remains schedulable under fixed-priority constraints. For AI inference, this means intelligently deciding when a lower-priority background task should be allowed to preempt a high-priority inference task based on its assigned threshold, minimizing unnecessary context switching overhead while preventing catastrophic deadline misses.

  1. Feasibility in Multi-Core Heterogeneous Environments:

Improve the ability of the system to operate effectively across multiple cores with varying resource constraints (SPM size). The paper demonstrates that for a given utilization and core count, the limited preemption approach can achieve both schedulability and memory feasibility where fully preemptive methods fail (e.g., achieving 100% memory feasibility at 40KB instead of 104KB). This capability is crucial for scaling AI workloads across heterogeneous multi-core systems where resources are shared dynamically.

Abstract

Phased execution models are a well-known solution to tackle the unpredictability of today's complex COTS multi-core platforms. The semantics of these models dedicate phases for a task's execution and shared memory accesses. Memory phases are solely dedicated to load all necessary instructions and data to private local memory, and to write back the results of the computation. During execution phases, only the private local memory is accessed. While non-preemptive execution phases utilize the local memory well, schedulability is reduced due to blocking. On the other hand, fully preemptive execution phases allow for better schedulability, but require local memory to be large enough to hold all tasks involved in preemption simultaneously. Limited preemption is a promising approach that provides moderation between non-preemptive and fully preemptive scheduling. In this paper, we propose using preemption thresholds to limit the number of preemptions to minimize local memory usage while maintaining schedulability. We propose worst-case response-time and worst-case memory-requirement analyses for sporadic 3-phase tasks under partitioned fixed-priority scheduling with preemption thresholds. We consider two distinct arbitration schemes for memory-phase scheduling between cores: task-priority-based and core-priority-based. We further show how the state-of-the-art algorithm to assign preemption thresholds can be applied to the considered task model. Evaluations demonstrate that preemption thresholds can significantly reduce the memory usage compared to fully preemptive scheduling, while maintaining high schedulability ratios compared to non-preemptive scheduling.

Related papers