tier4 / ros2_v4l2_camera

Forked from https://gitlab.com/boldhearts/ros2_v4l2_camera
Apache License 2.0
34 stars 12 forks source link

[Performance issues] Unstable CPU usage, 19%-41.6% #16

Open zymouse opened 4 months ago

zymouse commented 4 months ago

Introducing.

ros2_v4l2_camera is a great hardware accelerated camera ros driver. I did the following test.

test environment

Determined in advance:

Problem Description: The test environment is the same as the test method

Test Description: CPU usage stabilized at around 20% in the morning test image

In the afternoon, the CPU usage stabilized at around 37%. image

The CPU usage is not the same in both tests, which I don't think is a normal phenomenon

@knzo25

knzo25 commented 4 months ago

@manato I think this falls under your expertise rather than mine :sweat_smile:

manato commented 2 months ago

@knzo25 Thanks for connecting.

@zymouse The CPU usage possibly gets higher just after trying to establish ROS connection, and then gets stable at low usage after a while. I would appreciate it if you check the usage after a while to see the usage gets stable. Besides, I guess the reported value might vary depending on the load sample frequency. When you observe a similar high CPU usage, I would also appreciate if you could restart load measurements a few times just in case. Thanks.