-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
D435 High CPU Usage #1130
Comments
turn of OpenMP default will solve this problem |
Can you share your CPU usage after turning off OpenMP? |
less than 5% if just grab frame without showing |
@fgzhu Thank you for sharing your CPU usage. |
@cynosure4sure do you use a pre-compiled version of librealsense? or are you building both the wrapper and the library? |
@zivsha I am building both librealsense and ros wrapper from source. and the ROS wrapper -DBUILD_WITH_OPENMP=OFF I also have turned off the depth/color alignment. So now I am happy with the reasonable CPU usage. If you have any other advice for further improvement that would be helpful. One more thing, if I turn on depth/color image alignment my CPU usage still jumps to 50% single thread. |
I also followed this suggestion to disable OpenMP, and I see the CPU usage is very low when just grabbing frames without visualizing (<5% of a core). When I also enable pointcloud computation, the CPU usage hardly changes. As soon as I start visualizing the pointcloud, the CPU usage rises to >100%. That is not surprising, because I assume visualization is intensive. The strange thing is that when I do Is that expected behavior? Or is there something I am doing incorrectly? |
[Realsense Customer Engineering Team Comment] we have some new implementation for better CPU utilization, can you please help to confirm if latest v2.14.0 release still have this issue? |
[Realsense Customer Engineering Team Comment] is it works for you? |
@RealSense-Customer-Engineering no, my issue is not resolved. I just installed the latest firmware on the D435 (5.11.1), got the latest Debian Here's my htop when running When I do |
I just tested the same camera on a different computer (the above comment refers to a laptop Gigabyte Aero 15", this comment uses a desktop), with the same installation setup (debian librealsense, built latest realsense ros pkg). The CPU usage is much more reasonable on the desktop, with the ROS nodelet manager capping out at <50%CPU when viewing the pointcloud in RViz. When I use a 424x240 depth and color stream, it is consistently <30%CPU. It might be an issue specific to the laptop I have been using, but it is a reasonably powerful gaming laptop so that is surprising. |
Issue Description
I am using D435 camera in Ubuntu 14.04 with ROS.
For only Color Camera and Depth Camera enabled I get a high CPU usage on my i7-6700HQ laptop consistently 50% across all threads. Please see the image below for only Color and Depth Camera running with pointcloud disabled.
It seems very unusual as compared to using ZR300 module.
The text was updated successfully, but these errors were encountered: