Skip to content

MultiThreadedExecutor should use assigned CPUs in the process space if possible. #2037

@fujitatomoya

Description

@fujitatomoya

Feature request

Feature description

MultiThreadedExecutor should honor CPU affinity to be set by user application for process space, including inherited affinity.
ros2/rclpy#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 #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions