A Multi-Core ROS 2 Executor Built on a Lock-Free Ring Buffer

The streaming executor wraps a lock-free event loop, runs one loop per core, and uses an offline genetic search to pin nodes to cores. On the reference system it was both faster and more deterministic.

In this article

  • Acceleration that leaves the hardware alone
  • A ring buffer with no locks
  • What saturation looks like
  • Where an executor sits
  • Four executors, then a streaming one
  • Assigning nodes to cores before you run
  • Our take