rclcpp icon indicating copy to clipboard operation
rclcpp copied to clipboard

MultiThreadedExecutor CPU affinity aware

Open fujitatomoya opened this issue 3 years ago • 0 comments

Feature request

Feature description

MultiThreadedExecutor should honor CPU affinity to be set by user application for process space, including inherited affinity. https://github.com/ros2/rclpy/pull/1031 includes this configuration, so the same behavior should go to rclcpp. Using single thread with MultiThreadedExecutor will print the warning since it is not recommended, to avoid the possible problem which is described https://github.com/ros2/rclcpp/issues/2029. But if the CPU affinity is set by user application, it will honor that configuration.

Implementation considerations

  • Implement abstracted function in rcutils so that we can conceal the platform implementation in client libraries.

Related PRs

  • https://github.com/ros2/rclpy/pull/1031
  • https://github.com/ros2/rclcpp/pull/2030

fujitatomoya avatar Oct 31 '22 18:10 fujitatomoya