Abstract
Sense-react systems (e.g. robotics and AR/VR) have to take highly responsive real-time actions, driven by complex decisions involving a pipeline of sensing, perception, planning, and reaction tasks. These tasks must be scheduled on resource-constrained devices such that the performance goals and the requirements of the application are met. This is a difficult scheduling problem that requires handling multiple scheduling dimensions, and variations in resource usage and availability. In practice, system designers manually tune parameters for their specific hardware and application, which results in poor generalization and increases the development burden. In this work, we highlight the emerging need for scheduling CPU resources at runtime in sense-react systems. We study three canonical applications (face tracking, robot navigation, and VR) to first understand the key scheduling requirements for such systems. Armed with this understanding, we develop a scheduling framework, Catan, that dynamically schedules compute resources across different components of an app so as to meet the specified application requirements. Through experiments with a prototype implemented on a widely-used robotics framework (ROS) and an open-source AR/VR platform, we show the impact of system scheduling on meeting the performance goals for the three applications, how Catan is able to achieve better application performance than hand-tuned configurations, and how it dynamically adapts to runtime variations.
Introduction
Most modern robotics and AR/VR applications are "sense-react" systems: they ingest sensor data, process it through a pipeline (sensing $\rightarrow$ perception $ ightarrow$ planning), and produce a physical reaction. These pipelines are often represented as Directed Acyclic Graphs (DAGs). Currently, developers face a significant "development burden," manually tuning execution rates and CPU priorities for every component to ensure the system remains responsive. However, static configurations fail when compute usage varies, resource availability changes, or when standard OS schedulers treat safety-critical tasks with the same "fairness" as background tasks.
The Challenge of Sense-React Systems
In a typical sense-react system, such as a mobile robot, the underlying software architecture is composed of numerous interdependent nodes. For example, a navigation stack involves laser scans, odometry, localization, and multiple levels of planning.
Standard Linux schedulers (like CFS) are designed for general-purpose fairness, which is often detrimental to these systems. In a robot, avoiding a collision is far more critical than updating a global map, yet a fair scheduler may not prioritize the local planning chain sufficiently during periods of high contention.
The Catan Framework
To bridge the gap between high-level application goals and low-level CPU scheduling, we introduce Catan. Catan treats scheduling as a constrained optimization problem, allowing developers to provide the application's DAG and the relative importance (weights) of different paths.
Catan focuses on Chain Response Time—the total time from an environmental change to the resulting reaction. It simplifies the optimization space by grouping nodes that trigger each other at the same rate into subchains. The framework then employs a hierarchical optimization strategy: a Spatial Stage determines CPU core allocation using Mixed Integer Linear Programming (MILP), and a Temporal Stage determines exact execution rates and time-slices using Geometric Programming (GP).
Dynamic Adaptation to Runtime Variations
A core strength of Catan is its ability to adapt to "coarse-grained" changes. In navigation tasks, the computation time for specific nodes, such as the Global Planner (GP), can increase significantly as the robot explores more of the environment and the map grows in complexity.
Catan periodically re-solves its optimization problems to account for these shifts. Additionally, it handles "fine-grained" spikes—such as a sudden complex image frame—through a priority-based stealing mechanism that allows critical tasks to "steal" time from less critical ones.
Key Results
We evaluated Catan across three applications: Face Tracking, Robot 2D Navigation, and Virtual Reality (using the ILLIXR testbed).
- Robotics Safety: In navigation tasks with dynamic obstacles, Catan reduced collisions from 23 (with hand-tuned defaults) to just 3 out of 40 runs by prioritizing the local planning chain.
- VR Performance: Catan improved rotational motion-to-photon latency by ~7% and translational latency by ~25% compared to standard Linux scheduling, leading to a smoother user experience.
- Auto-Scaling: Catan automatically re-optimized schedules when hardware resources changed (e.g., moving from 1 to 2 cores), whereas static baselines remained bottlenecked by their original configurations.
Conclusion
Catan demonstrates that semantic-aware, dynamic CPU scheduling can significantly improve the performance and safety of sense-react systems. By moving away from manual, static tuning, Catan reduces the development burden and enables systems to remain responsive even as hardware conditions and environment complexity change.
Summary updated