TL;DR
ConfigBot is an adaptive resource allocation framework that automatically tunes operating system and application-layer settings to keep service robots running stably under tight compute constraints. By combining OS-level resource limits with a novel data-flow throttling mechanism, it allows critical tasks like navigation to meet real-time deadlines even when resource-heavy, non-core apps are introduced.
What Problem Does This Paper Address?
Modern service robots run complex software stacks comprising multiple concurrent applications (e.g., localization, object detection, and web dashboards) on resource-constrained embedded hardware. As robots move through different environments or users dynamically start and stop apps, computational demands fluctuate wildly.
Traditional operating system schedulers (like Linux's Completely Fair Scheduler) prioritize broad objectives like fairness rather than the strict real-time deadlines required by robots. This lack of coordination leads to resource contention, causing severe degradation in functionality—such as a robot stumbling, pausing, or colliding with obstacles.
Worse yet, standard OS-level throttling tools like cgroups fall short on their own due to two unique characteristics of robot applications:
- Shared Worker Pools: Core tasks (like computing actuator commands) and non-core tasks (like rendering debug images) often share the same thread pool within an app, making it impossible for the OS to deprioritize the non-core task without hurting the core one.
- Oversubscription under Throttling: Restricting the CPU usage of a multithreaded app (like object detection) can cause a backup of incoming data, triggering the app to spawn even more threads, which paradoxically spikes latency and destroys performance.
Methods
To solve these challenges, the authors introduce ConfigBot, a framework that formulates resource allocation as a constrained, black-box multi-objective optimization problem. It treats core service performance as hard constraints and non-core app performance as objectives to maximize.
ConfigBot relies on three main pillars:
- OS-Level Tuning (
cgroups): It isolates each robot application node into its own control group to independently manage maximum CPU allocations (cpu.max). - ROS-Layer Adaptors: To fix the limitations of
cgroups, the authors built a lightweight, transparent data-flow throttling mechanism directly into the ROS communication library (ros_comm). These adaptors intercept and drop messages on a per-subscriber basis, gracefully reducing an app's compute footprint without changing its underlying code. - Bayesian Optimization: ConfigBot uses Bayesian optimization to efficiently navigate the high-dimensional configuration space of cgroup limits and adaptor thresholds, finding an optimal setup within minutes.
Additionally, ConfigBot features a three-layer runtime monitoring system (utilizing eBPF and the ROS master API) to detect context shifts—such as a robot transitioning from indoor to outdoor navigation—and rapidly reconfigure the system using a library of pre-learned configurations.
Datasets
The paper evaluates ConfigBot using real-world robotic platforms and software stacks rather than static datasets:
- Robots: Boston Dynamics Spot (quadruped with NVIDIA AGX Orin), Clearpath Jackal (wheeled with Intel i7), and a custom Cobot (mobile base + Kinova arm with Intel NUC).
- Software Stacks: Six distinct configurations including standard DWA navigation (
Basic-NAV), A-star grid planning (Intermed-NAV), terrain-aware navigation (Terrain-NAV), and manipulation stacks (CoMap), paired with non-core apps like object detection, segmentation, and web telemetry dashboards.
Key Insights and Ideas
- Data-flow control is a powerful lever: Throttling the inputs to an application (via adaptors) is often far more effective than throttling its CPU access (via cgroups). It prevents the "thread explosion" that happens when multithreaded apps get starved of CPU time.
- Core vs. Non-core asymmetry simplifies optimization: By treating essential services as constraints rather than objectives, ConfigBot drastically reduces the search space for the optimization algorithm.
- There is no "one size fits all" configuration: The authors proved that a configuration optimized for one environment or navigation stack performs poorly on another, validating the absolute necessity of dynamic, context-dependent relearning.
Key Results
- Resource Efficiency: ConfigBot allowed a complex navigation and obstacle-avoidance stack on the Boston Dynamics Spot robot to run safely on 4× fewer CPUs than the default OS configuration required.
- Constraint Satisfaction: Across multiple robot stacks, ConfigBot achieved a near-100% satisfaction rate for core real-time constraints, whereas the default Linux configuration frequently dropped to 0% under heavy workloads, causing robot instability.
- Non-Core Performance Boost: By intelligently pairing cgroups with the new ROS adaptors, ConfigBot improved non-core application performance by up to 92% compared to tuning cgroups alone.
Limitations and Future Work
While ConfigBot represents a major step forward, the authors note two primary areas for improvement:
- Manual Specification Dependency: Currently, developers must manually define the performance metrics and target thresholds (e.g., "Navigation must run at >35Hz"). Automating this process from high-level task descriptions remains an open challenge.
- Reactive vs. Proactive Control: ConfigBot currently reacts to resource contention or context shifts after they occur. The authors suggest that integrating Reinforcement Learning (RL) could allow the system to proactively predict bottlenecks and adapt configurations before performance degrades.
Summary updated