Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rosbag2 consume 100% of the CPU resources on one core in snapshot mode. #940

Closed
MichaelOrlov opened this issue Dec 14, 2021 · 0 comments · Fixed by #941
Closed

Rosbag2 consume 100% of the CPU resources on one core in snapshot mode. #940

MichaelOrlov opened this issue Dec 14, 2021 · 0 comments · Fixed by #941
Assignees
Labels
bug Something isn't working

Comments

@MichaelOrlov
Copy link
Contributor

Description

Rosbag2 consume 100% of the CPU resources on one core in snapshot mode.

Expected Behavior

Rosbag2 should consume moderate CPU resources, but certainly not 100% in snapshot mode.

Actual Behavior

Rosbag2 consume 100% of the CPU resources on one core in snapshot mode.

To Reproduce

  1. ros2 bag record --max-cache-size 100000 --snapshot-mode -a
  2. View CPU load via system monitor or htop

System (please complete the following information)

  • OS: Ubuntu 20.04
  • ROS 2 Distro: Rolling
  • Version: master 200c4c3

Additional context

This issue was discovered during post merge code review of the #850
RCA: There are problem in design of the "snapshot" feature. There "busy loop" in CacheConsumer class when enabled "Snapshot" mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant