-
Notifications
You must be signed in to change notification settings - Fork 10
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
High CPU usage when running yarpdev with realsense2 device #1
Comments
The reason why I compiled using However 11 days ago, DKMS packages supporting latest kernels (up to 5.3) were released (see IntelRealSense/librealsense#4586 (comment)). Then, even if cc @Nicogene |
Actually we experienced issues with libuvc with a version of kernel < 5.0, but I am happy to hear that they fixed the DKMS |
Tried today very briefly as @lnobile had to install |
The issues with the |
Great news! @xEnVrE can you try to profile now the performance of our device with the latest |
Unfortunately, I cannot right now. I will do, as soon as I am able to get a |
Hi @Nicogene, I tested with the latest release It seems better than before. |
I have just noticed that the realsense2_camera ROS node seems far less resource consuming than YARP's realsense2 driver. |
Hi @PeterBowman, just to understand, which version of the |
Hi, @xEnVrE. I installed the I was compiling YARP against the latest Intel distribution on Ubuntu Bionic ( |
I'm moving this issue to the new repository where the realsense driver will be developed |
Describe the bug
When running a
yarpdev
in order to get rgb/depth images from a RealSense camera, the CPU usage is quite high.See attached screenshots.
top showing > 200% CPU usage
htop showing multiple yarpdev processes/threads spawned
In order to make a comparison, consider the CPU usage when running the
realsense-viewer
.top showing < 100% CPU usage
htop showing multiple realsense-viewer processes/threads spawned
To Reproduce
I cloned the latest
librealsense
repository and compiled using these options set toON
Please note that
BUILD_WITH_OPENMP
was set toOFF
.Then I compiled
yarp
enabling realsense.Additional context
Initially I though that the issue might be from the usage of
OPENMP
within thelibrealsense
. In fact they are using it to speed up the rgb/depth alignment process. However, I checked carefully and when enablingOPENMP
in the build the CPU usage increases even further to960 %
.In order to have a fair comparison, I disabled the usage of
librealsense
alignment routine inside the yarp realsense driver since therealsense-viewer
is not using it (I checked the source code). This, again, because I though that the issue might come from the rgb/depth alignment process.As a third test, I also tried enabling the support to
CUDA
because it enables alignment computation within the GPU. However, even in the configurationCUDA=ON, OPENMP=OFF
the consumption is still higher than the one of therealsense-viewer
and not different from the configurationCUDA=OFF, OPENMP=OFF
.Configuration:
The text was updated successfully, but these errors were encountered: