Skip to content

CPU overhead when discovery is used #1485

Closed
@doisyg

Description

@doisyg

Description

Related to #1170
When recording a list of topics that are not all published, on a system with multiple topics, actions and services (typically a mobile robot with the nav2 stack), and with (default) automatic discovery, there is an important CPU usage from the bag recorder process.Typically 20% CPU usage on a very powerful machine (i7 13th gen)
We don't observe this CPU overhead with the same setup but --no-discovery added.

Expected Behavior

Reasonable CPU usage

Actual Behavior

Non reasonable CPU usage

System (please complete the following information)

  • OS: Ubuntu 22.04
  • ROS 2 Distro: Iron latest bin
  • Install Method: apt
  • Version: 0.22.3-1jammy.20230911.053809

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions