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

summary

Video file (mp4)

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

In short

This research introduces preemption thresholds to manage complexity in multi-core systems with three-phase tasks (read, execute, write). By setting thresholds where a task's priority is raised, it limits unnecessary preemptions during execution. This technique successfully reduces local memory usage by up to 2.5 times compared to fully preemptive scheduling while maintaining high schedulability.

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 used across episodes

This episode discusses

The paper

Limited Preemption of the 3-Phase Task Model using Preemption Thresholds · Read on arXiv

KTH Royal Institute of Technology

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.

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.

More episodes

← Home